Set the value of the row at a given index from the matrix to chain (whatever the StorageFormat 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
-
| matrix | The matrix. |
| index | The row index. |
| row | The new row value. |
|
|
template<typename _CT , template< typename, int > typename SCT> |
| void | set_row (Sparse_matrix_core< _CT, COLUMN, SCT > &matrix, size_t index, const SCT< _CT, ROW > &row) |
| | Sets a row in a COLUMN matrix.
|
| |
|
template<typename _CT , template< typename, int > typename SCT> |
| void | set_row (Sparse_matrix_core< _CT, ROW, SCT > &matrix, size_t index, const SCT< _CT, ROW > &row) |
| | Sets a row in a ROW matrix.
|
| |