Enhance the eigen sparse matrix types with given given functions.
More...
Go to the source code of this file.
|
| Index | getLinearIndex (Index row, Index col) const |
| | Get the linear index corresponding to the given row and column indices. More...
|
| |
◆ getLinearIndex()
| Index getLinearIndex |
( |
Index |
row, |
|
|
Index |
col |
|
) |
| const |
|
inline |
- Parameters
-
| row | The row index. |
| col | The 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.