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

Concept satisfied by dense vector types eligible for MTL5's OWN SIMD kernels. 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 eligible for MTL5's OWN SIMD kernels.
Definition dispatch_traits.hpp:164
constexpr bool is_lane_v
Lane types batch<T> supports.
Definition batch.hpp:103

Detailed Description

Concept satisfied by dense vector types eligible for MTL5's OWN SIMD kernels.

Strictly wider than BlasDenseVector: same storage shape (contiguous data(), size()), but the value type only has to be a lane mtl::simd can hold – float, double, int32_t, uint32_t – rather than a type an external BLAS has a symbol for. The two are distinct on purpose: there is no sdot for int32, so the integer lanes are reachable ONLY through the native path, and gating them on the BLAS predicate is what kept them on the generic scalar loop (#451).