[Numpy-discussion] segmentation fault
Stéfan van der Walt
Wed May 28 12:36:26 CDT 2008
2008/5/28 Stéfan van der Walt <email@example.com>:
> 2008/5/28 Charles R Harris <firstname.lastname@example.org>:
>> It's shape related.
>> In : x = numpy.random.rand(5,2)
>> In : y = ones((5,2))
>> In : x.cumsum(None,out=y)
>> array([[ 0.76943981, 1. ],
>> [ 1.12678411, 1. ],
>> [ 1.69498328, 1. ],
>> [ 2.50560628, 1. ],
>> [ 3.23050034, 1. ]])
> Yes, that first column doesn't stop there :)
> So, would it work to use a flattened view on the array in ufuncobject.c?
Scratch that. Such a hack would just hide the underlying problem.
I'll keep quiet now
until I've parsed construct_reduce and PyArray_UFuncReduce properly.
More information about the Numpy-discussion