Perform addition between matrices and assigns the result to matrix.
Perform standard linear algebra addition. Matrices must have the same CoefficientType but can have different ChainTypeFlag. The addition is optimized for each combination of ChainTypeFlag.
- Parameters
-
| matrix | The first matrix. |
| other | The second matrix. |
- Returns
- A reference to the modified matrix
matrix containing the result.
|
|
Sparse_matrix & | CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator+= (const Sparse_matrix &other) |
| | Matrices sum and assign: COLUMN += COLUMN or ROW += ROW.
|
| |
|
|
template<typename _CT > |
| Sparse_matrix< _CT, COLUMN > & | CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator+= (Sparse_matrix< _CT, COLUMN > &matrix, const Sparse_matrix< _CT, ROW > &other) |
| | Matrices sum and assign: COLUMN += ROW.
|
| |
|
template<typename _CT > |
| Sparse_matrix< _CT, ROW > & | CGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator+= (Sparse_matrix< _CT, ROW > &matrix, const Sparse_matrix< _CT, COLUMN > &other) |
| | Matrices sum and assign: ROW += COLUMN.
|
| |