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

◆ lead_row() [2/2]

template<typename CoeffRing>
size_t SMat< CoeffRing >::lead_row ( size_t col,
elem & result ) const

Definition at line 878 of file smat.hpp.

883{
885 if (v == 0) return -1;
886 ring().init_set(result, v->coeff);
887 return v->row;
888}
const CoeffRing & ring() const
Definition smat.hpp:104
sparsevec ** columns_
Definition smat.hpp:234
Definition smat.hpp:43

References SMat< ACoeffRing >::sparsevec::coeff, columns_, result(), ring(), and SMat< ACoeffRing >::sparsevec::row.