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

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

The function returns a new row-major chain.

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

Parameters
rowThe row-major chain.
matriwThe matrix.
Returns
The result of the matrix multiplication, row-based.

Friends

template<typename _CT >
Sparse_chain< _CT, ROWoperator* (const Sparse_chain< _CT, ROW > &_row, const Sparse_matrix< _CT, ROW > &_matrix)
 Row chain/matrix multiplication: ROW chain x COLUMN matrix -> ROW chain.
 
template<typename _CT >
Sparse_chain< _CT, ROWoperator* (const Sparse_chain< _CT, ROW > &_row, const Sparse_matrix< _CT, COLUMN > &_matrix)
 Row chain/matrix multiplication: ROW chain x ROW matrix -> ROW chain.