[C++-sig] Re: Creating an array in C++

Philip Austin paustin at eos.ubc.ca
Wed Feb 25 21:06:41 CET 2004


David Abrahams writes:
 > 
 > Excuse me?  Alpha?!
 > 
 > It may be missing a couple of features, but it's hardly alpha
 > software.

Sorry, that was a careless choice of words.  We use numeric::array
daily without a hitch, but like Marc-Alexis I'm not sure how to create
an empty array of arbitray shape and type using the boost python
array constructor.

> What python argument value do you expect to be passed to the python
> object's __init__ function?

Our most common requirement is to be able to do something like

theArray=numarray.array(shape=(300,),type=numarray.UInt8)

from the C++ side, and then fill it with values returned
from C or Fortran.

Regards, Phil












More information about the Cplusplus-sig mailing list