# MatSeqAIJCUSPARSERestoreArray
restore the read-write access array obtained from `MatSeqAIJCUSPARSEGetArray()` 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatSeqAIJCUSPARSERestoreArray(Mat A, PetscScalar **a)
```
Not Collective


## Input Parameter

- ***A -*** a `MATSEQAIJCUSPARSE` matrix



## Output Parameter

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





## See Also
 `MatSeqAIJCUSPARSEGetArray()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu.html#MatSeqAIJCUSPARSERestoreArray">src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu)


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