#include "petscmat.h" PetscErrorCode MatSolverTypeGet(MatSolverType type,MatType mtype,MatFactorType ftype,PetscBool *foundtype,PetscBool *foundmtype,PetscErrorCode (**createfactor)(Mat,MatFactorType,Mat*))
type | - name of the package, for example petsc or superlu | |
ftype | - the type of factorization supported by the type | |
mtype | - the matrix type that works with this type |
foundtype | - PETSC_TRUE if the type was registered | |
foundmtype | - PETSC_TRUE if the type supports the requested mtype | |
createfactor | - routine that will create the factored matrix ready to be used or NULL if not found |