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

◆ is_equal() [2/2]

bool Ring::is_equal ( const vecterm * a,
const vecterm * b ) const

Definition at line 121 of file ring-vecs.cpp.

122{
123 for (;; a = a->next, b = b->next)
124 {
125 if (a == nullptr)
126 {
127 if (b == nullptr) return true;
128 return false;
129 }
130 if (b == nullptr) return false;
131 if (a->comp != b->comp) return false;
132 if (!this->is_equal(a->coeff, b->coeff)) return false;
133 }
134}
virtual bool is_equal(const ring_elem f, const ring_elem g) const =0
ring_elem coeff
Definition ringelem.hpp:172

References vec::coeff, vec::comp, is_equal(), and vec::next.