|
| template<typename Value, typename SizeType> |
| std::vector< std::size_t > | column_elimination_tree (const util::csc_matrix< Value, SizeType > &A) |
| | Column elimination tree of A: the elimination tree of A^T A, computed without forming the product (CSparse cs_etree with ata=1).
|
| template<typename Value, typename Parameters> |
| std::vector< std::size_t > | column_elimination_tree (const mat::compressed2D< Value, Parameters > &A) |
| | CSR overload: convert to CSC and compute the column elimination tree.
|
| template<typename Value, typename SizeType> |
| std::vector< std::size_t > | column_counts_ata (const util::csc_matrix< Value, SizeType > &A, const std::vector< std::size_t > &parent, const std::vector< std::size_t > &post) |
| | Column counts of the Cholesky factor of A^T A given the column elimination tree parent and its postorder post, computed without forming A^T A (CSparse cs_counts with ata=1).
|
| void | column_supernodes (const std::vector< std::size_t > &parent, const std::vector< std::size_t > &col_counts, std::size_t n, std::size_t &nsuper, std::vector< std::size_t > &super, std::vector< std::size_t > &sn_first) |
| | Detect column-etree supernodes: maximal runs of consecutive columns where each column is the only child of the next in the column etree and the counts nest (col_counts[j] == col_counts[j+1] + 1) – the unsymmetric analogue of the fundamental supernodes from #178.
|
| template<typename Value, typename Parameters> |
| lu_symbolic_analysis | analyze_unsymmetric (const mat::compressed2D< Value, Parameters > &A) |
| | Full unsymmetric symbolic analysis on a square matrix already in the desired column order (apply a fill-reducing column ordering, e.g.
|
| template<typename Value, typename SizeType> |
| std::vector< std::size_t > | 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 > | 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 > | 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 | total_nnz (const std::vector< std::size_t > &col_counts) |
| | Count the total predicted nonzeros in L given column counts.
|
| std::vector< std::size_t > | tree_postorder (const std::vector< std::size_t > &parent) |
| | Compute a depth-first postorder of the elimination tree.
|
| std::vector< std::size_t > | inverse_postorder (const std::vector< std::size_t > &post) |
| | Given a postorder, return the inverse postorder mapping: inv_post[node] = position of node in the postorder.
|
| template<typename Value, typename SizeType> |
| void | symbolic_cholesky_pattern (const util::csc_matrix< Value, SizeType > &C, const std::vector< std::size_t > &parent, std::vector< std::size_t > &col_ptr, std::vector< std::size_t > &row_ind) |
| | Compute the column-wise nonzero pattern of the Cholesky factor L.
|
| template<typename Value, typename SizeType> |
| supernode_partition | find_supernodes (const util::csc_matrix< Value, SizeType > &C, const std::vector< std::size_t > &parent, std::size_t relax=0) |
| | Detect fundamental supernodes of a symmetric matrix C (CSC, both triangles) with elimination tree parent, both in postordered space.
|
template<typename Value, typename SizeType>
| void mtl::sparse::analysis::symbolic_cholesky_pattern |
( |
const util::csc_matrix< Value, SizeType > & | C, |
|
|
const std::vector< std::size_t > & | parent, |
|
|
std::vector< std::size_t > & | col_ptr, |
|
|
std::vector< std::size_t > & | row_ind ) |
|
inline |
Compute the column-wise nonzero pattern of the Cholesky factor L.
C is a symmetric matrix in CSC format (both triangles present) and parent is its elimination tree. Returns the pattern as (col_ptr, row_ind): for each column j, the sorted row indices i >= j with L(i,j) != 0 (diagonal included).
Standard symbolic Cholesky: the nonzero columns of row k of L are the etree paths from each i <= k with C(i,k) != 0, up to k (CSparse cs_ereach). We walk those paths and append row k to each visited column's list; processing rows in increasing k keeps every column list sorted ascending with the diagonal first.