20 eigen_assert(row >= 0 && row < rows() && col >= 0 && col < cols());
22 const Index outer = IsRowMajor ? row : col;
23 const Index inner = IsRowMajor ? col : row;
25 Index start = m_outerIndex[outer];
26 Index end = m_innerNonZeros ? m_outerIndex[outer] + m_innerNonZeros[outer] : m_outerIndex[outer + 1];
27 eigen_assert(end >= start &&
"you probably called coeffRef on a non finalized matrix");
29 Index p = m_data.searchLowerIndex(start, end - 1, StorageIndex(inner));
Index getLinearIndex(Index row, Index col) const
Get the linear index corresponding to the given row and column indices.
Definition: eigensparseaddon.hh:19