:orphan:
# MatCUSPARSEStorageFormat
indicates the storage format for `MATAIJCUSPARSE` (GPU) matrices. 
## Synopsis
```
typedef enum {
  MAT_CUSPARSE_CSR,
  MAT_CUSPARSE_ELL,
  MAT_CUSPARSE_HYB
} MatCUSPARSEStorageFormat;
```

## Values

- ***`MAT_CUSPARSE_CSR` -*** Compressed Sparse Row
- ***`MAT_CUSPARSE_ELL` -*** Ellpack (requires CUDA 4.2 or later).
- ***`MAT_CUSPARSE_HYB` -*** Hybrid, a combination of Ellpack and Coordinate format (requires CUDA 4.2 or later).





## See Also
 [](ch_matrices), `MATAIJCUSPARSE`, `MatCUSPARSESetFormat()`, `MatCUSPARSEFormatOperation`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscmat.h.html#MatCUSPARSEStorageFormat">include/petscmat.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmat.h)


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