Set the value of the column at a given index from the matrix to chain (whatever the ChainTypeFlag of the matrix).
- Note
- For column-matrices, it is equivalent to
operator[] followed by an assignment, for row-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 column index. |
| chain | The new column value. |
|
|
template<typename _CT > |
| void | CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::set_column (Sparse_matrix< _CT, COLUMN > &matrix, size_t index, const Sparse_chain< _CT, COLUMN > &chain) |
| | Sets a column in a COLUMN matrix.
|
| |
|
template<typename _CT > |
| void | CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::set_column (Sparse_matrix< _CT, ROW > &matrix, size_t index, const Sparse_chain< _CT, COLUMN > &chain) |
| | Sets a column in a ROW matrix.
|
| |