MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
sparse_ldlt.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <limits>
#include <stdexcept>
#include <string>
#include <vector>
#include <type_traits>
#include <mtl/mat/compressed2D.hpp>
#include <mtl/mat/inserter.hpp>
#include <mtl/vec/dense_vector.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/factorization/triangular_solve.hpp>
#include <mtl/sparse/factorization/level_schedule.hpp>
#include <mtl/sparse/factorization/sparse_cholesky.hpp>
#include <mtl/math/accumulator_traits.hpp>

Classes

struct  mtl::sparse::factorization::ldlt_numeric< Value >
 Result of numeric LDL^T factorization. More...

Namespaces

namespace  mtl
namespace  mtl::sparse
namespace  mtl::sparse::factorization

Typedefs

using mtl::sparse::factorization::ldlt_symbolic = cholesky_symbolic
 Symbolic analysis result - identical to Cholesky since sparsity of L is the same for LDL^T and LL^T.

Functions

template<typename Value, typename Parameters, typename Ordering>
ldlt_symbolic mtl::sparse::factorization::sparse_ldlt_symbolic (const mat::compressed2D< Value, Parameters > &A, const Ordering &ordering)
 Perform symbolic LDL^T analysis on a symmetric sparse matrix.
template<typename Value, typename Parameters>
ldlt_symbolic mtl::sparse::factorization::sparse_ldlt_symbolic (const mat::compressed2D< Value, Parameters > &A)
 Overload without ordering: uses identity permutation (natural ordering).
template<typename Accumulator = void, typename Value, typename Parameters>
ldlt_numeric< Value > mtl::sparse::factorization::sparse_ldlt_numeric (const mat::compressed2D< Value, Parameters > &A, const ldlt_symbolic &sym)
 Perform numeric LDL^T factorization using pre-computed symbolic analysis.
template<typename Accumulator = void, typename Value, typename Parameters, typename VecX, typename VecB, typename Ordering>
void mtl::sparse::factorization::sparse_ldlt_solve (const mat::compressed2D< Value, Parameters > &A, VecX &x, const VecB &b, const Ordering &ordering)
 One-shot sparse LDL^T solve: factor and solve A*x = b.
template<typename Accumulator = void, typename Value, typename Parameters, typename VecX, typename VecB>
void mtl::sparse::factorization::sparse_ldlt_solve (const mat::compressed2D< Value, Parameters > &A, VecX &x, const VecB &b)
 One-shot sparse LDL^T solve without ordering (natural ordering).