[Numpy-discussion] Bug? numpy.matrix.sum()
Travis Oliphant
oliphant.travis at ieee.org
Fri Jan 20 08:42:04 CST 2006
Norbert Nemec wrote:
>Is it just me who finds this confusing? There is some bug there, but I
>cannot even say what it is supposed to behave like...
>
>---------------------------------
>In [1]: import numpy
>
>In [2]: numpy.__version__
>Out[2]: '0.9.2'
>
>In [3]: a = numpy.matrix(numpy.eye(2))
>
>In [4]: a.sum()
>Out[4]: matrix([[1, 0, 0, 1]])
>
>
>
Bug... Fixed in SVN.
-Travis
More information about the Numpy-discussion
mailing list