Vec#

Abstract PETSc vector object. Used for holding solutions and right-hand sides for (non) linear systems and integrators

Synopsis#

typedef struct _p_Vec *Vec;

Note#

Internally the actual vector representation is generally a simple array but most PETSc code can work on other representations through this abstraction

See Also#

Summary of Vector Types Available In PETSc, Vectors and Parallel Data, VecCreate(), VecType, VecSetType()

Level#

beginner

Location#

include/petscvec.h

Examples#

src/tao/leastsquares/tutorials/tomography.c
src/tao/leastsquares/tutorials/chwirut1f.F90
src/tao/leastsquares/tutorials/cs1.c
src/tao/leastsquares/tutorials/chwirut1.c
src/tao/leastsquares/tutorials/chwirut2f.F90
src/tao/leastsquares/tutorials/chwirut2.c

Implementations#

_p_Vec in include/petsc/private/vecimpl.h
Vec_MOAB in include/petsc/private/dmmbimpl.h
Vec_Chain in src/tao/unconstrained/impls/bmrm/bmrm.h
Vec_Seq in src/vec/vec/impls/dvecimpl.h
Vec_MPI in src/vec/vec/impls/mpi/pvecimpl.h
Vec_Nest in src/vec/vec/impls/nest/vecnestimpl.h


Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages