Skip main navigation

Hands-on: Using C-functions in the heat equation

In this exercise we continue optimising heat equation solver by utilising C-functions.
In this exercise we utilize C-functions in the heat equation solver.

Continue with the code located under cython/heat-equation.

Reduce the function call overheads by defining proper functions as C-functions. Investigate the effect on performance. You can use applications own timers and/or timeit.

Are some functions more critical to performance than others?

© CC-BY-NC-SA 4.0 by CSC - IT Center for Science
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