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

NumPy Trac numpy-tickets@scipy....
Tue Mar 13 20:08:51 CDT 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:          |  

Comment(by mwiebe):

 It should be fine to call the public-facing one which is documented here:


 This is probably pretty close to what it should look like (I haven't tried
 to compile or run this):

     PyArray_Descr *dtype = NULL;
     PyObject *stringobj = PyString_FromString(c_str)
     if (stringobj == NULL) {
         return NULL;
     if (PyArray_DescrConverter(stringobj, &dtype) != NPY_SUCCEED)
         return NULL;
     return dtype;

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

More information about the NumPy-Tickets mailing list