:orphan:
# VecRestoreArrayPair
Returns a pair of pointers for two vectors that may be common obtained with `VecGetArrayPair()` 
## Synopsis
```
static inline PetscErrorCode VecRestoreArrayPair(Vec x, Vec y, PetscScalar **xv, PetscScalar **yv)
```
Logically Collective; No Fortran Support


## Input Parameters

- ***x -*** the vector
- ***y -*** the second vector
- ***xv -*** location to put pointer to the first array
- ***yv -*** location to put pointer to the second array





## See Also
 [](ch_vectors), `VecGetArray()`, `VecGetArrayRead()`, `VecGetArrayPair()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscvec.h.html#VecRestoreArrayPair">include/petscvec.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscvec.h)


[Index of all Vec routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
