[NumPy-Tickets] [NumPy] #2144: .max(0) on reshaped array returns inconsistent results.
NumPy Trac
numpy-tickets@scipy....
Fri May 25 06:26:04 CDT 2012
#2144: .max(0) on reshaped array returns inconsistent results.
--------------------+-------------------------------------------------------
Reporter: thouis | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: devel
Keywords: |
--------------------+-------------------------------------------------------
The following code fails on the current master (7a254bd)
{{{
import numpy as np
b = np.array([0, 1, 2, 3, 4, 5], np.int64)
a = b.reshape(3, 2)
while True:
np.testing.assert_array_equal(np.atleast_1d(np.array(a.max(0),
np.float)),
np.atleast_1d(np.array(a.max(0),
np.float)))
}}}
This is on OSX 10.6.8, numpy compiled with gcc 4.0.1
{{{
Python 2.7 (r27:82508, Jul 3 2010, 21:12:11)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.version.version
'1.7.0.dev-7a254bd'
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2144>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list