egttools.numerical.numerical_¶
The numerical module contains optimized functions and classes to simulate evolutionary dynamics in large populations. This module is written in C++.
Functions
Calculate the expected group success eta_G under the stationary distribution. |
|
Calculate E[f] = sum_s sd(s) * sum_g P(g|s) * f(g) for an arbitrary indicator f. |
|
Calculate E[f_k] for multiple indicator functions in a single pass. |
|
Compute expected indicators from a precomputed indicator matrix (pure C++, GIL released). |
|
Calculate the expected payoff averaged over the stationary distribution. |
|
Calculate E[f] = sum_s sd(s) * f(s) for a single state-level indicator. |
|
Calculate E[f_k] = sum_s sd(s) * f_k(s) for multiple state-level indicators in one pass. |
|
Fast path: E[f_k] = sum_s sd(s) * indicator_values(s, k) using a precomputed matrix. |
|
Compute E[f | state] = sum_g P(g | state) * f(g) for a single population state. |
|
Compute the fitness of a focal player (not included in |
|
Calculate the number of possible states in a discrete simplex. |
|
Convert a discrete population configuration into a unique index. |
|
Calculate the average frequency of each strategy given a stationary distribution. |
|
Check if EGTtools was compiled with ARPACK eigensolver support. |
|
Check if EGTtools was compiled with BLAS/LAPACK acceleration. |
|
Check if EGTtools was compiled with Boost support. |
|
Check if EGTtools was compiled with OpenMP support. |
|
Check if EGTtools was compiled with PETSc/SLEPc MPI eigensolver support. |
|
Build a state-level indicator matrix from group-level callables. |
|
Compute the replicator dynamics gradient for a two-player matrix game. |
|
Compute the replicator dynamics gradient for an N-player game defined by a payoff table. |
|
Convert a state index into a group composition vector. |
|
Sample a discrete population state uniformly at random from the simplex. |
|
Sample a point uniformly at random from the unit simplex. |
|
Vectorized computation of the replicator dynamics for three-strategy two-player games. |
|
Vectorized computation of the replicator dynamics for three-strategy N-player games. |
Classes
Evolver for a general population structure. |
|
Multi-level selection following Garcia & van den Bergh (2011). |
|
Multi-level selection following Traulsen & Nowak (2006). |
|
Analytical pairwise-comparison process for finite populations. |
|
Numerical solver for evolutionary dynamics under the pairwise comparison rule. |
|
Matrix-free transition operator for the pairwise comparison process. |