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

◆ negateInPlace()

template<typename CoeffRing>
void SMat< CoeffRing >::negateInPlace ( )

Definition at line 1194 of file smat.hpp.

1196{
1197 for (size_t c = 0; c < numColumns(); c++)
1198 for (sparsevec *p = columns_[c]; p != NULL; p = p->next)
1199 ring().negate(p->coeff, p->coeff);
1200}
const CoeffRing & ring() const
Definition smat.hpp:104
size_t numColumns() const
Definition smat.hpp:100
sparsevec ** columns_
Definition smat.hpp:234
Definition smat.hpp:43

References columns_, numColumns(), p, and ring().

Referenced by MatrixOps::negateInPlace().