Hi all, Mark Lodato outlines how to write ufuncs in Cython at http://wiki.cython.org/MarkLodato/CreatingUfuncs This is also a great way of adding generalised ufuncs: http://projects.scipy.org/numpy/wiki/GeneralLoopingFunctions Super useful! Regards Stéfan