CGAL 6.1 - Homological Discrete Vector Fields
Loading...
Searching...
No Matches
Matrices product (with row-based result).

Perform multiplication between matrices and returns a new row-major matrix.

Perform standard linear algebra product between matrices and returns a new row-major matrix (when possible, prefer *= for efficiency). Matrices must have the same CoefficientType but can have different ChainTypeFlag. The product is optimized (using standard definition or block products) for each combination of ChainTypeFlag. However, efficiency depends on ChainTypeFlag.

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

Friends

template<typename _CT >
Sparse_matrix< _CT, ROWCGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator% (const Sparse_matrix< _CT, COLUMN > &_first, const Sparse_matrix< _CT, COLUMN > &_second)
 Matrices product: COLUMN x COLUMN -> ROW.
 
template<typename _CT >
Sparse_matrix< _CT, ROWCGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator% (const Sparse_matrix< _CT, ROW > &_first, const Sparse_matrix< _CT, COLUMN > &_second)
 Matrices product: ROW x COLUMN -> ROW.
 
template<typename _CT >
Sparse_matrix< _CT, ROWCGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator% (const Sparse_matrix< _CT, COLUMN > &_first, const Sparse_matrix< _CT, ROW > &_second)
 Matrices product: COLUMN x ROW -> ROW.
 
template<typename _CT >
Sparse_matrix< _CT, ROWCGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator% (const Sparse_matrix< _CT, ROW > &_first, const Sparse_matrix< _CT, ROW > &_second)
 Matrices product: ROW x ROW -> ROW.