Browse Source

added virtual destructors to multipliers

tempestpy_adaptions
TimQu 7 years ago
parent
commit
3cd1edb378
  1. 1
      src/storm/solver/GmmxxMultiplier.h
  2. 2
      src/storm/solver/Multiplier.h
  3. 1
      src/storm/solver/NativeMultiplier.h

1
src/storm/solver/GmmxxMultiplier.h

@ -19,6 +19,7 @@ namespace storm {
class GmmxxMultiplier : public Multiplier<ValueType> { class GmmxxMultiplier : public Multiplier<ValueType> {
public: public:
GmmxxMultiplier(storm::storage::SparseMatrix<ValueType> const& matrix); GmmxxMultiplier(storm::storage::SparseMatrix<ValueType> const& matrix);
virtual ~GmmxxMultiplier() = default;
virtual void multiply(Environment const& env, std::vector<ValueType> const& x, std::vector<ValueType> const* b, std::vector<ValueType>& result) const override; virtual void multiply(Environment const& env, std::vector<ValueType> const& x, std::vector<ValueType> const* b, std::vector<ValueType>& result) const override;
virtual void multiplyGaussSeidel(Environment const& env, std::vector<ValueType>& x, std::vector<ValueType> const* b) const override; virtual void multiplyGaussSeidel(Environment const& env, std::vector<ValueType>& x, std::vector<ValueType> const* b) const override;

2
src/storm/solver/Multiplier.h

@ -23,6 +23,8 @@ namespace storm {
Multiplier(storm::storage::SparseMatrix<ValueType> const& matrix); Multiplier(storm::storage::SparseMatrix<ValueType> const& matrix);
virtual ~Multiplier() = default;
/* /*
* Clears the currently cached data of this multiplier in order to free some memory. * Clears the currently cached data of this multiplier in order to free some memory.
*/ */

1
src/storm/solver/NativeMultiplier.h

@ -16,6 +16,7 @@ namespace storm {
class NativeMultiplier : public Multiplier<ValueType> { class NativeMultiplier : public Multiplier<ValueType> {
public: public:
NativeMultiplier(storm::storage::SparseMatrix<ValueType> const& matrix); NativeMultiplier(storm::storage::SparseMatrix<ValueType> const& matrix);
virtual ~NativeMultiplier() = default;
virtual void multiply(Environment const& env, std::vector<ValueType> const& x, std::vector<ValueType> const* b, std::vector<ValueType>& result) const override; virtual void multiply(Environment const& env, std::vector<ValueType> const& x, std::vector<ValueType> const* b, std::vector<ValueType>& result) const override;
virtual void multiplyGaussSeidel(Environment const& env, std::vector<ValueType>& x, std::vector<ValueType> const* b) const override; virtual void multiplyGaussSeidel(Environment const& env, std::vector<ValueType>& x, std::vector<ValueType> const* b) const override;

Loading…
Cancel
Save