:orphan:
# MatSeqAIJSetType
Converts a `MATSEQAIJ` matrix to a subtype 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatSeqAIJSetType(Mat mat, MatType matype)
```
Collective


## Input Parameters

- ***mat      -*** the matrix object
- ***matype   -*** matrix type



## Options Database Key

- ***-mat_seqaij_type  <method> -*** for example seqaijcrl





## See Also
 [](ch_matrices), `Mat`, `PCSetType()`, `VecSetType()`, `MatCreate()`, `MatType`, `Mat`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/aij.c.html#MatSeqAIJSetType">src/mat/impls/aij/seq/aij.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/aij/seq/aij.c)


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