[C++-sig] Numeric--factory function

Philip Austin paustin at eos.ubc.ca
Wed Aug 4 19:40:14 CEST 2004

Li Dongfeng writes:
 > Hi,
 >    I'm trying boost python with the python numarray module.
 > The objective is to do something in C++ arrays and be able to
 > transmit input and output with python using numarray.array.
 > I tried to compile the test files numpy.cpp in the python
 > test directory, mostly it goes well, but I
 > found that the ``factory'' function call
 > cause errors when testing from python.
 > Here are the error messages:
 >     >>> exercise_numarray(x, p)
 >     Traceback (most recent call last):
 >       File "<stdin>", line 1, in ?
 >     AttributeError: 'NumArray' object has no attribute 'array'

The signatures for the numarray array constructor, diagonal, trace and
a few other functions have changed in recent numarray versions -- I'm
working on a patch for this, hopefully by the end of the week 

-- Phil

More information about the Cplusplus-sig mailing list