:orphan: # MatSeqAIJCUSPARSERestoreArrayWrite restore the write-only access array obtained from `MatSeqAIJCUSPARSEGetArrayWrite()` ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatSeqAIJCUSPARSERestoreArrayWrite(Mat A, PetscScalar **a) ``` Not Collective ## Input Parameters - ***A -*** a `MATSEQAIJCUSPARSE` matrix - ***a -*** pointer to the device data ## See Also [](ch_matrices), `Mat`, `MatSeqAIJCUSPARSEGetArrayWrite()` ## Level developer ## Location src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)