You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems not to be very Julian?
And this requires adding the same code of generating the tuple to many constructors.
Add a method payoff_arrays to NormalFormGame:
payoff_arrays(g::NormalFormGame{N,T}) where {N,T} =tuple([player.payoff_array for player in g.players]...)::NTuple{N,Array{T,N}}
This is what I had in mind initially, but now I want to avoid this as it will introduce a conflict with the likely usage of payoff_arrays as a variable name.
Name the above method get_payoff_arrays:
Sounds too long? And to "get" payoff arrays, one could just call g.players[i].payoff_array.
The text was updated successfully, but these errors were encountered:
What is the proper Julia counterpart of QuantEcon/QuantEcon.py#382?
Add a field
payoff_arrays
toNormalFormGame
:This seems not to be very Julian?
And this requires adding the same code of generating the tuple to many constructors.
Add a method
payoff_arrays
toNormalFormGame
:This is what I had in mind initially, but now I want to avoid this as it will introduce a conflict with the likely usage of
payoff_arrays
as a variable name.Name the above method
get_payoff_arrays
:Sounds too long? And to "get" payoff arrays, one could just call
g.players[i].payoff_array
.The text was updated successfully, but these errors were encountered: