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

◆ gbvector_is_equal()

bool GBRing::gbvector_is_equal ( const gbvector * f,
const gbvector * g ) const

Definition at line 376 of file gbring.cpp.

377{
378 for (;; a = a->next, b = b->next)
379 {
380 if (a == nullptr)
381 {
382 if (b == nullptr) return true;
383 return false;
384 }
385 if (b == nullptr) return false;
386 if (a->comp != b->comp) return false;
387 if (!K->is_equal(a->coeff, b->coeff)) return false;
388 if (M->compare(a->monom, b->monom) != 0) return false;
389 }
390}
const Monoid * M
Definition gbring.hpp:137
const Ring * K
Definition gbring.hpp:138

References gbvector::coeff, gbvector::comp, K, M, gbvector::monom, and gbvector::next.