[Numpy-discussion] bug in numpy.apply_along_axis: numpy.__version__ '1.0.3.1'

2007-11-17 Thread Sean Ross-Ross
Hi, I think I have found a bug in the function "apply_along_axis". recall that the function definition if apply_along_axis(func1d, axis, arr, *args) This bug occurs if func1d returns a python object without a __len__ attribute and is not a scalar, determined by numpy.core.numeric.isscalar

[Numpy-discussion] Array struct

2007-10-28 Thread Sean Ross-Ross
Hi, I am looking to create an __array_struct__ member for a c++ vector> i have wrapped in python, where cppObj contains an array of floats. Currently I have created an __array_struct__ for the cppObj and in python I iterate over the vector of vectors and put all of the data into a 1-d arr