[Numpy-discussion] reshape and ravel methods of arrays now return views or raise error

Travis Oliphant oliphant.travis at ieee.org
Wed Mar 29 10:12:11 EST 2006


Charles R Harris wrote:
>
>
> On 3/28/06, *Travis Oliphant* <oliphant.travis at ieee.org 
> <mailto:oliphant.travis at ieee.org>> wrote:
>
>
>     rand(10,3).transpose().sum()
>
>
> Shouldn't sum be fixed instead? I admit that a quick look at the code 
> leaves me no more enlightened. It is going to take more than a little 
> time to figure out how numpy is put together.
>
FWIW:  I also fixed the _check_axis code (it was ignoring errors and 
shouldn't have been).

-Travis






More information about the NumPy-Discussion mailing list