|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Result of numeric supernodal LDL^T factorization. More...
#include <supernodal_ldlt.hpp>
Public Member Functions | |
| std::size_t | num_rows () const |
| std::size_t | num_cols () const |
| const util::csc_matrix< Value > & | factorL () const |
| Read-only access to the unit lower factor L (CSC) and the diagonal D. | |
| const std::vector< Value > & | diagonal () const |
| void | set_factor (util::csc_matrix< Value > L, std::vector< Value > D) |
| Install the factor (unit lower L, diagonal D) and (re)build the coupled unit forward and transpose solve schedules from L. | |
| template<typename Accumulator = void, typename VecX, typename VecB> | |
| void | solve (VecX &x, const VecB &b) const |
| Solve A*x = b. | |
Public Attributes | |
| supernodal_symbolic | symbolic |
Result of numeric supernodal LDL^T factorization.
L is unit lower triangular in CSC (diagonal implicit) in the permuted space; D is the diagonal.
|
inline |
|
inline |
Read-only access to the unit lower factor L (CSC) and the diagonal D.
|
inline |
|
inline |
|
inline |
Install the factor (unit lower L, diagonal D) and (re)build the coupled unit forward and transpose solve schedules from L.
L, D and the schedules are always set together, so the schedules' cached structure always matches L's pattern. Strongly exception safe: the schedules are built into locals before any member is replaced.
Precondition: the symbolic analysis (symbolic) MUST be installed first – set_factor validates L and D against symbolic.n. Calling it while symbolic is still default-constructed (n == 0) with a non-empty factor throws (see the guard below), rather than silently accepting a factor that no later solve could use.
|
inline |
Solve A*x = b.
A = P^T L D L^T P, so x = P^T L^{-T} D^{-1} L^{-1} P b. 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.
| supernodal_symbolic mtl::sparse::factorization::supernodal_ldlt_factor< Value >::symbolic |