Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
StandardMinMaxLinearEquationSolver.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace storm {
7
8class Environment;
9
10namespace solver {
11
12template<typename ValueType, typename SolutionType = ValueType>
13class StandardMinMaxLinearEquationSolver : public MinMaxLinearEquationSolver<ValueType, SolutionType> {
14 public:
18
19 virtual void setMatrix(storm::storage::SparseMatrix<ValueType> const& matrix) override;
20 virtual void setMatrix(storm::storage::SparseMatrix<ValueType>&& matrix) override;
21
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.
32};
33
34} // namespace solver
35} // namespace storm
A class representing the interface that all min-max linear equation solvers shall implement.
std::unique_ptr< storm::storage::SparseMatrix< ValueType > > localA
virtual void setMatrix(storm::storage::SparseMatrix< ValueType > const &matrix) override
storm::storage::SparseMatrix< ValueType > const * A
A class that holds a possibly non-square matrix in the compressed row storage format.
LabParser.cpp.
Definition cli.cpp:18