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 integration Array type Number of images simulated in one second
False Python 331
False Numpy 125
True Numpy 1120

Aims of this session

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