Skip main navigation

Hands-on: Numexpr

Explore performance of numexpr
© CSC - IT Center for Science Ltd.

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

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now