Skip to content

Commit

Permalink
Fix format and tidy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tturocy committed May 23, 2024
1 parent 09715ab commit 2faef51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/solvers/logit/logbehav.imp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ T LogBehavProfile<T>::DiffNodeValue(const GameNode &p_node, const GamePlayer &p_
else {
T deriv = T(0);
for (auto action : infoset->GetActions()) {
deriv += (DiffNodeValue(p_node->GetChild(action), p_player, p_oppAction) *
GetActionProb(action));
deriv +=
(DiffNodeValue(p_node->GetChild(action), p_player, p_oppAction) * GetActionProb(action));
}
return deriv;
}
Expand Down Expand Up @@ -208,8 +208,9 @@ template <class T> void LogBehavProfile<T>::ComputeSolutionDataPass2(const GameN

template <class T> void LogBehavProfile<T>::ComputeSolutionDataPass1(const GameNode &node) const
{
m_logRealizProbs[node] =
(node->GetParent()) ? m_logRealizProbs[node->GetParent()] + GetLogActionProb(node->GetPriorAction()) : T(0);
m_logRealizProbs[node] = (node->GetParent()) ? m_logRealizProbs[node->GetParent()] +
GetLogActionProb(node->GetPriorAction())
: T(0);
for (auto child : node->GetChildren()) {
ComputeSolutionDataPass1(child);
}
Expand Down
2 changes: 2 additions & 0 deletions src/solvers/logit/logit.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#ifndef SOLVERS_LOGIT_H
#define SOLVERS_LOGIT_H

#include <functional>

namespace Gambit {

template <class T> class LogitQRE {
Expand Down

0 comments on commit 2faef51

Please sign in to comment.