operator*¶
-
DynamicMatrix operator*(DynamicMatrix const &that)¶
Returns the product of
*thisandthat.- Parameters:
that – the matrix to multiply by
this.- Returns:
a value of type
DynamicMatrix.- Throws:
if the implementation of the semiring multiplication throws, or
std::bad_allocif memory cannot be allocated for the result.- Complexity:
\(O(mn)\) where \(m\) is
DynamicMatrix::number_of_rowsand \(m\) isDynamicMatrix::number_of_cols
Warning
The matrices must be of the same dimensions, although this is not verified by the implementation.