# MatSeqAIJCUSPARSERestoreIJ
restore the device row storage i and j indices obtained with `MatSeqAIJCUSPARSEGetIJ()` 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatSeqAIJCUSPARSERestoreIJ(Mat A, PetscBool compressed, const int **i, const int **j)
```
Not collective


## Input Parameters

- ***A -*** the matrix
- ***compressed -*** `PETSC_TRUE` or `PETSC_FALSE` indicating the matrix data structure should be always returned in compressed form



## Output Parameters

- ***ia -*** the CSR row pointers
- ***ja -*** the CSR column indices





## See Also
 `MatSeqAIJCUSPARSEGetIJ()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu.html#MatSeqAIJCUSPARSERestoreIJ">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)  
