MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
lu.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <stdexcept>
#include <type_traits>
#include <vector>
#include <mtl/detail/pivot_test.hpp>
#include <mtl/detail/transpose_copy.hpp>
#include <mtl/concepts/matrix.hpp>
#include <mtl/concepts/vector.hpp>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/math/identity.hpp>
#include <mtl/math/accumulator_traits.hpp>
#include <mtl/functor/scalar/conj.hpp>
#include <mtl/operation/lower_trisolve.hpp>
#include <mtl/operation/upper_trisolve.hpp>
#include <mtl/interface/dispatch_traits.hpp>
#include <mtl/detail/thread_pool.hpp>
#include <mtl/interface/device_dispatch.hpp>

Namespaces

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

Functions

template<typename Accumulator, typename M>
int mtl::detail::lu_factor_acc (M &A, std::vector< typename M::size_type > &pivot)
 lu_factor's accumulator path: left-looking LU with partial pivoting.
template<typename Accumulator = void, FieldMatrix M>
int mtl::lu_factor (M &A, std::vector< typename M::size_type > &pivot)
 LU factorization with partial pivoting.
template<typename Accumulator = void, FieldMatrix M, Vector VecX, Vector VecB>
void mtl::lu_solve (const M &LU, const std::vector< typename M::size_type > &pivot, VecX &x, const VecB &b)
 Solve A*x = b using precomputed LU factorization.
template<typename Accumulator = void, FieldMatrix M, Vector VecX, Vector VecB>
void mtl::lu_adjoint_solve (const M &LU, const std::vector< typename M::size_type > &pivot, VecX &x, const VecB &b)
 Solve A^H * x = b using the precomputed LU factorization of A.
template<typename Accumulator = void, FieldMatrix M, Vector VecX, Vector VecB>
int mtl::lu_apply (M &A, VecX &x, const VecB &b)
 Convenience: factor and solve A*x = b in one call.