boost.python 参数类型不匹配(numpy.int64 -> int)
我遇到了这个问题:
Boost.Python.ArgumentError: Python argument types in
Dirichlet.Observe(int, numpy.int64, float)
did not match C++ signature:
Observe(unsigned int, unsigned int, double)
看起来足够接近吗?
做了一些替换后,看来中间的参数是问题所在。如何将 numpy.int64 转换为 int?
I'm running into this problem:
Boost.Python.ArgumentError: Python argument types in
Dirichlet.Observe(int, numpy.int64, float)
did not match C++ signature:
Observe(unsigned int, unsigned int, double)
Seems close enough?
After doing some replacement, it seems that the middle argument is the problem. How do I convert numpy.int64 to int?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以试试...
You could you try...