Since there is no documentation about memory management in numba docs, I had to ask: Is there any way in numba to emulate C like structs without using @jitclass or TypedDicts? Class is highly experimental and dicts are slow by nature.
I know that you can emulate C like structures with np.dtypes like this:
struct_dtype = np.dtype([('row', np.float64), ('col', np.float64)]) ty = nb.from_dtype(struct_dtype) ty_inst = np.arange(1, dtype=struct_dtype) t['row']
Is there any way to instantiate/allcate new structs with type ‘ty’ besides np.arange?
Also, I want to be able to access it with dot notation, like this: ty_inst.row