MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::interface::ContiguousMatrixData Concept Reference

Storage shape only: contiguous data() plus dimensions, with NO constraint on the element type. More...

#include <dispatch_traits.hpp>

Concept definition

template<typename M>
requires(const M& m) {
{ m.data() } -> std::convertible_to<const typename M::value_type*>;
{ m.num_rows() };
{ m.num_cols() };
}
Storage shape only: contiguous data() plus dimensions, with NO constraint on the element type.
Definition dispatch_traits.hpp:214
constexpr bool host_resident_v
Whether host code, and so every dispatch target in this header, may read M's elements.
Definition dispatch_traits.hpp:60

Detailed Description

Storage shape only: contiguous data() plus dimensions, with NO constraint on the element type.

Needed where the element type is constrained separately and is not a lane at all – the widening GEMM's operands are 8- or 16-bit, narrower than anything batch<> holds, so SimdDenseMatrix cannot describe them. Splitting the layout requirement from the type requirement keeps each predicate saying one thing.