MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
lower_trisolve.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <type_traits>
#include <utility>
#include <mtl/concepts/matrix.hpp>
#include <mtl/concepts/vector.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>

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 VecX, typename VecB>
void mtl::detail::lower_trisolve_rows (const M &L, VecX &x, const VecB &b, bool unit_diag, typename M::size_type i=0)
 The default-accumulator forward substitution on rows [i, n), W rows per block (#749, #772).
template<std::size_t S, std::size_t C = column_sweep_columns, typename M, typename VecX, typename VecB>
void mtl::detail::lower_trisolve_column_sweep (const M &L, VecX &x, const VecB &b, bool unit_diag)
 The default-accumulator forward substitution on a contiguous column-major L, S rows per strip, top-down (#777; see detail/column_sweep.hpp).
template<typename Accumulator = void, Matrix M, Vector VecX, Vector VecB>
void mtl::lower_trisolve (const M &L, VecX &x, const VecB &b, bool unit_diag=false)
 Solve L*x = b by forward substitution where L is lower triangular.
template<typename Accumulator = void, Matrix M, Vector VecX>
void mtl::lower_trisolve (const M &L, VecX &x, bool unit_diag=false)
 In-place variant: solve L*x = x (b is x on input).