egttools.helpers.vectorized

Set of vectorized functions that can be used to apply these functions on large tensors.

Functions

barycentric_to_xy_coordinates

Transforms barycentric into cartesian coordinates.

cpp_vectorized_replicator_equation_n_player

Vectorized computation of replicator dynamics for 3-strategy N-player games.

replicator_equation_n_player

Computes the replicator dynamics gradient for N-player games.

vectorized_barycentric_to_xy_coordinates

Transform a tensor of barycentric coordinates to cartesian coordinates.

vectorized_replicator_equation

This function provides an easy way to calculate a matrix of gradients in a simplex in one go.

vectorized_replicator_equation_n_player

This function provides an easy way to calculate a matrix of gradients in a simplex in one go.