[NumPy-Tickets] [NumPy] #1523: numpy.lib.function_base.sinc doesn't properly handle non-array sequence input
NumPy Trac
numpy-tickets@scipy....
Sun Jun 27 00:13:12 CDT 2010
#1523: numpy.lib.function_base.sinc doesn't properly handle non-array sequence
input
-------------------------------------------+--------------------------------
Reporter: dgoldsmith | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.lib | Version:
Keywords: sinc non-array sequence input |
-------------------------------------------+--------------------------------
>>> np.sinc(np.array((0,0.5)))
array([ 1. , 0.63661977])
>>> np.sinc((0,0.5))
array([ NaN, 0.63661977])
>>> np.sinc([0,0.5])
array([ NaN, 0.63661977])
Simply needs an "x = np.asanyarray(x) before the rest of the code."
(Thanks RK)
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1523>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list