egttools.utils¶
This python module contains some utility functions to find saddle points and plot gradients in 2 player, 2 strategy games.
Functions
Calculates the number of unique combinations given the required number of elements of each group, which should be given in List format in the slots_per_bin parameter. |
|
Calculates stationary distribution from a transition matrix of Markov chain. |
|
Calculates stationary distribution from a transition matrix of Markov chain which is not hermitian. |
|
Outputs a generator that will generate an ordered list with the possible combinations of values with length. |
|
Compute eigenvalues from an ordinary or generalized eigenvalue problem. |
|
Finds whether a saddle point is stable or not. |
|
Returns a function which gives the payoff of strategy i against strategy j. |
|
Compute Schur decomposition of a matrix. |
|
This function transform a payoff matrix in full format to a pairwise format. |
|
Issue a warning, or maybe ignore it or raise an exception. |
Classes
Abstract class which must be implemented by any new game. |
|
Compressed Sparse Column matrix |
|
Compressed Sparse Row matrix |