[Numpy-discussion] numarray C api examples

Todd Miller jmiller at stsci.edu
Mon Mar 29 08:44:59 CST 2004


On Mon, 2004-03-29 at 11:25, Craig Rasmussen wrote:
> On Mar 27, 2004, at 2:49 PM, Todd Miller wrote:
> 
> > To install the examples, just install numarray.  The examples are then
> > found in the package numarray.examples.convolve.  If you want to write
> > your own extension,  my advice is to stick with the numpy compatible
> > interfaces.  A close second is the numarray "high level" interface.
> 
> Does numarray have the equivalent of PyArray_FromDimsAndData()?

numarray's Numeric compatibility layer has that function.  Because
numarray uses buffer objects, numarray winds up making a copy of the
data.  This behavior could be changed but hasn't been yet.  

Regards,
Todd

-- 
Todd Miller <jmiller at stsci.edu>





More information about the Numpy-discussion mailing list