akreon-linalg
Fixed-size linear algebra and numerical methods in C++26.
Loading...
Searching...
No Matches
linalg::MatMulCompatible Concept Reference

Compile-time compatibility contract for matrix multiplication. More...

#include <matrix_concepts.hpp>

Concept definition

template<class MatA, class MatB>
std::same_as<matrix_scalar_t<MatA>, matrix_scalar_t<MatB>> &&
Compile-time compatibility contract for matrix multiplication.
Trait-registered, fixed-shape matrix over a supported scalar field.
constexpr std::size_t mat_rows_v
Registered compile-time row count after cv/ref normalization.

Detailed Description

Compile-time compatibility contract for matrix multiplication.

The scalar fields must match exactly, and the left column count must equal the right row count. For MatA * MatB, the result shape is mat_rows_v<MatA> x mat_cols_v<MatB>.

Definition at line 67 of file matrix_concepts.hpp.