The Finesse Cython extensions

For performance reasons, all of the code which involves factoring and solving the interferometer matrix, and much of the code associated with the mathematically intensive tasks, must be written in the form of Cython extensions in order to leverage the speed of the produced C code.

If you are new to Cython, or need a refresher on some key language concepts, then see Useful resources for details from the developers.

Useful resources

The Cython documentation

for the latest documentation pages.

Cython for NumPy users

on the use of Cython with NumPy.

Musings on Cython

for details on the ways of declaring functions in Cython, with profiling for real numerical problems.

Managing exceptions

a note on raising exceptions from cdef functions.