MatSolverTypeRegister#

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

Logically Collective, No Fortran Support

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#

Matrices, Mat, Matrix Factorization, MatFactorGetSolverType(), MatCopy(), MatDuplicate(), MatGetFactorAvailable(), MatGetFactor()

Level#

developer

Location#

src/mat/interface/matrix.c

Implementations#

MatSolverTypeRegister_MUMPS() in src/mat/impls/aij/mpi/mumps/mumps.c
MatSolverTypeRegister_Pastix() in src/mat/impls/aij/mpi/pastix/pastix.c
MatSolverTypeRegister_STRUMPACK() in src/mat/impls/aij/mpi/strumpack/strumpack.c
MatSolverTypeRegister_SuperLU_DIST() in src/mat/impls/aij/mpi/superlu_dist/superlu_dist.c
MatSolverTypeRegister_Essl() in src/mat/impls/aij/seq/essl/essl.c
MatSolverTypeRegister_KOKKOS() in src/mat/impls/aij/seq/kokkos/aijkok.kokkos.cxx
MatSolverTypeRegister_Lusol() in src/mat/impls/aij/seq/lusol/lusol.c
MatSolverTypeRegister_Matlab() in src/mat/impls/aij/seq/matlab/aijmatlab.c
MatSolverTypeRegister_CUSPARSE() in src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu
MatSolverTypeRegister_HIPSPARSE() in src/mat/impls/aij/seq/seqhipsparse/aijhipsparse.hip.c
MatSolverTypeRegister_ViennaCL() in src/mat/impls/aij/seq/seqviennacl/aijviennacl.cxx
MatSolverTypeRegister_SuperLU() in src/mat/impls/aij/seq/superlu/superlu.c
MatSolverTypeRegister_SuiteSparse() in src/mat/impls/aij/seq/umfpack/umfpack.c
MatSolverTypeRegister_DENSECUDA() in src/mat/impls/dense/seq/cupm/cuda/matseqdensecuda.cu
MatSolverTypeRegister_DENSEHIP() in src/mat/impls/dense/seq/cupm/hip/matseqdensehip.hip.c
MatSolverTypeRegister_Elemental() in src/mat/impls/elemental/matelem.cxx
MatSolverTypeRegister_Htool() in src/mat/impls/htool/htool.cxx
MatSolverTypeRegister_ScaLAPACK() in src/mat/impls/scalapack/matscalapack.c


Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages