CGAL 6.2 - Homological Discrete Vector Fields
Loading...
Searching...
No Matches

Get the value of the row at a given index from the matrix (whatever the StorageFormat of the matrix).

Note
For row-matrices, it is equivalent to operator[], for column-matrices a traversal of the matrix is required (in \(\mathcal O(n)\)).
Warning
The matrix will perform boundary check.
Parameters
matrixThe matrix considered.
indexThe coefficient index.
Returns
The row at given index.

Friends

template<typename _CT , template< typename, int > typename SCT>
SCT< _CT, ROWget_row (const Sparse_matrix_core< _CT, COLUMN, SCT > &matrix, size_t index)
 Gets a row from a COLUMN matrix.
 
template<typename _CT , template< typename, int > typename SCT>
SCT< _CT, ROWget_row (const Sparse_matrix_core< _CT, ROW, SCT > &matrix, size_t index)
 Gets a row from a ROW matrix.