CGAL 6.2 - Homological Discrete Vector Fields
Loading...
Searching...
No Matches
Matrix multiplication (with column-based result).

Perform multiplication of matrices and return a new column-major matrix.

Perform standard linear algebra multiplication of matrices and return a new column-major matrix (when possible, prefer *= for efficiency). Matrices must have the same CoefficientRing but can have different StorageFormat. The multiplication is optimized (using standard definition or block multiplications) for each combination of StorageFormat. However, efficiency depends on StorageFormat (when possible, prefer row-major by column-major multiplications).

Parameters
firstThe first matrix.
secondThe second matrix.
Returns
The result of the matrix multiplication, column-based.

Friends

template<typename _CT >
Sparse_matrix< _CT, COLUMNoperator* (const Sparse_matrix< _CT, COLUMN > &first, const Sparse_matrix< _CT, COLUMN > &second)
 Matrix multiplication: COLUMN x COLUMN -> COLUMN.
 
template<typename _CT >
Sparse_matrix< _CT, COLUMNoperator* (const Sparse_matrix< _CT, ROW > &first, const Sparse_matrix< _CT, COLUMN > &second)
 Matrix multiplication: ROW x COLUMN -> COLUMN.
 
template<typename _CT >
Sparse_matrix< _CT, COLUMNoperator* (const Sparse_matrix< _CT, COLUMN > &first, const Sparse_matrix< _CT, ROW > &second)
 Matrix multiplication: COLUMN x ROW -> COLUMN.
 
template<typename _CT >
Sparse_matrix< _CT, COLUMNoperator* (const Sparse_matrix< _CT, ROW > &first, const Sparse_matrix< _CT, ROW > &second)
 Matrix multiplication: ROW x ROW -> COLUMN.