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;
This class defines a common interface for vectors.
Definition GenericVector.h:48
std::pair< std::int64_t, std::int64_t > size() const
Definition PETScBaseMatrix.cpp:79
Definition PETScMatrix.h:59
Definition PETScNestMatrix.h:41
virtual std::string str(bool verbose) const
Definition PETScNestMatrix.cpp:96
virtual ~PETScNestMatrix()
Destructor.
Definition PETScNestMatrix.cpp:91
std::size_t size(std::size_t dim) const
Definition PETScNestMatrix.h:75
PETScNestMatrix()
Create empty matrix.
Definition PETScNestMatrix.cpp:36
void get_block_dofs(std::vector< dolfin::la_index > &dofs, std::size_t idx) const
Definition PETScNestMatrix.cpp:179
virtual void mult(const GenericVector &x, GenericVector &y) const
Definition PETScNestMatrix.cpp:118
void init_vectors(GenericVector &z_out, std::vector< std::shared_ptr< GenericVector > > z_in) const
Definition PETScNestMatrix.cpp:144