3 Oct 15:14
choose() broadcasting, and Trac
From: Roman Bertle <bertle <at> smoerz.org>
Subject: choose() broadcasting, and Trac
Newsgroups: gmane.comp.python.numeric.general
Date: 2008-10-03 13:14:02 GMT
Subject: choose() broadcasting, and Trac
Newsgroups: gmane.comp.python.numeric.general
Date: 2008-10-03 13:14:02 GMT
Hello, I have found something I call a bug in the numpy choose() method and wanted to report it in trac. http://scipy.org/BugReport states that "SciPy and NumPy Developer Pages use the same login/password". However, I (username "smoerz") can log in with my Scipy account at the Scipy Developer Page (http://projects.scipy.org/scipy/scipy/), but not at the Numpy Developer Page (http://projects.scipy.org/scipy/numpy/). Whatever, porting some code from numarray to numpy, I found a regression in the broadcasting of choose(): import numarray, numpy numarray.choose([[0,0,1], [0,0,1]], ([2,2,2], [3,3,3])) array([[2, 2, 3], [2, 2, 3]]) numarray.choose([0,0,1], ([[2,2,2],[2,2,2]], [[3,3,3],[3,3,3]])) array([[2, 2, 3], [2, 2, 3]]) numarray.choose([0,0,1], ([2,2,2], [[3,3,3],[3,3,3]])) array([[2, 2, 3], [2, 2, 3]]) Of these 3 cases, only the first one works for numpy, for the other ones I get:(Continue reading)
RSS Feed