Numba 列表和 NamedTuple 签名

问题描述

过了一会儿,我终于想通了用 numba.typeof() 找出我输入的类型,看看是否可行。好消息是我的意见是可能的!!但我想知道如何创建正确的签名?

Numba 类型:

reflected list(reflected list(GridPoint(int32,int32,float64,int32))<iv=None>)<iv=None>

我对签名的尝试:

@njit(types.List(types.List(types.NamedTuple([int32,int32],GridPoint),reflected=True)(int32,int32[:,:,:]),reflected=True),cache = True,parallel = True)

任何帮助将不胜感激!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)