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

◆ vec_equals()

template<typename CoeffRing>
bool SMat< CoeffRing >::vec_equals ( const sparsevec * v,
const sparsevec * w ) const
private

Definition at line 323 of file smat.hpp.

324{
325 for (; v != NULL && w != NULL; v = v->next, w = w->next)
326 if (!ring().is_equal(v->coeff, w->coeff)) return false;
327 return true;
328}
const CoeffRing & ring() const
Definition smat.hpp:104
bool is_equal(const SMat &B) const
Definition smat.hpp:1115
Definition smat.hpp:43

References SMat< ACoeffRing >::sparsevec::coeff, is_equal(), SMat< ACoeffRing >::sparsevec::next, and ring().

Referenced by is_equal().