CGAL 6.1 - Homological Discrete Vector Fields
Loading...
Searching...
No Matches
Row-chain / matrix product (with row-chain result).

Perform multiplication between a row-chain and a sparse matrix (column or row major).

The function returns a new row-major chain.

Perform standard linear algebra product between a row-chain and a matrix (ie. row vector / matrix product) and returns a new row-major chain. Both arguments must have the same CoefficientType but the matrix can have any ChainTypeFlag (and the product is optimized for each of them).

Parameters
firstThe row-major chain.
secondThe matrix.
Returns
The result of the matrix multiplication, row-based.

Friends

template<typename _CT >
Sparse_chain< _CT, ROWCGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator* (const Sparse_chain< _CT, ROW > &_first, const Sparse_matrix< _CT, ROW > &_second)
 Row chain/matrix product: ROW chain x COLUMN matrix -> ROW chain.
 
template<typename _CT >
Sparse_chain< _CT, ROWCGAL::OSM::Sparse_matrix< CoefficientType, ChainTypeFlag >::operator* (const Sparse_chain< _CT, ROW > &_first, const Sparse_matrix< _CT, COLUMN > &_second)
 Row chain/matrix product: ROW chain x ROW matrix -> ROW chain.