问题
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?
回答1:
You could you try...
int(numpyint)
来源:https://stackoverflow.com/questions/4383515/boost-python-argument-type-mismatch-numpy-int64-int