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

2010-05-12 Thread QUILLET Jean-Charles
-Charles -Message d'origine- De : Andreas Kloeckner [mailto:li...@informa.tiker.net] Envoyé : mardi 11 mai 2010 17:46 À : QUILLET Jean-Charles; 'cplusplus-sig@python.org' Objet : Re: [C++-sig] Trouble converting data from numpy.array to c++ Hi Jean-Charles, On Tue, 11 May 2010

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

2010-05-11 Thread QUILLET Jean-Charles
n Diepen [mailto:die...@astron.nl] Envoyé : mardi 11 mai 2010 12:25 À : QUILLET Jean-Charles; cplusplus-sig@python.org Objet : [Spam Probable] Re: [C++-sig] Trouble converting data from numpy.array to c++ Hi Jean-Charles, AFAIK there are no standard converters for the numpy scalar types to C++ types. I

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

2010-05-11 Thread QUILLET Jean-Charles
Hi, I've got this problem I cannot solve. I've a c++ application from which I create an array sending to python this string: anArray = numpy.array((1, 2, 3)) After extracting the symbol "anArray" from the directory in a boost::python::object, I'm trying to extract the values in C++: int val =