Sparsity pattern used to create PETSc matrices. More...
#include <MatrixNnzStructure.hpp>
Public Member Functions | |
template<class RowBasis , class ColBasis > | |
MatrixNnzStructure (RowBasis const &rowBasis, ColBasis const &colBasis, SymmetryStructure symmetry=SymmetryStructure::unknown) | |
std::vector< PetscInt > const & | d_nnz () const |
std::vector< PetscInt > const & | o_nnz () const |
Return Number of nonzeros in the off-diagonal part (overlap part) | |
SymmetryStructure | symmetry () const |
Symmetry of the matrix entries. | |
Protected Member Functions | |
template<class RowBasis , class ColBasis , class LI > | |
void | init (RowBasis const &rowBasis, PetscSequentialIndexDistribution< LI > const &rowDofMap, ColBasis const &colBasis, PetscSequentialIndexDistribution< LI > const &colDofMap) |
template<class RowBasis , class ColBasis , class GID , class LI > | |
void | init (RowBasis const &rowBasis, PetscParallelIndexDistribution< GID, LI > const &rowDofMap, ColBasis const &colBasis, PetscParallelIndexDistribution< GID, LI > const &colDofMap) |
Sparsity pattern used to create PETSc matrices.