Re: [C++-sig] Trouble converting data from numpy.array to c++

2010-05-12 Thread QUILLET Jean-Charles
Thanks Andreas, I've found out my solution in pyrap source code (pyrap.googlecode.com). I post it here as it can be usefull for others: #include int type = PyArray_TYPE(anArray.ptr()); for (unsigned i = 0; i < 3; ++ i) { void * buffer = PyArray_GETPTR1(anArray.ptr(), i); doubl

Re: [C++-sig] When not to use static boost python library

2010-05-12 Thread Nat Goodspeed
Mr Kun Hong wrote: The lines in the documentation is: ''' It might be appropriate to use the static Boost.Python library in any of the following cases: * You are extending python and the types exposed in your dynamically-loaded extension module don't need to be used by any other Boost.