diff --git a/src/fundamental_interface.jl b/src/fundamental_interface.jl index 45124af68..9537910b8 100644 --- a/src/fundamental_interface.jl +++ b/src/fundamental_interface.jl @@ -328,7 +328,7 @@ neg!(a) = neg!(a, a) inv!(z, a) inv!(a) -Return `inv(a)`, possibly modifying the object `z` in the process. +Return `AbstractAlgebra.inv(a)`, possibly modifying the object `z` in the process. Aliasing is permitted. The unary version is a shorthand for `inv!(a, a)`. """ diff --git a/src/generic/LaurentMPoly.jl b/src/generic/LaurentMPoly.jl index 04396a3bb..4c2617c72 100644 --- a/src/generic/LaurentMPoly.jl +++ b/src/generic/LaurentMPoly.jl @@ -106,7 +106,7 @@ function is_gen(a::LaurentMPolyWrap) return !iszero(_var_index(a)) end -function inv(a::LaurentMPolyWrap) +function Base.inv(a::LaurentMPolyWrap) (ap, ad) = _normalize(a) return LaurentMPolyWrap(parent(a), inv(ap), neg!(ad, ad)) end