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

◆ is_zero()

bool RingZZ::is_zero ( const ring_elem f) const
virtual

Implements Ring.

Definition at line 155 of file ZZ.cpp.

156{
157 mpz_srcptr a = f.get_mpz();
158 return mpz_sgn(a) == 0;
159}
mpz_srcptr get_mpz() const
Definition ringelem.hpp:127

References ring_elem::get_mpz().

Referenced by divide(), lower_associate_divisor(), lower_content(), and syzygy().