开发者

boost.python argument type mismatch (numpy.int64 -> int)

开发者 https://www.devze.com 2023-01-29 04:06 出处:网络
I\'m running into this problem: Boost.Python.ArgumentError: Python argument types in Dirichlet.Observe(int, numpy.int64, float)

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?


You could you try...

int(numpyint)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号