DOLFIN
DOLFIN C++ interface
|
19 #ifndef __PETSC_NESTMATRIX_H
20 #define __PETSC_NESTMATRIX_H
27 #include "PETScMatrix.h"
52 (std::vector<std::shared_ptr<GenericMatrix>> mats);
66 std::vector<std::shared_ptr<GenericVector>> z_in)
const;
71 void get_block_dofs(std::vector<dolfin::la_index>& dofs, std::size_t idx)
const;
75 std::size_t
size(std::size_t dim)
const
80 virtual std::string
str(
bool verbose)
const;
PETScNestMatrix()
Create empty matrix.
Definition: PETScNestMatrix.cpp:36
Definition: PETScMatrix.h:59
virtual void mult(const GenericVector &x, GenericVector &y) const
Definition: PETScNestMatrix.cpp:118
std::size_t size(std::size_t dim) const
Definition: PETScNestMatrix.h:75
std::pair< std::int64_t, std::int64_t > size() const
Definition: PETScBaseMatrix.cpp:79
This class defines a common interface for vectors.
Definition: GenericVector.h:48
virtual ~PETScNestMatrix()
Destructor.
Definition: PETScNestMatrix.cpp:91
virtual std::string str(bool verbose) const
Definition: PETScNestMatrix.cpp:96
void get_block_dofs(std::vector< dolfin::la_index > &dofs, std::size_t idx) const
Definition: PETScNestMatrix.cpp:179
void init_vectors(GenericVector &z_out, std::vector< std::shared_ptr< GenericVector >> z_in) const
Definition: PETScNestMatrix.cpp:144
Definition: PETScNestMatrix.h:41