DOLFIN-X
DOLFIN-X C++ interface
Public Member Functions | Public Attributes | List of all members
dolfinx::la::VecWrapper Class Reference

Wrapper around a PETSc Vec object, to simplify direct access to data. More...

#include <utils.h>

Public Member Functions

 VecWrapper (Vec y, bool ghosted=true)
 Wrap PETSc Vec y.
 
 VecWrapper (const VecWrapper &w)=delete
 
 VecWrapper (VecWrapper &&w)
 Move constructor.
 
VecWrapperoperator= (const VecWrapper &w)=delete
 
VecWrapperoperator= (VecWrapper &&w)
 Move assignment.
 
void restore ()
 Restore PETSc Vec object.
 

Public Attributes

Eigen::Map< Eigen::Matrix< PetscScalar, Eigen::Dynamic, 1 > > x
 Eigen Map into PETSc Vec.
 

Detailed Description

Wrapper around a PETSc Vec object, to simplify direct access to data.


The documentation for this class was generated from the following files: