MCPcopy Create free account
hub / github.com/PX4/eigen / coeff

Method coeff

Eigen/src/SparseCore/SparseMatrix.h:188–196  ·  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

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

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

Calls 3

atInRangeMethod · 0.80
rowsFunction · 0.50
colsFunction · 0.50

Tested by

no test coverage detected