I am using the stable version of Numba 0.30.1.
I can do it:
import numba as nb @nb.jit("void(f8[:])",nopython=True) def complicated(x): for a in x: b = a**2.+a**3.
as a test case, and the acceleration is huge. But I donβt know how to proceed if I need to speed up a function inside a class.
import numba as nb def myClass(object): def __init__(self): self.k = 1
What type of numba do I use for the self object? I need to have this function inside the class, since it needs to access the member variable.
source share