Skip to content

Commit

Permalink
Flatten Cython includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tturocy committed Sep 4, 2023
1 parent 3c555e6 commit 1968f42
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions src/pygambit/gambit.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -474,3 +474,8 @@ cdef extern from "tools/logit/nfglogit.h":
c_MixedStrategyProfileDouble,
double, double, double) except +RuntimeError

cdef extern from "nash.h":
c_LogitQREMixedStrategyProfile *_logit_estimate "logit_estimate"(c_MixedStrategyProfileDouble *)
c_LogitQREMixedStrategyProfile *_logit_atlambda "logit_atlambda"(c_Game, double)
c_List[c_LogitQREMixedStrategyProfile] _logit_principal_branch "logit_principal_branch"(c_Game, double)

22 changes: 11 additions & 11 deletions src/pygambit/gambit.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ class Collection:
# Includes
######################

include "core/action.pxi"
include "core/infoset.pxi"
include "core/strategy.pxi"
include "core/player.pxi"
include "core/outcome.pxi"
include "core/node.pxi"
include "core/stratspt.pxi"
include "core/mixed.pxi"
include "core/behav.pxi"
include "core/game.pxi"
include "core/nash.pxi"
include "action.pxi"
include "infoset.pxi"
include "strategy.pxi"
include "player.pxi"
include "outcome.pxi"
include "node.pxi"
include "stratspt.pxi"
include "mixed.pxi"
include "behav.pxi"
include "game.pxi"
include "nash.pxi"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions src/pygambit/core/nash.pxi → src/pygambit/nash.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,6 @@ cdef class GNMStrategySolver:
return ret


cdef extern from "nash.h":
c_LogitQREMixedStrategyProfile *_logit_estimate "logit_estimate"(c_MixedStrategyProfileDouble *)
c_LogitQREMixedStrategyProfile *_logit_atlambda "logit_atlambda"(c_Game, double)
c_List[c_LogitQREMixedStrategyProfile] _logit_principal_branch "logit_principal_branch"(c_Game, double)


cdef class LogitQREMixedStrategyProfile:
cdef c_LogitQREMixedStrategyProfile *thisptr
def __init__(self, game=None):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1968f42

Please sign in to comment.