How to nest numba jitclass
问题 I'm trying to understand how the @jitclass decorator works with nested classes. I have written two dummy classes: fifi and toto fifi has a toto attribute. Both classes have the @jitclass decorator but compilation fails. Here's the code: fifi.py from numba import jitclass, float64 from toto import toto spec = [('a',float64),('b',float64),('c',toto)] @jitclass(spec) class fifi(object): def __init__(self, combis): self.a = combis self.b = 2 self.c = toto(combis) def mySqrt(self,x): s = x for i