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

Namespaces

namespace  mtl

Functions

template<typename Accumulator = void, Matrix M, Vector VecX, Vector VecB>
void mtl::upper_trisolve (const M &U, VecX &x, const VecB &b, bool unit_diag=false)
 Solve U*x = b by back substitution where U is upper triangular.
template<typename Accumulator = void, Matrix M, Vector VecX>
void mtl::upper_trisolve (const M &U, VecX &x, bool unit_diag=false)
 In-place variant: solve U*x = x (b is x on input).