Browse Source

fixed usage of multiplyrow

tempestpy_adaptions
TimQu 7 years ago
parent
commit
e491dc3813
  1. 8
      src/storm/solver/IterativeMinMaxLinearEquationSolver.cpp
  2. 8
      src/storm/solver/NativeLinearEquationSolver.cpp

8
src/storm/solver/IterativeMinMaxLinearEquationSolver.cpp

@ -667,9 +667,11 @@ namespace storm {
}
void multiplyRow(uint64_t const& row, storm::storage::SparseMatrix<ValueType> const& A, storm::solver::Multiplier<ValueType> const& multiplier, ValueType const& bi, ValueType& xi, ValueType& yi) {
xi = bi;
yi = storm::utility::zero<ValueType>();
multiplier.multiplyRow2(row, x, xi, y, yi);
ValueType xRes = bi;
ValueType yRes = storm::utility::zero<ValueType>();
multiplier.multiplyRow2(row, x, xRes, y, yRes);
xi = std::move(xRes);
yi = std::move(yRes);
}
template<OptimizationDirection dir>

8
src/storm/solver/NativeLinearEquationSolver.cpp

@ -591,9 +591,11 @@ namespace storm {
}
void multiplyRow(uint64_t const& row, storm::storage::SparseMatrix<ValueType> const& A, storm::solver::Multiplier<ValueType> const& multiplier, ValueType const& bi, ValueType& xi, ValueType& yi) {
xi = bi;
yi = storm::utility::zero<ValueType>();
multiplier.multiplyRow2(row, x, xi, y, yi);
ValueType xRes = bi;
ValueType yRes = storm::utility::zero<ValueType>();
multiplier.multiplyRow2(row, x, xRes, y, yRes);
xi = std::move(xRes);
yi = std::move(yRes);
}
void performIterationStep(storm::storage::SparseMatrix<ValueType> const& A, storm::solver::Multiplier<ValueType> const& multiplier, std::vector<ValueType> const& b) {
Loading…
Cancel
Save