num::factor_block_cholesky¶
Defined in header <linear/factorization/block_tridiagonal.hpp>
block_cholesky_factor factor_block_cholesky(const spmat &A, view<const idx> levels);
Factor a block tridiagonal matrix by block Cholesky: \(P A P^T = \mathcal{L} \mathcal{L}^T\). Reads only the diagonal and subdiagonal blocks.
Exceptions¶
std::invalid_argument: IfAis not square or couples non-adjacent blocks.std::runtime_error: If a diagonal block is not positive definite.