Product¶
-
template<typename T>
struct Product<T, std::enable_if_t<IsMatrix<T>>>¶ Defined in
matrix.hpp.Specialization of the adapter
Productfor typesTsuch that the value ofIsMatrix<T>istrue.- Tparam:
T the type of matrices.
-
inline void operator()(T &xy, T const &x, T const &y, size_t = 0) const¶
Replaces the value of
xyby the product of the matricesxandy.- Parameters:
xy – a reference to a matrix of type
T.x – a const reference to a matrix of type
T.y – a const reference to a matrix of type
T.
- Returns:
(None)
- Exceptions:
This function guarantees not to throw a
LibsemigroupsException.- Complexity:
\(O(m ^ 2)\) where \(m\) is the number of rows of the matrix
x.
Warning
This function only works for square matrices.
See also
For further details see:
void StaticMatrix::product_inplace(StaticMatrix const& A, StaticMatrix const& B),void DynamicMatrix::product_inplace(DynamicMatrix const& A, DynamicMatrix const& B).