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

Read-only wrapper around a PETSc Vec object, to simplify direct access to data. More...

#include <utils.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Read-only wrapper around a PETSc Vec object, to simplify direct access to data.


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