version 0.4.1
eigensparseaddon.hh File Reference

Enhance the eigen sparse matrix types with given given functions. More...

Go to the source code of this file.

Functions

Index getLinearIndex (Index row, Index col) const
 Get the linear index corresponding to the given row and column indices. More...
 

Function Documentation

◆ getLinearIndex()

Index getLinearIndex ( Index  row,
Index  col 
) const
inline
Parameters
rowThe row index.
colThe column index.
Returns
The linear index.
Note
The function assumes that IsRowMajor, rows(), cols(), m_outerIndex, m_innerNonZeros, and m_data are accessible within the scope.