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

Classes

struct  mtl::sparse::factorization::cholesky_symbolic
 Result of symbolic Cholesky analysis. More...
struct  mtl::sparse::factorization::cholesky_numeric< Value >
 Result of numeric Cholesky factorization. More...

Namespaces

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

Functions

template<typename Value, typename Parameters, typename Ordering>
cholesky_symbolic mtl::sparse::factorization::sparse_cholesky_symbolic (const mat::compressed2D< Value, Parameters > &A, const Ordering &ordering)
 Perform symbolic Cholesky analysis on a symmetric sparse matrix.
template<typename Value, typename Parameters>
cholesky_symbolic mtl::sparse::factorization::sparse_cholesky_symbolic (const mat::compressed2D< Value, Parameters > &A)
 Overload without ordering: uses identity permutation (natural ordering).
template<typename Accumulator = void, typename Value, typename Parameters>
cholesky_numeric< Value > mtl::sparse::factorization::sparse_cholesky_numeric (const mat::compressed2D< Value, Parameters > &A, const cholesky_symbolic &sym)
 Perform numeric Cholesky 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_cholesky_solve (const mat::compressed2D< Value, Parameters > &A, VecX &x, const VecB &b, const Ordering &ordering)
 One-shot sparse Cholesky solve: factor and solve A*x = b.
template<typename Accumulator = void, typename Value, typename Parameters, typename VecX, typename VecB>
void mtl::sparse::factorization::sparse_cholesky_solve (const mat::compressed2D< Value, Parameters > &A, VecX &x, const VecB &b)
 One-shot sparse Cholesky solve without ordering (natural ordering).