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

◆ vec_negate()

template<typename CoeffRing>
void SMat< CoeffRing >::vec_negate ( sparsevec *& v) const
private

Definition at line 486 of file smat.hpp.

487{
488 for (sparsevec *p = v; p->next != NULL; p = p->next)
489 ring().negate(p->coeff, p->coeff);
490}
const CoeffRing & ring() const
Definition smat.hpp:104
Definition smat.hpp:43

References p, and ring().

Referenced by subtractInPlace().