num::factor_block_lu¶
Defined in header <linear/factorization/block_tridiagonal.hpp>
block_lu_factor factor_block_lu(const spmat &A, view<const idx> levels,
real scale = 1.0);
Factor a block tridiagonal matrix by block LU without pivoting: \(P A P^T = \mathcal{L} \mathcal{U}\). Pivots must stay nonzero, as for an M-matrix. scale factors scale * A.
Exceptions¶
std::invalid_argument: IfAis not square or couples non-adjacent blocks.std::runtime_error: If a diagonal block has a zero pivot.