num::csr_diagonal_positions¶
Defined in header <linear/solvers/ilu.hpp>
template <std::integral Index>
bool csr_diagonal_positions(Index *diagonal, const Index *row_ptr, const Index *col_idx,
std::type_identity_t<Index> n) noexcept;
Find the position of each row's diagonal entry; returns false if a row has none. Column indices must be sorted.