proxsuite 0.7.3 The Advanced Proximal Optimization Toolbox |
#include <proxsuite/linalg/dense/ldlt.hpp>
Public Member Functions | |
| Ldlt ()=default | |
| void | reserve_uninit (isize cap) noexcept |
| void | reserve (isize cap) noexcept |
| void | delete_at (isize const *indices, isize r, proxsuite::linalg::veg::dynstack::DynStackMut stack) |
| auto | choose_insertion_position (isize i, Eigen::Ref< Vec const > a) -> isize |
| void | insert_block_at (isize i, Eigen::Ref< ColMat const > a, proxsuite::linalg::veg::dynstack::DynStackMut stack) |
| void | diagonal_update_clobber_indices (isize *indices, isize r, Eigen::Ref< Vec const > alpha, proxsuite::linalg::veg::dynstack::DynStackMut stack) |
| void | rank_r_update (Eigen::Ref< ColMat const > w, Eigen::Ref< Vec const > alpha, proxsuite::linalg::veg::dynstack::DynStackMut stack) |
| auto | dim () const noexcept -> isize |
| auto | ld_col () const noexcept -> Eigen::Map< ColMat const, Eigen::Unaligned, Eigen::OuterStride< DYN > > |
| auto | ld_col_mut () noexcept -> Eigen::Map< ColMat, Eigen::Unaligned, Eigen::OuterStride< DYN > > |
| auto | ld_row () const noexcept -> Eigen::Map< RowMat const, Eigen::Unaligned, Eigen::OuterStride< DYN > > |
| auto | ld_row_mut () noexcept -> Eigen::Map< RowMat, Eigen::Unaligned, Eigen::OuterStride< DYN > > |
| auto | l () const noexcept -> LView |
| auto | l_mut () noexcept -> LViewMut |
| auto | lt () const noexcept -> LTView |
| auto | lt_mut () noexcept -> LTViewMut |
| auto | d () const noexcept -> DView |
| auto | d_mut () noexcept -> DViewMut |
| auto | p () const -> Perm |
| auto | pt () const -> Perm |
| void | factorize (Eigen::Ref< ColMat const > mat, proxsuite::linalg::veg::dynstack::DynStackMut stack) |
| void | solve_in_place (Eigen::Ref< Vec > rhs, proxsuite::linalg::veg::dynstack::DynStackMut stack) const |
| void | dual_solve_in_place (Eigen::Ref< Vec > rhs, isize n, proxsuite::linalg::veg::dynstack::DynStackMut stack) const |
| auto | dbg_reconstructed_matrix_internal () const -> ColMat |
| auto | dbg_reconstructed_matrix () const -> ColMat |
Static Public Member Functions | |
| static auto | rank_r_update_req (isize n, isize r) noexcept -> proxsuite::linalg::veg::dynstack::StackReq |
| static auto | delete_at_req (isize n, isize r) noexcept -> proxsuite::linalg::veg::dynstack::StackReq |
| static auto | insert_block_at_req (isize n, isize r) noexcept -> proxsuite::linalg::veg::dynstack::StackReq |
| static auto | diagonal_update_req (isize n, isize r) noexcept -> proxsuite::linalg::veg::dynstack::StackReq |
| static auto | factorize_req (isize n) -> proxsuite::linalg::veg::dynstack::StackReq |
| static auto | solve_in_place_req (isize n) -> proxsuite::linalg::veg::dynstack::StackReq |
Wrapper class that handles an allocated LDLT decomposition, with an applied permutation. When provided with a matrix A, this internally stores a lower triangular matrix with unit diagonal L, a vector D, and a permutation P such that A = P.T L diag(D) L.T P.
Example usage:
| default |
Default constructor, initialized with a 0×0 empty matrix.
| inlinenoexcept |
| inlinenoexcept |
| inlinestaticnoexcept |
| inlinestaticnoexcept |
| inline |
Given an LDLT decomposition for a matrix A, this computes the decomposition for the matrix A with r columns and rows removed, as indicated by the indices indices[0], ..., indices[r-1].
| indices | pointer to the array of indices to be deleted |
| r | number of the indices to be deleted |
| stack | workspace memory stack |
| inline |
| inlinestaticnoexcept |
| inline |
Given an LDLT decomposition for a matrix A, this computes the decomposition for the matrix A with extra r columns and rows from a added at the index i.
| i | index where the block should be inserted |
| a | matrix of the new columns that are inserted |
| stack | workspace memory stack |
| inlinestaticnoexcept |
| inline |
Given an LDLT decomposition for a matrix A, this computes the decomposition for the matrix A with the vector alpha added to a diagonal subset, as specified by the provided indices.
The values pointed at by indices are unspecified after a call to this function.
| indices | pointer to the array of indices of diagonal elements that are updated |
| r | number of the indices to be updated |
| stack | workspace memory stack |
| inline |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inlinenoexcept |
| inline |
| inline |
| inlinestatic |
| inline |
| inlinestatic |
| inline |
| inline |
| inline |
| inline |