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

Namespaces

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

Functions

template<typename Accumulator = void, Matrix M, Vector VX>
void mtl::trsv (const M &A, VX &x, bool upper, bool unit_diag=false)
 Solve A*x = x in place, A upper/lower triangular.
template<typename Accumulator = void, Matrix M, Vector VX, Vector VB>
void mtl::trsv (const M &A, VX &x, const VB &b, bool upper, bool unit_diag=false)
 Solve A*x = b, writing the solution into x (b unchanged).

Variables

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