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

◆ is_zero()

template<typename CoeffRing>
bool SMat< CoeffRing >::is_zero ( ) const

Definition at line 1107 of file smat.hpp.

1108{
1109 for (size_t c = 0; c < ncols_; c++)
1110 if (columns_[c] != 0) return false;
1111 return true;
1112}
sparsevec ** columns_
Definition smat.hpp:234
size_t ncols_
Definition smat.hpp:233
Definition smat.hpp:43

References columns_, and ncols_.

Referenced by MatrixOps::isZero(), vec_add_to(), vec_divide(), vec_divide_row(), vec_row_op(), vec_scale(), and vec_scale_row().