Working with data structures

Working with data structures#

Task-oriented recipes for picking and using brainevent’s event and sparse data structures. Each guide assumes you already know the basics from the Data tutorials or Events tutorials and want to accomplish one concrete thing.

Start with the recipe that matches the decision or task in front of you. The format selection guide helps you compare representations before committing to a storage layout. The large network guide focuses on generating connectivity just in time, which is useful when explicit connection storage becomes a concern. The plasticity guide addresses synaptic updates, while the unit-aware computation guide explains how to work with physical quantities. Read the assumptions and input shapes in each recipe before adapting its examples to your own model. A representation that suits one connectivity pattern may require a different approach for another, so consider the operations you need as well as the size of the network. Return to the tutorials whenever you need a fuller introduction to the underlying data structures or event representations.

Explore this section#

Choose a sparse format

Compare connectivity representations for your model and operations.

Choose a connectivity format
Scale connectivity

Use just-in-time connectivity in larger networks.

Use JIT connectivity for large networks
Update synapses

Apply synaptic plasticity with event and sparse structures.

Apply event-driven synaptic plasticity
Work with units

Use physical quantities in event-driven computations.

Compute with physical units