MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / coeff

Method coeff

include/Eigen/Eigen/src/SparseCore/SparseMatrix.h:217–225  ·  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

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

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