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

2010-05-18 Thread Paul F. Kunz
> On Tue, 11 May 2010 12:24:42 +0200, "Ger van Diepen" > said: > AFAIK there are no standard converters for the numpy scalar types to > C++ types. In pyrap it is solved by having explicit converters for > numpy scalar types to C++ types (see pyrap.googlecode.com). > Cheers, Ger Cou

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

2010-05-17 Thread Ger van Diepen
he array ? Thanks in advance, Jean-Charles De : Ger van 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

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 Andreas Kloeckner
Hi Jean-Charles, On Tue, 11 May 2010 11:32:08 +0200, QUILLET Jean-Charles wrote: > 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

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

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

2010-05-11 Thread Ger van Diepen
Hi Jean-Charles, AFAIK there are no standard converters for the numpy scalar types to C++ types. In pyrap it is solved by having explicit converters for numpy scalar types to C++ types (see pyrap.googlecode.com). Cheers, Ger >>> QUILLET Jean-Charles 05/11/10 11:38 AM >>> Hi, I've got this pro

[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 =