VecRestoreArrayRead#

Restore array obtained with VecGetArrayRead()

Synopsis#

#include "petscvec.h"   
PetscErrorCode VecRestoreArrayRead(Vec x, const PetscScalar **a)

Not Collective

Input Parameters#

  • x - the vector

  • a - the array

Fortran Notes#

VecRestoreArrayRead() Fortran binding is deprecated (since PETSc 3.19), use VecRestoreArrayReadF90()

See Also#

Vectors and Parallel Data, Vec, VecRestoreArrayReadF90(), VecGetArray(), VecRestoreArray(), VecGetArrayPair(), VecRestoreArrayPair()

Level#

beginner

Location#

src/vec/vec/interface/rvector.c

Examples#

src/tao/unconstrained/tutorials/rosenbrock1.c
src/tao/complementarity/tutorials/minsurf1.c
src/tao/unconstrained/tutorials/minsurf1.c
src/tao/leastsquares/tutorials/chwirut1.c
src/tao/unconstrained/tutorials/eptorsion3.c
src/tao/constrained/tutorials/ex1.c
src/tao/unconstrained/tutorials/rosenbrock3.c
src/tao/unconstrained/tutorials/eptorsion1.c
src/tao/unconstrained/tutorials/rosenbrock2.c
src/tao/leastsquares/tutorials/cs1.c

Implementations#

VecRestoreArrayRead_Nest() in src/vec/vec/impls/nest/vecnest.c


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