# MatSeqAIJHIPSPARSERestoreArrayRead
restore the read-only access array obtained from MatSeqAIJHIPSPARSEGetArrayRead() Not Collective 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatSeqAIJHIPSPARSERestoreArrayRead(Mat A, const PetscScalar **a)
```

## Input Parameter

- ***A -*** a MATSEQAIJHIPSPARSE matrix



## Output Parameter

- ***a -*** pointer to the device data





## See Also
 `MatSeqAIJHIPSPARSEGetArrayRead()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/seqhipsparse/aijhipsparse.hip.cpp#MatSeqAIJHIPSPARSERestoreArrayRead">src/mat/impls/aij/seq/seqhipsparse/aijhipsparse.hip.cpp</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/aij/seq/seqhipsparse/aijhipsparse.hip.cpp)


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