Get the value of the column at a given index from the matrix (whatever the ChainTypeFlag of the matrix).
- Note
- For column-matrices, it is equivalent to
operator[], 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 considered. |
| index | The coefficient index. |
- Returns
- The column at given index.
|
|
template<typename _CT > |
| Sparse_chain< _CT, COLUMN > | CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::get_column (const Sparse_matrix< _CT, COLUMN > &matrix, size_t index) |
| | Gets a column from a COLUMN matrix.
|
| |
|
template<typename _CT > |
| Sparse_chain< _CT, COLUMN > | CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::get_column (const Sparse_matrix< _CT, ROW > &matrix, size_t index) |
| | Gets a column from a ROW matrix.
|
| |