Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
StandardMinMaxLinearEquationSolver.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
storm/solver/LinearEquationSolver.h
"
4
#include "
storm/solver/MinMaxLinearEquationSolver.h
"
5
6
namespace
storm
{
7
8
class
Environment;
9
10
namespace
solver {
11
12
template
<
typename
ValueType,
typename
SolutionType = ValueType>
13
class
StandardMinMaxLinearEquationSolver
:
public
MinMaxLinearEquationSolver
<ValueType, SolutionType> {
14
public
:
15
StandardMinMaxLinearEquationSolver
();
16
explicit
StandardMinMaxLinearEquationSolver
(
storm::storage::SparseMatrix<ValueType>
const
&
A
);
17
explicit
StandardMinMaxLinearEquationSolver
(
storm::storage::SparseMatrix<ValueType>
&&
A
);
18
19
virtual
void
setMatrix
(
storm::storage::SparseMatrix<ValueType>
const
& matrix)
override
;
20
virtual
void
setMatrix
(
storm::storage::SparseMatrix<ValueType>
&& matrix)
override
;
21
22
virtual
~StandardMinMaxLinearEquationSolver
() =
default
;
23
24
protected
:
25
// If the solver takes posession of the matrix, we store the moved matrix in this member, so it gets deleted
26
// when the solver is destructed.
27
std::unique_ptr<storm::storage::SparseMatrix<ValueType>>
localA
;
28
29
// A reference to the original sparse matrix given to this solver. If the solver takes posession of the matrix
30
// the reference refers to localA.
31
storm::storage::SparseMatrix<ValueType>
const
*
A
;
32
};
33
34
}
// namespace solver
35
}
// namespace storm
LinearEquationSolver.h
MinMaxLinearEquationSolver.h
storm::solver::MinMaxLinearEquationSolver
A class representing the interface that all min-max linear equation solvers shall implement.
Definition
MinMaxLinearEquationSolver.h:35
storm::solver::StandardMinMaxLinearEquationSolver
Definition
StandardMinMaxLinearEquationSolver.h:13
storm::solver::StandardMinMaxLinearEquationSolver::localA
std::unique_ptr< storm::storage::SparseMatrix< ValueType > > localA
Definition
StandardMinMaxLinearEquationSolver.h:27
storm::solver::StandardMinMaxLinearEquationSolver::StandardMinMaxLinearEquationSolver
StandardMinMaxLinearEquationSolver()
Definition
StandardMinMaxLinearEquationSolver.cpp:20
storm::solver::StandardMinMaxLinearEquationSolver::setMatrix
virtual void setMatrix(storm::storage::SparseMatrix< ValueType > const &matrix) override
Definition
StandardMinMaxLinearEquationSolver.cpp:37
storm::solver::StandardMinMaxLinearEquationSolver::A
storm::storage::SparseMatrix< ValueType > const * A
Definition
StandardMinMaxLinearEquationSolver.h:31
storm::solver::StandardMinMaxLinearEquationSolver::~StandardMinMaxLinearEquationSolver
virtual ~StandardMinMaxLinearEquationSolver()=default
storm::storage::SparseMatrix
A class that holds a possibly non-square matrix in the compressed row storage format.
Definition
SparseMatrix.h:332
storm
LabParser.cpp.
Definition
cli.cpp:18
src
storm
solver
StandardMinMaxLinearEquationSolver.h
Generated by
1.9.8