1

我遇到了这个问题:

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?

4

1 回答 1

3

你能不能试试...

int(numpyint)
于 2010-12-08T03:53:20.290 回答