MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
dot.hpp File Reference
#include <cassert>
#include <complex>
#include <cstddef>
#include <limits>
#include <type_traits>
#include <mtl/concepts/vector.hpp>
#include <mtl/concepts/scalar.hpp>
#include <mtl/math/identity.hpp>
#include <mtl/math/accumulator_traits.hpp>
#include <mtl/functor/scalar/conj.hpp>
#include <mtl/detail/accumulate.hpp>
#include <mtl/detail/thread_pool.hpp>
#include <mtl/detail/wrapping_arithmetic.hpp>
#include <mtl/interface/dispatch_traits.hpp>
#include <mtl/simd/algorithm.hpp>

Namespaces

namespace  mtl

Concepts

concept  mtl::quad_int_dot
 Does dot<Accumulator, Result>(v1, v2) name the quad-widening 8-bit kernel?
concept  mtl::quad_int_dot_swapped
 Does dot(v1, v2) name the quad kernel with the operands the OTHER way round?
concept  mtl::widening_int_dot
 Does dot<Accumulator, Result>(v1, v2) name the widening integer kernel?

Functions

template<typename Accumulator = void, typename Result = Accumulator, Vector V1, Vector V2>
auto mtl::dot (const V1 &v1, const V2 &v2)
 Hermitian dot product: sum(conj(v1[i]) * v2[i]).
template<typename Accumulator = void, typename Result = Accumulator, Vector V1, Vector V2>
auto mtl::dot_real (const V1 &v1, const V2 &v2)
 Real dot product: sum(v1[i] * v2[i]) – no conjugation.