#include "petscmat.h" PetscErrorCode MatSolverTypeRegister(MatSolverType package,MatType mtype,MatFactorType ftype,PetscErrorCode (*getfactor)(Mat,MatFactorType,Mat*))
package | - name of the package, for example petsc or superlu | |
mtype | - the matrix type that works with this package | |
ftype | - the type of factorization supported by the package | |
getfactor | - routine that will create the factored matrix ready to be used |