# MATSOLVERSPQR
matrix type providing direct solvers, QR factorizations, for sequential matrices via the external package SPQR. Use ./configure --download-suitesparse to install PETSc to use SPQR

Consult SPQR documentation for more information about the common parameters
which correspond to the options database keys below.




## Note
SPQR is part of SuiteSparse http://faculty.cse.tamu.edu/davis/suitesparse.html


## See Also
 `PCQR`, `PCFactorSetMatSolverType()`, `MatSolverType`

## Level
beginner

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


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


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