CGAL 6.1 - Homological Discrete Vector Fields
Loading...
Searching...
No Matches
Gets a sub-matrix by removing chains in a matrix.

Build and return a new matrix by copying a matrix and removing all chains with indices in the indices vector (or at a given index).

The result is thus a block of the initial matrix. When possible, for efficiency, prefer \=.

Note
Will return a copy of the matrix if given vector is empty.
Warning
The matrix will perform boundary check.
Parameters
matrixThe initial matrix.
indices/indexThe indice(s) of the chain(s) to remove.
Returns
A new matrix containing the result.

Friends

Sparse_matrix CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator/ (const Sparse_matrix &matrix, const std::vector< size_t > &_indices)
 Removes a set of chains from a copy of a matrix.
 
Sparse_matrix CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator/ (const Sparse_matrix &matrix, size_t index)
 Removes the chain at a given index from a copy of a matrix.