:orphan:
# VecHIPResetArray
Resets a vector to use its default memory. 
## Synopsis
```
#include <petscvec.h> 
PetscErrorCode VecHIPResetArray(Vec vin)
```
Not Collective; No Fortran Support


## Input Parameters

- ***vec -*** the vector





## Note
Call this after the use of `VecHIPPlaceArray()`.


## See Also
 [](ch_vectors), `VecGetArray()`, `VecRestoreArray()`, `VecReplaceArray()`, `VecPlaceArray()`,
`VecResetArray()`, `VecHIPPlaceArray()`, `VecHIPReplaceArray()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/seq/cupm/hip/vecseqcupm.hip.cpp#VecHIPResetArray">src/vec/vec/impls/seq/cupm/hip/vecseqcupm.hip.cpp</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/impls/seq/cupm/hip/vecseqcupm.hip.cpp)


[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)  
