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

Namespaces

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

Functions

template<std::size_t W, typename M, typename VX>
void mtl::detail::trmv_upper_rows (const M &A, VX &x, typename M::size_type i, bool unit_diag)
 The generic upper trmv on rows [i, n), W rows per block, top-down (#749, #772).
template<std::size_t W, typename M, typename VX>
void mtl::detail::trmv_lower_rows (const M &A, VX &x, typename M::size_type ii, bool unit_diag)
 The generic lower trmv on rows [0, ii), W rows per block, bottom-up: the mirror image of trmv_upper_rows.
template<std::size_t S, std::size_t C = column_sweep_columns, typename M, typename VX>
void mtl::detail::trmv_column_sweep (const M &A, VX &x, bool upper, bool unit_diag)
 The generic trmv on a contiguous column-major A, S rows per strip (#777; see detail/column_sweep.hpp).
template<typename Accumulator = void, Matrix M, Vector VX>
void mtl::trmv (const M &A, VX &x, bool upper, bool unit_diag=false)
 Triangular matrix-vector product: x = A*x, A upper/lower triangular.

Variables

template<typename Accumulator, typename M, typename VX>
constexpr bool mtl::detail::trmv_dispatches_blas_v
 Whether trmv<Accumulator>(A, x, ...) calls ?trmv (for n that fits an int).
template<typename Accumulator, typename M, typename VX>
constexpr bool mtl::detail::trmv_uses_blocked_v
 Whether trmv<Accumulator>(A, x, ...) takes the blocked SIMD path for n > triangular_block (#747): native-fast, no BLAS, float/double.