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

Namespaces

namespace  mtl
namespace  mtl::detail
 mat*vec multiply into pre-allocated y: y = A * x.

Functions

template<typename Accumulator = void, Scalar S, Vector VX, Vector VY, Matrix M>
void mtl::ger (const S &alpha, const VX &x, const VY &y, M &A)
 Rank-1 update: A(i,j) += alpha * x(i) * y(j).

Variables

template<typename Accumulator, typename S, typename M, typename VX, typename VY>
constexpr bool mtl::detail::ger_dispatches_blas_v
 Whether ger<Accumulator>(alpha, x, y, A) calls ?ger (for sizes that fit an int).