MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / coeff

Method coeff

include/Eigen/src/SparseCore/SparseMatrix.h:211–218  ·  view source on GitHub ↗

\returns the value of the matrix at position \a i, \a j * This function returns Scalar(0) if the element is an explicit \em zero */

Source from the content-addressed store, hash-verified

209 /** \returns the value of the matrix at position \a i, \a j
210 * This function returns Scalar(0) if the element is an explicit \em zero */
211 inline Scalar coeff(Index row, Index col) const {
212 eigen_assert(row >= 0 && row < rows() && col >= 0 && col < cols());
213
214 const Index outer = IsRowMajor ? row : col;
215 const Index inner = IsRowMajor ? col : row;
216 Index end = m_innerNonZeros ? m_outerIndex[outer] + m_innerNonZeros[outer] : m_outerIndex[outer + 1];
217 return m_data.atInRange(m_outerIndex[outer], end, inner);
218 }
219
220 /** \returns a non-const reference to the value of the matrix at position \a i, \a j.
221 *

Callers 15

runMethod · 0.45
panel_bmodMethod · 0.45
InnerIteratorMethod · 0.45
valueMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
valueMethod · 0.45
assignDiagonalMethod · 0.45
processRowMethod · 0.45
runMethod · 0.45

Calls 3

atInRangeMethod · 0.80
rowsFunction · 0.50
colsFunction · 0.50

Tested by

no test coverage detected