[NumPy-Tickets] [NumPy] #1804: numpy.apply_along_axis returns strange dimensionless array
NumPy Trac
numpy-tickets@scipy....
Wed Apr 20 07:10:50 CDT 2011
#1804: numpy.apply_along_axis returns strange dimensionless array
-------------------------------+--------------------------------------------
Reporter: Mark@… | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: 1.5.1
Keywords: |
-------------------------------+--------------------------------------------
In [18]:
x=numpy.apply_along_axis(numpy.sum, 0, numpy.ones((1,)));
print x.shape, type(x), x, x==1
In [19]:
In [20]: () <type 'numpy.ndarray'> 1.0 True
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1804>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list