9#include <petscsystypes.h>
18template <
typename IndexType>
60 return row_ptr.empty() ? 0 :
static_cast<PetscInt
>(
row_ptr.size()) - 1;
std::vector< PetscInt > col_idx
Global column indices, sorted within each local row.
std::vector< PetscInt > row_ptr
CSR row pointers (length n_local_rows + 1).
PetscInt nnzInRow(PetscInt const row) const
Number of nonzeros in the given local row.
PetscInt numberOfRows() const
Number of local rows the pattern describes.
IndexType numberOfRows() const
Number of global rows the pattern describes.
IndexType nnzInRow(IndexType const row) const
Number of nonzeros in the given global row.
std::vector< IndexType > number_non_zeros_per_row