petsc-3.14.5 2021-03-03
Report Typos and Errors

# MatSolveTypeRegister

Registers a MatSolverType that works for a particular matrix type

### Synopsis

    #include "petscmat.h"
    PetscErrorCode MatSolverTypeRegister(MatSolverType package,MatType mtype,MatFactorType ftype,PetscErrorCode (*createfactor)(Mat,MatFactorType,Mat*))

### Input Parameters

| 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
| createfactor | - routine that will create the factored matrix ready to be used

### See Also

MatCopy(), MatDuplicate(), MatGetFactorAvailable(), MatGetFactor()

### Level

intermediate

### Location

src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages