나는이 문제로 실행 해요 :boost.python 인수 형식이 일치 (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로 변환하려면 어떻게해야합니까?
Int64를 부호없는 INT 어디에도 없습니다. int를 1 바이트에 팩하는 것과 같습니다. –
@anon, 확실히, 잘라낼 수 있습니다. –