MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
supernodal_ldlt.hpp File Reference
#include <cassert>
#include <cstddef>
#include <limits>
#include <stdexcept>
#include <string>
#include <vector>
#include <type_traits>
#include <mtl/concepts/scalar.hpp>
#include <mtl/math/accumulator_traits.hpp>
#include <mtl/mat/compressed2D.hpp>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/operation/convert.hpp>
#include <mtl/sparse/util/csc.hpp>
#include <mtl/sparse/util/permutation.hpp>
#include <mtl/sparse/analysis/elimination_tree.hpp>
#include <mtl/sparse/analysis/postorder.hpp>
#include <mtl/sparse/analysis/supernodes.hpp>
#include <mtl/sparse/factorization/triangular_solve.hpp>
#include <mtl/sparse/factorization/level_schedule.hpp>
#include <mtl/sparse/factorization/sparse_cholesky.hpp>
#include <mtl/sparse/iterative_refine.hpp>

Classes

struct  mtl::sparse::factorization::supernodal_symbolic
 Symbolic analysis for supernodal LDL^T. More...
struct  mtl::sparse::factorization::supernodal_ldlt_factor< Value >
 Result of numeric supernodal LDL^T factorization. More...

Namespaces

namespace  mtl
namespace  mtl::sparse
namespace  mtl::sparse::factorization
namespace  mtl::sparse::factorization::detail
 Numeric KLU factorization: BTF permutation, the permuted matrix B = P*A*Q (block upper triangular), the per-new-index block id, and a left-looking LU factorization of each diagonal block.

Functions

template<typename Value, typename Parameters>
supernodal_symbolic mtl::sparse::factorization::detail::build_supernodal_symbolic (const mat::compressed2D< Value, Parameters > &A, const cholesky_symbolic &base, std::size_t relax)
 Shared back end of the two symbolic overloads: fuse the fill-reducing ordering with a postorder of the elimination tree (so supernode columns are contiguous), then detect supernodes in that permuted space.
template<typename Value, typename Parameters, typename Ordering>
supernodal_symbolic mtl::sparse::factorization::supernodal_ldlt_symbolic (const mat::compressed2D< Value, Parameters > &A, const Ordering &ordering, std::size_t relax=0)
 Symbolic supernodal analysis with a fill-reducing ordering.
template<typename Value, typename Parameters>
supernodal_symbolic mtl::sparse::factorization::supernodal_ldlt_symbolic (const mat::compressed2D< Value, Parameters > &A)
 Symbolic supernodal analysis using the natural ordering (with postorder only).
template<typename Accumulator = void, typename Value, typename Parameters>
requires OrderedField<Value>
supernodal_ldlt_factor< Value > mtl::sparse::factorization::supernodal_ldlt_numeric (const mat::compressed2D< Value, Parameters > &A, const supernodal_symbolic &sym)
 Numeric supernodal LDL^T factorization.
template<typename Accumulator = void, typename Value, typename Parameters, typename VecX, typename VecB, typename Ordering>
void mtl::sparse::factorization::supernodal_ldlt_solve (const mat::compressed2D< Value, Parameters > &A, VecX &x, const VecB &b, const Ordering &ordering)
 One-shot supernodal LDL^T solve with a fill-reducing ordering.
template<typename Accumulator = void, typename Value, typename Parameters, typename VecX, typename VecB>
void mtl::sparse::factorization::supernodal_ldlt_solve (const mat::compressed2D< Value, Parameters > &A, VecX &x, const VecB &b)
 One-shot supernodal LDL^T solve using the natural ordering.
template<typename FactorValue, typename Accumulator = FactorValue, typename Residual, typename Parameters, typename Ordering>
refine_result mtl::sparse::factorization::supernodal_ldlt_solve_refined (const mat::compressed2D< Residual, Parameters > &A, vec::dense_vector< Residual > &x, const vec::dense_vector< Residual > &b, const Ordering &ordering, const refine_options &opt={})
 Mixed-precision solve with iterative refinement: factor in FactorValue (e.g.

Variables

constexpr std::size_t mtl::sparse::factorization::supernodal_ldlt_kk_outer_width = 2
 Source-supernode width from which the LDL^T block update runs with the supernode's columns outermost (issue 908; see the update loop).