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

Namespaces

namespace  mtl

Functions

template<typename Accumulator = void, Scalar S, Vector VX, Vector VY>
void mtl::axpy (const S &alpha, const VX &x, VY &y)
 y[i] += alpha * x[i]