How do I use numba on a member function of a class? : <p>I'm using the stable version of Numba 0.30.1.</p>

<p>I can do this:</p>

<pre><code>import numba as nb
@nb.jit("void(f8[:])",nopython=True)                             
def complicated(x):                                  
    for a in x:
        b = a**2.+a**3.
</code></pre>

<p>as a test case, and the speedup is enormous. But I don't know how to proceed if I need to speed up a function inside a class. </p>

<pre><code>import numba as nb
def myClass(object):
    def __init__(self):
        self.k = 1
    #@nb.jit(???,nopython=True)                             
    def complicated(self,x):                                  
        for a in x:
            b = a**2.+a**3.+self.k
</code></pre>

<p>What numba type do I use for the <code>self</code> object? I need to have this function inside a class since it needs to access a member variable.</p>
