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

Set the value of the row at a given index from the matrix to chain (whatever the ChainTypeFlag of the matrix).

Note
For row-matrices, it is equivalent to operator[] followed by an assignment, for column-matrices a traversal of the matrix is required (in \(\mathcal O(n)\)).
Warning
The matrix will perform boundary check.
Parameters
matrixThe matrix.
indexThe row index.
chainThe new row value.

Friends

template<typename _CT >
void CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::set_row (Sparse_matrix< _CT, COLUMN > &matrix, size_t index, const Sparse_chain< _CT, ROW > &chain)
 Sets a row in a COLUMN matrix.
 
template<typename _CT >
void CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::set_row (Sparse_matrix< _CT, ROW > &matrix, size_t index, const Sparse_chain< _CT, ROW > &chain)
 Sets a row in a ROW matrix.