Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
EigenSolverEnvironment.cpp
Go to the documentation of this file.
2
3#include <limits>
4
7
8namespace storm {
9
11 : method(storm::solver::EigenLinearEquationSolverMethod::Gmres),
12 methodSetFromDefault(true),
13 preconditioner(storm::solver::EigenLinearEquationSolverPreconditioner::Ilu),
14 restartThreshold(50),
15 maxIterationCount(std::numeric_limits<uint64_t>::max()),
16 precision(storm::utility::convertNumber<storm::RationalNumber>(1e-06)) {
17 // Intentionally left empty.
18}
19
21 // Intentionally left empty
22}
23
24storm::solver::EigenLinearEquationSolverMethod const& EigenSolverEnvironment::getMethod() const {
25 return method;
26}
27
29 return methodSetFromDefault;
30}
31
32void EigenSolverEnvironment::setMethod(storm::solver::EigenLinearEquationSolverMethod value, bool isSetFromDefault) {
33 methodSetFromDefault = isSetFromDefault;
34 method = value;
35}
36
37storm::solver::EigenLinearEquationSolverPreconditioner const& EigenSolverEnvironment::getPreconditioner() const {
38 return preconditioner;
39}
40
41void EigenSolverEnvironment::setPreconditioner(storm::solver::EigenLinearEquationSolverPreconditioner value) {
42 preconditioner = value;
43}
44
46 return restartThreshold;
47}
48
50 restartThreshold = value;
51}
52
54 return maxIterationCount;
55}
56
58 maxIterationCount = value;
59}
60
61storm::RationalNumber const& EigenSolverEnvironment::getPrecision() const {
62 return precision;
63}
64
65void EigenSolverEnvironment::setPrecision(storm::RationalNumber value) {
66 precision = value;
67}
68} // namespace storm
void setPrecision(storm::RationalNumber value)
storm::solver::EigenLinearEquationSolverMethod const & getMethod() const
void setMethod(storm::solver::EigenLinearEquationSolverMethod value, bool isSetFromDefault=false)
uint64_t const & getMaximalNumberOfIterations() const
void setPreconditioner(storm::solver::EigenLinearEquationSolverPreconditioner value)
void setMaximalNumberOfIterations(uint64_t value)
uint64_t const & getRestartThreshold() const
storm::RationalNumber const & getPrecision() const
storm::solver::EigenLinearEquationSolverPreconditioner const & getPreconditioner() const