@@ -78,7 +78,6 @@ template <typename SL, typename EL> class PolicyIteration {
7878 PolicyIteration (PolicyIteration &&) = delete ;
7979 PolicyIteration &operator =(PolicyIteration &&) = delete ;
8080
81-
8281 struct PolicyIterationResult {
8382 std::map<const State<SL, EL> *, CDouble> values;
8483 StrategyVector<SL, EL> strategy;
@@ -325,7 +324,7 @@ template <typename SL, typename EL> class PolicyIteration {
325324 * @return the new distance and ratio vectors
326325 */
327326 StrategyEvaluation evaluateStrategy (RatioGame<SL, EL> &game,
328- StrategyVector<SL, EL>& currentStrategy,
327+ StrategyVector<SL, EL> & currentStrategy,
329328 std::map<const State<SL, EL> *, CDouble> &distanceVector,
330329 std::map<const State<SL, EL> *, CDouble> &ratioVector,
331330 std::map<const State<SL, EL> *, CDouble> &dw2,
@@ -391,7 +390,7 @@ template <typename SL, typename EL> class PolicyIteration {
391390 if (visited[v] == BOTTOM_VERTEX) {
392391 const State<SL, EL> *u = v;
393392 while (visited[u] == BOTTOM_VERTEX) { // NOLINT(*pointer-arithmetic)
394- visited[u] = v; // NOLINT(*pointer-arithmetic)
393+ visited[u] = v; // NOLINT(*pointer-arithmetic)
395394 u = currentStrategy.getSuccessor (u);
396395 }
397396 if (visited[u] == v) { // NOLINT(*pointer-arithmetic)
@@ -452,15 +451,14 @@ template <typename SL, typename EL> class PolicyIteration {
452451 * @param epsilon epsilon value for equality on real numbers
453452 * @return
454453 */
455- DistanceResult
456- computeDistances (RatioGame<SL, EL> &game,
457- StrategyVector<SL, EL> ¤tStrategy,
458- FSM::Abstract::SetOfStateRefs &selectedStates,
459- std::map<const State<SL, EL> *, CDouble> &r_i_t ,
460- std::map<const State<SL, EL> *, CDouble> &d_prev,
461- std::map<const State<SL, EL> *, CDouble> &r_prev,
462- std::map<const State<SL, EL> *, CDouble> &dw2_prev,
463- CDouble epsilon) {
454+ DistanceResult computeDistances (RatioGame<SL, EL> &game,
455+ StrategyVector<SL, EL> ¤tStrategy,
456+ FSM::Abstract::SetOfStateRefs &selectedStates,
457+ std::map<const State<SL, EL> *, CDouble> &r_i_t ,
458+ std::map<const State<SL, EL> *, CDouble> &d_prev,
459+ std::map<const State<SL, EL> *, CDouble> &r_prev,
460+ std::map<const State<SL, EL> *, CDouble> &dw2_prev,
461+ CDouble epsilon) {
464462 const SetOfStates<SL, EL> &states = game.getStates ();
465463
466464 std::stack<const State<SL, EL> *> stack;
@@ -489,7 +487,7 @@ template <typename SL, typename EL> class PolicyIteration {
489487 auto state = dynamic_cast <const State<SL, EL> *>(&(si));
490488 if (!visited[state]) {
491489 const State<SL, EL> *u = state;
492- while (!visited[u]) { // NOLINT(*pointer-arithmetic)
490+ while (!visited[u]) { // NOLINT(*pointer-arithmetic)
493491 visited[u] = true ; // NOLINT(*pointer-arithmetic)
494492 stack.push (u);
495493 u = currentStrategy.getSuccessor (u);
@@ -509,7 +507,7 @@ template <typename SL, typename EL> class PolicyIteration {
509507 r_i_t [x] = cycleRatio; // NOLINT(*pointer-arithmetic)
510508 // Update distance to cycle.
511509 d_i_t [x] = d_i_t [u] + re_weighted; // NOLINT(*pointer-arithmetic)
512- dw2[x] = dw2[u] + w2; // NOLINT(*pointer-arithmetic)
510+ dw2[x] = dw2[u] + w2; // NOLINT(*pointer-arithmetic)
513511 u = x;
514512 }
515513 }
0 commit comments