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

Perform subtraction of matrices and assign the result to matrix.

Perform standard linear algebra subtraction. Matrices must have the same CoefficientRing but can have different StorageFormat. The addition is optimized for each combination of StorageFormat.

Parameters
matrixThe first matrix.
otherThe second matrix.
Returns
A reference to the modified matrix matrix containing the result.

Functions

Sparse_matrixoperator-= (const Sparse_matrix &other)
 Matrices subtraction and assign: COLUMN -= COLUMN or ROW -= ROW.
 

Friends

template<typename _CT >
Sparse_matrix< _CT, COLUMN > & operator-= (Sparse_matrix< _CT, COLUMN > &matrix, const Sparse_matrix< _CT, ROW > &other)
 Matrices subtraction and assign: COLUMN -= ROW.
 
template<typename _CT >
Sparse_matrix< _CT, ROW > & operator-= (Sparse_matrix< _CT, ROW > &matrix, const Sparse_matrix< _CT, COLUMN > &other)
 Matrices subtraction and assign: ROW -= COLUMN.