num::csr_lu_solve¶
Defined in header <linear/solvers/ilu.hpp>
template <std::floating_point T, std::integral Index>
void csr_lu_solve(T *x, const T *val, const Index *row_ptr, const Index *col_idx,
const Index *diagonal, const T *b,
std::type_identity_t<Index> n) noexcept;
Solve with sparse LU factors: \(x \leftarrow U^{-1} L^{-1} b\). x may alias b.