void operator*=(scalar_type const a)¶
Multiplies every entry of the matrix by a scalar in-place.
a – the scalar to multiply every entry of
if the implementation of the semiring multiplication throws.
\(O(mn)\) where \(m\) is
DynamicMatrix::number_of_rowsand \(m\) is
void product_inplace(DynamicMatrix const &A, DynamicMatrix const &B)¶
Band stores the result in
thisto be the product of
B. This is in-place multiplication to avoid allocation of memory for products which do not need to be stored for future use.
A – the first matrix to multiply
B – the second matrix to multiply
Throws if the implementation of the semiring plus or product throws or
\(O(n ^ 3)\) where \(n\) is
This function only applies to matrices with the same number of rows and columns.