[NumPy-Tickets] [NumPy] #2073: stride_tricks with float16

NumPy Trac numpy-tickets@scipy....
Mon Mar 5 03:56:46 CST 2012

#2073: stride_tricks with float16
 Reporter:  npinto  |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  1.6.1      
 Keywords:          |  
 It looks like stride_tricks don't work with float16:

 % python bug.py
 trying with float32
 trying with float16
 Traceback (most recent call last):
   File "bug.py", line 18, in <module>
     arr_out = as_strided(arr_in, shape=new_shape, strides=new_strides)
   File "/usr/lib64/python2.6/site-packages/numpy/lib/stride_tricks.py",
 line 28, in as_strided
     return np.asarray(DummyArray(interface, base=x))
   File "/usr/lib64/python2.6/site-packages/numpy/core/numeric.py", line
 235, in asarray
     return array(a, dtype, copy=False, order=order)
 ValueError: unsupported typestring

Ticket URL: <http://projects.scipy.org/numpy/ticket/2073>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list