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

Concept satisfied by dense matrix types whose OUTPUT ROWS may be partitioned across threads: the storage shape only, with NO constraint on the element type. More...

#include <dispatch_traits.hpp>

Concept definition

template<typename M>
Storage shape only: contiguous data() plus dimensions, with NO constraint on the element type.
Definition dispatch_traits.hpp:214
Concept satisfied by dense matrix types whose OUTPUT ROWS may be partitioned across threads: the stor...
Definition dispatch_traits.hpp:265

Detailed Description

Concept satisfied by dense matrix types whose OUTPUT ROWS may be partitioned across threads: the storage shape only, with NO constraint on the element type.

Structurally identical to ContiguousMatrixData today, and deliberately a separate name: the two record different reasons. ContiguousMatrixData says "a kernel may walk `data()` with a stride"; this says "distinct rows are distinct objects, so distinct threads may write them". Requiring data() is not because the threaded generic kernel uses the pointer – it indexes through operator() like the serial one – but because owning contiguous storage is the cheap, conservative proxy for "plain dense matrix, element access is a pure read, no lazily-populated or shared internal state". Expression templates and views, which may have either, are excluded and stay serial.