繁体   English   中英

boost.python参数类型不匹配(numpy.int64-> int)

[英]boost.python argument type mismatch (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?

你可以尝试...

int(numpyint)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM