[问题] numba jit的问题

楼主: sooge (老衲)   2019-11-21 20:15:07
我知道可以用vectorize而不要用for循环算矩阵
但我还是想学会用jit让循环加速的方法
@jit的问题卡了好久一直没办法解决
希望有人可以帮忙
http://i.imgur.com/sTaubOy.jpg
http://i.imgur.com/UP3YSVR.jpg
http://i.imgur.com/UTq3MZN.jpg
如果拔掉jit的话可以正常执行
感觉问题就是出在这行
Invalid use of Function(<built-in function setitem>) with argument(s) of type(s)
贴到google上面还是找不到答案
不知道我的p、theta、lamda的type是有出了什么问题
求解
作者: TuCH (谬客)   2019-11-22 02:43:00
看起来好像是不吃numpy的格式?他写了支援INT 跟 float
楼主: sooge (老衲)   2019-11-22 18:00:00
解决了 谢谢回答:)

Links booklink

Contact Us: admin [ a t ] ucptt.com