:orphan:
# MATSEQAIJCUSPARSE
MATAIJCUSPARSE = "(seq)aijcusparse" - A matrix type to be used for sparse matrices. A matrix type type whose data resides on NVIDIA GPUs. These matrices can be in either
CSR, ELL, or Hybrid format.
All matrix calculations are performed on NVIDIA GPUs using the CuSPARSE library.
## Options Database Keys
- ***-mat_type aijcusparse -*** sets the matrix type to "seqaijcusparse" during a call to `MatSetFromOptions()`
- ***-mat_cusparse_storage_format csr -*** sets the storage format of matrices (for `MatMult()` and factors in `MatSolve()`).
Other options include ell (ellpack) or hyb (hybrid).
- ***-mat_cusparse_mult_storage_format csr -*** sets the storage format of matrices (for `MatMult()`). Other options include ell (ellpack) or hyb (hybrid).
- ***-mat_cusparse_use_cpu_solve -*** Do `MatSolve()` on CPU
## See Also
[](ch_matrices), `Mat`, `MatCreateSeqAIJCUSPARSE()`, `MatCUSPARSESetUseCPUSolve()`, `MATAIJCUSPARSE`, `MatCreateAIJCUSPARSE()`, `MatCUSPARSESetFormat()`, `MatCUSPARSEStorageFormat`, `MatCUSPARSEFormatOperation`
## Level
beginner
## Location
src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu
## Examples
src/ksp/ksp/tutorials/ex79.c
src/mat/tutorials/ex18.c
---
[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)