Public Member Functions | |
FullMatrix (const unsigned int m, const unsigned int n) | |
virtual const MPI_Comm & | get_mpi_communicator () const |
Implementation of a sequential dense matrix class based on PETSC. All the functionality is actually in the base class, except for the calls to generate a sequential dense matrix. This is possible since PETSc only works on an abstract matrix type and internally distributes to functions that do the actual work depending on the actual matrix type (much like using virtual functions). Only the functions creating a matrix of specific type differ, and are implemented in this particular class.
Create a full matrix of dimensions m
times n
.
virtual const MPI_Comm& PETScWrappers::FullMatrix::get_mpi_communicator | ( | ) | const [virtual] |
Return a reference to the MPI communicator object in use with this matrix. Since this is a sequential matrix, it returns the MPI_COMM_SELF communicator.
Implements PETScWrappers::MatrixBase.