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/vec/vec/tutorials/ex12.c
src/vec/vec/tutorials/ex13.c
src/vec/vec/tutorials/ex42a.c
src/vec/vec/tutorials/ex7.c
src/vec/vec/tutorials/ex9.c
src/vec/vec/tutorials/ex11.c
src/vec/vec/tutorials/ex15.c
src/vec/vec/tutorials/ex5.c
src/vec/vec/tutorials/ex44.c
src/vec/vec/tutorials/ex18.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