Skip main navigation

Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. T&Cs apply

Hands-on: Numexpr

Explore performance of numexpr
In this exercise we explore how to evaluate expressions efficiently with numexpr.

Source code for this exercise is located in numpy/numexpr/

Try different array expressions and investigate how much numexpr can speed them up. Try to vary also the number of threads used by numexpr. IPython and %timeit magic can be useful in testing.

© CSC - IT Center for Science Ltd.
This article is from the free online

Python in High Performance Computing

Created by
FutureLearn - Learning For Life