Macaulay2 Engine
Loading...
Searching...
No Matches

◆ is_unit()

bool M2FreeAlgebra::is_unit ( const ring_elem f) const
virtual

Implements Ring.

Definition at line 167 of file M2FreeAlgebra.cpp.

168{
169 auto f = reinterpret_cast<const Poly*>(f1.get_Poly());
170 return freeAlgebra().is_unit(*f);
171}
Polynomial< CoefficientRingType > Poly
bool is_unit(const Poly &f) const
const FreeAlgebra & freeAlgebra() const

References freeAlgebra(), ring_elem::get_Poly(), and FreeAlgebra::is_unit().

Referenced by invert().