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

◆ findPivot() [3/3]

template<class RingType>
size_t DMatLUinPlace< RingType >::findPivot ( size_t row,
size_t col )
private

Definition at line 171 of file dmat-lu-inplace.hpp.

172{
173 // Look at elements A[row,col], A[row+1,col], ..., A[nrows-1, col]
174 // Return the index r s.y. abs(A[r,col]) is maximum over all of these
175
176 for (size_t i = row; i < mLU.numRows(); i++)
177 {
178 if (!ring().is_zero(mLU.entry(i, col))) return i;
179 }
180 return static_cast<size_t>(-1);
181}
const RingType & ring() const

References mLU, and ring().

Referenced by computeLU().