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

Classes

struct  mtl::bk_pivot_info
 Pivot information from Bunch-Kaufman factorization. More...
struct  mtl::detail::bk_interchange
 One interchange of the factorization: rows r1 < r2, made at step k (so it applies to the L columns p < k in the one-row-order convention). More...

Namespaces

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

Functions

template<Matrix M>
void mtl::symmetric_swap (M &A, std::size_t r1, std::size_t r2, std::size_t first_col=0)
 Swap rows and columns r1 and r2 in the lower triangle of a symmetric matrix, touching only columns >= first_col.
std::vector< bk_interchange > mtl::detail::bk_interchanges (const std::vector< int > &ipiv)
 The interchanges ipiv records, in the order the factorization made them.
template<typename Accumulator, typename M>
int mtl::detail::ldlt_bk_factor_acc (M &A, bk_pivot_info &pivots)
 ldlt_bk_factor's accumulator path: left-looking Bunch-Kaufman (top of file).
template<typename Accumulator, typename M, typename VecX, typename VecB>
void mtl::detail::ldlt_bk_solve_acc (const M &A, const bk_pivot_info &pivots, VecX &x, const VecB &b)
 ldlt_bk_solve's accumulator path (top of file).
template<typename Accumulator = void, FieldMatrix M>
int mtl::ldlt_bk_factor (M &A, bk_pivot_info &pivots)
 Bunch-Kaufman pivoted LDL^T factorization: P*A*P^T = L*D*L^T.
template<typename Accumulator = void, FieldMatrix M, Vector VecX, Vector VecB>
void mtl::ldlt_bk_solve (const M &A, const bk_pivot_info &pivots, VecX &x, const VecB &b)
 Solve A*x = b using precomputed Bunch-Kaufman LDL^T factors.