arrays#

Define array-handling classes, including agent states

Classes

BaseArr

An object that acts exactly like a NumPy array, except stores the values in self.values.

Arr

Store a state of the agents (e.g. age, infection status, etc.) as an array.

FloatArr

Subclass of Arr with defaults for floats and ints.

BoolArr

Subclass of Arr with defaults for booleans

State

A boolean array being used as a state.

IndexArr

A special class of Arr used for UIDs and RNG IDs; not to be used as an integer array (for that, use FloatArr)

uids

Class to specify that integers should be interpreted as UIDs.