开发者

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


You could you try...

int(numpyint)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜