|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Result of numeric supernodal LU factorization (same factor layout as lu_numeric, plus the dynamic L-supernode boundaries). More...
#include <supernodal_lu.hpp>
Public Member Functions | |
| std::size_t | num_rows () const |
| std::size_t | num_cols () const |
| std::size_t | nsuper () const |
| const util::csc_matrix< Value > & | factorL () const |
| Read-only access to the unit lower factor L and the upper factor U (CSC). | |
| const util::csc_matrix< Value > & | factorU () const |
| void | set_factor (util::csc_matrix< Value > L, util::csc_matrix< Value > U) |
| Install the factors (unit lower L diagonal-first, upper U diagonal-last) and (re)build the coupled forward (L z = w) and upper (U y = z) solve schedules from them. | |
| bool | has_factor () const |
| True once factors (and their coupled schedules) have been installed. | |
| void | set_factor_values (std::vector< Value > Lvals, std::vector< Value > Uvals) |
| Install recomputed VALUES on the already-installed factor pattern, keeping the existing solve schedules (see lu_numeric::set_factor_values). | |
| template<typename Accumulator = void, typename VecX, typename VecB> | |
| void | solve (VecX &x, const VecB &b) const |
| Solve A*x = b. | |
Public Attributes | |
| std::vector< std::size_t > | row_perm |
| std::vector< std::size_t > | row_pinv |
| std::vector< std::size_t > | lsuper_first |
| std::vector< Value > | row_scale |
| std::size_t | num_perturbed = 0 |
| std::size_t | panel_updates = 0 |
| Supernode updates the panel pre-passes applied (#195): one per closed supernode per panel that took it. | |
| supernodal_lu_symbolic | symbolic |
Result of numeric supernodal LU factorization (same factor layout as lu_numeric, plus the dynamic L-supernode boundaries).
|
inline |
Read-only access to the unit lower factor L and the upper factor U (CSC).
|
inline |
|
inline |
True once factors (and their coupled schedules) have been installed.
|
inline |
|
inline |
|
inline |
|
inline |
Install the factors (unit lower L diagonal-first, upper U diagonal-last) and (re)build the coupled forward (L z = w) and upper (U y = z) solve schedules from them.
L, U and the schedules are always set together, so the schedules' cached structure always matches the factors' patterns. Strongly exception safe: the schedules are built into locals before any member is replaced. Requires symbolic installed first (validates against symbolic.n).
|
inline |
Install recomputed VALUES on the already-installed factor pattern, keeping the existing solve schedules (see lu_numeric::set_factor_values).
The schedules cache positions into L_.values / U_.values, not the values, so a same-pattern refactorization skips the O(nnz) rebuild set_factor pays. Requires a factor already installed and value arrays of exactly the installed nnz; the schedules' built_nnz staleness guards are re-checked, so a pattern change cannot slip through (use set_factor for that). Strongly exception safe: all validation precedes any member replacement.
|
inline |
Solve A*x = b.
P*A*Q = L*U (identical to lu_numeric::solve). Accumulator (default void, leading as in the numeric phase) selects the accumulator policy of the triangular-solve row reductions (#535): void is the raw Value loop; see level_schedule.hpp for the contract.
| std::vector<std::size_t> mtl::sparse::factorization::supernodal_lu_factor< Value >::lsuper_first |
| std::size_t mtl::sparse::factorization::supernodal_lu_factor< Value >::num_perturbed = 0 |
| std::size_t mtl::sparse::factorization::supernodal_lu_factor< Value >::panel_updates = 0 |
Supernode updates the panel pre-passes applied (#195): one per closed supernode per panel that took it.
0 when panels never ran (panel = 1, or the gate kept them off). A diagnostic: the factor is the same either way, and tests use it to know the panel path ran (issue 926).
| std::vector<std::size_t> mtl::sparse::factorization::supernodal_lu_factor< Value >::row_perm |
| std::vector<std::size_t> mtl::sparse::factorization::supernodal_lu_factor< Value >::row_pinv |
| std::vector<Value> mtl::sparse::factorization::supernodal_lu_factor< Value >::row_scale |
| supernodal_lu_symbolic mtl::sparse::factorization::supernodal_lu_factor< Value >::symbolic |