![]() | Implement the computational loop in a traditional C function |
![]() | Aim: pretend that we have this loop already in a C library |
![]() | Need to write a wrapper between this C function and Python |
![]() | Could think of SWIG for generating the wrapper, but SWIG with NumPy arrays is a bit tricky - it is in fact simpler to write the wrapper by hand |