Dedekind 0.0.0
A structuralist C++23 Module Library
Loading...
Searching...
No Matches
dedekind::linear_algebra::HasMatrixMultiplication Concept Referenceexport

Square-matrix multiplication: M × M → M. More...

Concept definition

template<typename M>
{ a * b } -> std::same_as<M>;
}
Square-matrix multiplication: M × M → M.
Definition contracts.cppm:330

Detailed Description

Square-matrix multiplication: M × M → M.

Associative by contract (matrices represent linear maps, and composition of linear maps is associative), but not commutative in general. The concept therefore only asserts closure of the product; callers must not assume a * b == b * a. Documented as a non-commutative linear composition, per the user-stated contract.