|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Result of numeric Cholesky factorization. More...
#include <sparse_cholesky.hpp>
Public Member Functions | |
| std::size_t | num_rows () const |
| std::size_t | num_cols () const |
| const util::csc_matrix< Value > & | factor () const |
| Read-only access to the lower Cholesky factor L (CSC). | |
| void | set_factor (util::csc_matrix< Value > L) |
| Install the numeric factor and (re)build the coupled forward and transpose solve schedules from it. | |
| template<typename Accumulator = void, typename VecX, typename VecB> | |
| void | solve (VecX &x, const VecB &b) const |
| Solve A*x = b using the Cholesky factorization. | |
Public Attributes | |
| cholesky_symbolic | symbolic |
Result of numeric Cholesky factorization.
Holds the lower triangular factor L (CSC) and its forward-solve level schedule as coupled, read-only state: L is only ever installed together with the schedule built from it (via set_factor), so the two cannot drift out of sync. The symbolic analysis is exposed for permutation info during solve.
|
inline |
Read-only access to the lower Cholesky factor L (CSC).
|
inline |
|
inline |
|
inline |
Install the numeric factor and (re)build the coupled forward and transpose solve schedules from it.
L and its schedules are always set together here, which enforces the invariant the level solves rely on – the schedules' cached structure always matches L's pattern. The factor must be square and match the symbolic dimension (set symbolic first). Strongly exception safe: both schedules are built into locals before any member is replaced, so a throw leaves the object unchanged.
|
inline |
Solve A*x = b using the Cholesky factorization.
A = P^T L L^T P, so x = P^T L^{-T} 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.
| cholesky_symbolic mtl::sparse::factorization::cholesky_numeric< Value >::symbolic |