Thousands of lines of hand-written CUDA C++, now Python. Less code, and it runs faster.
A single collision event in a particle detector holds a variable number of particles, each with a variable number of measurements:
[[1.1, 2.2, 3.3], [], [4.4, 5.5]]
Awkward Array is a Python library for manipulating nested, variable-length (“ragged”) data like this with NumPy-like idioms. It stores that data flat, as one content buffer holding every value contiguously plus an offsets array marking where each sublist begins and ends:
Read more...