I am trying work out how to use cython to speed up a calculation involving integration that is done within a class I have defined. I\'m trying to understand better how cytho
From hpaulj's help above: the answer is the _integrand method needs to be declared cpdef not cdef
_integrand
cpdef
cdef
cpdef double _integrand(self, double x): """Cython: integrand inside the class""" cdef double f = log(x) / sqrt(x) return f