[Numpy-tickets] [NumPy] #950: multiply empty arrays gives nonzero result
NumPy
numpy-tickets@scipy....
Wed Nov 5 17:10:15 CST 2008
#950: multiply empty arrays gives nonzero result
------------------------+---------------------------------------------------
Reporter: pierre | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.3.0
Component: numpy.core | Version: none
Severity: normal | Keywords:
------------------------+---------------------------------------------------
Hi,
I found this bug on mac os 10.5, with power pc and also on an intel
computer (but not on a 64bit linux). I used numpy 1.1.1, 1.2, and the
latest svn.
In [6]: np.dot(np.array([]).reshape(1,0), np.array([]).reshape(0,1))
Out[6]: array([[ 4.00002862]])
In [7]: np.dot(np.array([]).reshape(2,0), np.array([]).reshape(0,3))
Out[7]:
array([[ 0., 0., 0.],
[ 0., 0., 0.]])
Thanks!
Pierre
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/950>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list