|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
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 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.