PETSc version 3.17.5
MatGetFactor
Returns a matrix suitable to calls to MatXXFactorSymbolic()
Synopsis
#include "petscmat.h"
PetscErrorCode MatGetFactor(Mat mat, MatSolverType type,MatFactorType ftype,Mat *f)
Collective on Mat
Input Parameters
Output Parameters
| f | - the factor matrix used with MatXXFactorSymbolic() calls
|
Notes
Some PETSc matrix formats have alternative solvers available that are contained in alternative packages
such as pastix, superlu, mumps etc.
PETSc must have been ./configure to use the external solver, using the option --download-package
Developer Notes
This should actually be called MatCreateFactor() since it creates a new factor object
See Also
MatCopy(), MatDuplicate(), MatGetFactorAvailable(), MatFactorGetCanUseOrdering(), MatSolverTypeRegister()
Level
intermediate
Location
src/mat/interface/matrix.c
Examples
src/ksp/ksp/tutorials/ex52.c.html
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages