:orphan:
# MatSeqAIJHIPSPARSEGetIJ
returns the device row storage `i` and `j` indices for `MATSEQAIJHIPSPARSE` matrices. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatSeqAIJHIPSPARSEGetIJ(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

- ***i -*** the CSR row pointers
- ***j -*** the CSR column indices





## Note
When compressed is true, the CSR structure does not contain empty rows


## See Also
 [](ch_matrices), `Mat`, `MatSeqAIJHIPSPARSERestoreIJ()`, `MatSeqAIJHIPSPARSEGetArrayRead()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/seqhipsparse/aijhipsparse.hip.cpp#MatSeqAIJHIPSPARSEGetIJ">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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
