Numpy integration

Written by: Franck Vidal
Published on:

Open In Colab Open on GitHub

Summary

This notebook shows how to speed up the simulation by avoiding memory copies when the simulated data must be accessed in Python. The table below shows runtimes for the different function calls on my current system.

Python integrationArray typeNumber of images simulated in one second
FalsePython331
FalseNumpy125
TrueNumpy1120

Aims of this session

  1. Revisit the example from last time;
  2. Estimate the speed up factor when the Numpy integration is used.