#ifndef STORM_SOLVER_NATIVEMINMAXLINEAREQUATIONSOLVER_H_ #define STORM_SOLVER_NATIVEMINMAXLINEAREQUATIONSOLVER_H_ #include #include "src/solver/MinMaxLinearEquationSolver.h" namespace storm { namespace solver { /*! * A class that uses the gmm++ library to implement the MinMaxLinearEquationSolver interface. */ template class NativeMinMaxLinearEquationSolver : public MinMaxLinearEquationSolver { public: /*! * Constructs a min/max linear equation solver with parameters being set according to the settings * object. * * @param A The matrix defining the coefficients of the linear equation system. */ NativeMinMaxLinearEquationSolver(storm::storage::SparseMatrix const& A, MinMaxTechniqueSelection preferredTechnique = MinMaxTechniqueSelection::FROMSETTINGS, bool trackPolicy = false); /*! * Constructs a min/max linear equation solver with the given parameters. * * @param A The matrix defining the coefficients of the linear equation system. * @param precision The precision to use for convergence detection. * @param maximalNumberOfIterations The maximal number of iterations do perform before iteration is aborted. * @param relative If set, the relative error rather than the absolute error is considered for convergence * detection. */ NativeMinMaxLinearEquationSolver(storm::storage::SparseMatrix const& A, double precision, uint_fast64_t maximalNumberOfIterations, MinMaxTechniqueSelection tech, bool relative = true, bool trackPolicy = false); virtual void performMatrixVectorMultiplication(bool minimize, std::vector& x, std::vector* b = nullptr, uint_fast64_t n = 1, std::vector* newX = nullptr) const override; virtual void solveEquationSystem(bool minimize, std::vector& x, std::vector const& b, std::vector* multiplyResult = nullptr, std::vector* newX = nullptr) const override; }; } // namespace solver } // namespace storm #endif /* STORM_SOLVER_NATIVEMINMAXLINEAREQUATIONSOLVER_H_ */