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

Concept satisfied by dense vector types whose element type is not a lane but can be WIDENED into one by a dot-product accumulate – 16-bit integers, as of #451 phase 2. 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 whose element type is not a lane but can be WIDENED into one ...
Definition dispatch_traits.hpp:180
constexpr bool is_widenable_v
Narrow integer types that can be WIDENED into a lane by a dot-product accumulate (#451 phase 2).
Definition batch.hpp:116

Detailed Description

Concept satisfied by dense vector types whose element type is not a lane but can be WIDENED into one by a dot-product accumulate – 16-bit integers, as of #451 phase 2.

Separate from SimdDenseVector because these types are operands, not lanes: batch<std::int16_t> does not exist, and the only kernel that accepts them is reduce_dot_widen, which never materializes one.