num::cholesky¶
Defined in header <linear/factorization/cholesky.hpp>, <linear/factorization/factor.hpp>, <linear/factorization/reuse.hpp>
template <std::floating_point T>
bool cholesky(T *L, const T *A, idx n) noexcept; // (1)
cholesky_result cholesky(const with_law<mat<real>, law::spd> &A); // (2)
template <class M>
requires matrix_space<M> && (!claims<M, law::spd>)
cholesky_result cholesky(const M & /*untagged*/); // (3)
similar_factor<cholesky_result> cholesky(const spmat &R, view<const real> h); // (4)
similar_factor<block_cholesky_factor>
cholesky(const spmat &R, block_structure structure, view<const real> h); // (5)
corrected_cholesky cholesky(const spmat &R, view<const real> h,
const corrected_cholesky *previous,
view<const idx> changed); // (6)
suffix_block_cholesky cholesky(const spmat &R, block_structure structure,
view<const real> h,
const suffix_block_cholesky *previous,
view<const idx> changed); // (7)
(1) Factor a symmetric positive definite matrix by Cholesky: \(A = L L^T\). Reads the lower triangle; L and A may alias. Returns false at a non-positive pivot.
(2) Factor a matrix tagged SPD by Cholesky: \(A = L L^T\).
(3) Reject an untagged matrix at compile time; tag it SPD first.
(4) Factor a diagonally scaled matrix by Cholesky, keeping the scaling: \(H A H^{-1} = L L^T\).
(5) Factor a diagonally scaled matrix by block Cholesky: \(H A H^{-1} = \mathcal{L} \mathcal{L}^T\).
(6) Factor a diagonally scaled matrix by Cholesky, correcting the previous factor: \(H A H^{-1} = L L^T\).
(7) Factor \(H A H^{-1}\) by block Cholesky, reusing the unchanged leading blocks of previous.