public enum SparseSolverId extends java.lang.Enum<SparseSolverId>
| Enum Constant and Description |
|---|
Accelerate
Sparse LDL^T and LU solver from Apple's Accelerate framework (Arm-based
MacOS only).
|
ConjugateGradient
Conjugate gradient
|
Mumps
MUMPS (MUltifrontal Massively Parallel sparse direct Solver), developed
by CERFACS, CNRS, ENS Lyon, INP Toulouse, Inria, Mumps Technologies and
the University of Bordeaux.
|
Pardiso
Intel MKL implementation of Pardiso, originally developed by Olaf Schenk
p
|
Umfpack
Umfpack, from SuiteSparse, developed by Tim Davis et al.
|
| Modifier and Type | Method and Description |
|---|---|
DirectSolver |
createDirectSolver()
Creates and returns the solver for this type, if it represents a direct
solver.
|
IterativeSolver |
createIterativeSolver()
Creates and returns the solver for this type, if it represents an
iterative solver.
|
static SparseSolverId |
findAvailableDirectSolver(java.lang.String name)
Finds a direct solver id by name (ignoring case) for the current
platform.
|
static SparseSolverId[] |
getAvailableDirectSolvers()
Returns all the available direct solvers that should be available for the
current platform.
|
static SparseSolverId |
getDefaultDirectSolver()
Returns the default direct solver for the current platform.
|
int |
getMatrixType() |
boolean |
isCompatible(int matrixType)
Queries if this solver type is compatible with the indicated matrix type.
|
boolean |
isDirect()
Queries whether the solver is direct.
|
static boolean |
isDirectSolverAvailable(SparseSolverId solverId)
Queries whether a specified direct solver should be available for the
current platform.
|
static SparseSolverId |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SparseSolverId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SparseSolverId Pardiso
public static final SparseSolverId Mumps
public static final SparseSolverId Umfpack
public static final SparseSolverId Accelerate
public static final SparseSolverId ConjugateGradient
public static SparseSolverId[] values()
for (SparseSolverId c : SparseSolverId.values()) System.out.println(c);
public static SparseSolverId valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isDirect()
true if the solver is directpublic int getMatrixType()
public boolean isCompatible(int matrixType)
matrixType - matrix type to checktrue if the matrix type is compatiblepublic static SparseSolverId getDefaultDirectSolver()
getAvailableDirectSolvers().public DirectSolver createDirectSolver()
null. If Pardiso is requested but is
not available on this platform, and MUMPS is, then a MUMPS solver is
returned instead, with a warning printed the first time this happens.nullpublic IterativeSolver createIterativeSolver()
null.nullpublic static SparseSolverId[] getAvailableDirectSolvers()
public static SparseSolverId findAvailableDirectSolver(java.lang.String name)
null if the solver is not available.public static boolean isDirectSolverAvailable(SparseSolverId solverId)