#include "petscmat.h" PetscErrorCode MatGetFactorAvailable(Mat mat, MatSolverType type,MatFactorType ftype,PetscBool *flg)Not Collective
mat | - the matrix | |
type | - name of solver type, for example, superlu, petsc (to use PETSc's default) | |
ftype | - factor type, MAT_FACTOR_LU, MAT_FACTOR_CHOLESKY, MAT_FACTOR_ICC, MAT_FACTOR_ILU, |
flg | - PETSC_TRUE if the factorization is available |
PETSc must have been ./configure to use the external solver, using the option --download-package