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

Concept satisfied by dense vector types of an 8-bit element that the quad multiply-accumulate can widen into a 32-bit lane (#451 phase 3). More...

#include <dispatch_traits.hpp>

Concept definition

template<typename V>
requires(const V& v) {
{ v.data() } -> std::convertible_to<const typename V::value_type*>;
{ v.size() };
}
True when a vector type's storage is CONTIGUOUS – data()[i] IS element i.
Definition dispatch_traits.hpp:138
Concept satisfied by dense vector types of an 8-bit element that the quad multiply-accumulate can wid...
Definition dispatch_traits.hpp:197
constexpr bool is_quad_widenable_v
Narrow integer types whose dot product widens by FOUR into a 32-bit lane, via the hardware's quad mul...
Definition batch.hpp:142

Detailed Description

Concept satisfied by dense vector types of an 8-bit element that the quad multiply-accumulate can widen into a 32-bit lane (#451 phase 3).

Distinct from SimdNarrowVector because the operations differ in more than width: the pairwise op takes two operands of the SAME type, while the quad op accepts three PAIRINGS, one of them mixed-signedness – and that mixed one is the native instruction. So the pairing, not the element type alone, decides what is dispatchable; see mtl::quad_int_dot.