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

◆ is_equal()

bool M2::ARingCCi::is_equal ( const ElementType & f,
const ElementType & g ) const
inline

Definition at line 107 of file aring-CCi.hpp.

108 { return
109 mpfr_cmp(&(f.re.left), &(g.re.left)) == 0 and mpfr_cmp(&(f.re.right), &(g.re.right)) == 0 and
110 mpfr_cmp(&(f.im.left), &(g.im.left)) == 0 and mpfr_cmp(&(f.im.right), &(g.im.right)) == 0;
111 }

References cci_struct::im, and cci_struct::re.