MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
elimination_tree.hpp File Reference
#include <cassert>
#include <cstddef>
#include <limits>
#include <vector>
#include <mtl/sparse/util/csc.hpp>

Namespaces

namespace  mtl
namespace  mtl::sparse
namespace  mtl::sparse::analysis

Functions

template<typename Value, typename SizeType>
std::vector< std::size_t > mtl::sparse::analysis::elimination_tree (const util::csc_matrix< Value, SizeType > &A)
 Compute the elimination tree of a symmetric matrix given in CSC format.
template<typename Value, typename Parameters>
std::vector< std::size_t > mtl::sparse::analysis::elimination_tree (const mat::compressed2D< Value, Parameters > &A)
 Overload: compute elimination tree from a CSR compressed2D matrix.
template<typename Value, typename SizeType>
std::vector< std::size_t > mtl::sparse::analysis::column_counts (const util::csc_matrix< Value, SizeType > &A, const std::vector< std::size_t > &parent)
 Compute the column counts of the Cholesky factor L using the elimination tree.
std::size_t mtl::sparse::analysis::total_nnz (const std::vector< std::size_t > &col_counts)
 Count the total predicted nonzeros in L given column counts.

Variables

constexpr std::size_t mtl::sparse::analysis::no_parent = std::numeric_limits<std::size_t>::max()
 Sentinel value indicating no parent (root of the elimination tree).