multidimensional arrays from python to C

Kragen Sitaker kragen at pobox.com
Wed May 29 14:50:45 EDT 2002


"Terry Reedy" <tjreedy at udel.edu> writes:
> "Chris Fonnesbeck" <spam at fisher.forestry.uga.edu> wrote in message
> news:c3835e5f.0205290827.2e7ede69 at posting.google.com...
> > parray = (PyArrayObject *)(PyEval_CallObject(pmeth,pargs));
> >
> > How do I get these values into Fall?
> 
> In C terms, the Python array is an array of arrays of ... arrays of
> pointers to PyObjects containing float (double) values.  So you would
> have to copy.  Perhaps Numerical Python would be of assistance to you.

No, you're wrong.  He's using Numerical Python already; that's why he
has a PyArrayObject.




More information about the Python-list mailing list