Package jline.api.mc
Class Ctmc_solve
java.lang.Object
jline.api.mc.Ctmc_solve
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOrder above which the direct sparse factorization is abandoned in favour of GMRES. -
Method Summary
Modifier and TypeMethodDescriptionstatic Matrixctmc_solve(Matrix Q) Return the steady-state probability of a CTMC, choosing the solution method by size alone.static Matrixctmc_solve(Matrix Q, SolverOptions options) Return the steady-state probability of a CTMC.
-
Field Details
-
GMRES_MIN_STATES
public static final int GMRES_MIN_STATESOrder above which the direct sparse factorization is abandoned in favour of GMRES. Below it the direct solve is both faster and exact, so the iterative path buys nothing; above it the factorization fill-in is what limits the tractable model.- See Also:
-
-
Method Details
-
ctmc_solve
Return the steady-state probability of a CTMC, choosing the solution method by size alone.- Parameters:
Q- Infinitesimal generator of the CTMC- Returns:
- Steady-state probability vector
-
ctmc_solve
Return the steady-state probability of a CTMC.- Parameters:
Q- Infinitesimal generator of the CTMCoptions- Solver options;methodmay force "gmres" or "direct", andconfig.gmres_restartsets the Krylov subspace dimension. May be null, in which case the defaults apply.- Returns:
- Steady-state probability vector
-