MCPcopy Create free account
hub / github.com/dblalock/bolt / coeff

Method coeff

cpp/src/external/eigen/src/SparseCore/SparseMatrix.h:183–191  ·  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

181 /** \returns the value of the matrix at position \a i, \a j
182 * This function returns Scalar(0) if the element is an explicit \em zero */
183 inline Scalar coeff(Index row, Index col) const
184 {
185 eigen_assert(row>=0 && row<rows() && col>=0 && col<cols());
186
187 const Index outer = IsRowMajor ? row : col;
188 const Index inner = IsRowMajor ? col : row;
189 Index end = m_innerNonZeros ? m_outerIndex[outer] + m_innerNonZeros[outer] : m_outerIndex[outer+1];
190 return m_data.atInRange(m_outerIndex[outer], end, StorageIndex(inner));
191 }
192
193 /** \returns a non-const reference to the value of the matrix at position \a i, \a j
194 *

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
processRowMethod · 0.45
runMethod · 0.45
getMethod · 0.45
valueMethod · 0.45

Calls 3

atInRangeMethod · 0.80
rowsFunction · 0.70
colsFunction · 0.70

Tested by

no test coverage detected