[Numpy-tickets] [NumPy] #420: Add numpy.floatc for C float type

NumPy numpy-tickets at scipy.net
Thu Jan 11 13:58:23 CST 2007

#420: Add numpy.floatc for C float type
 Reporter:  goddard      |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  normal       |   Milestone:          
Component:  Other        |     Version:          
 Severity:  normal       |    Keywords:          
 I'd like numpy.floatc added as a synonym for the existing numpy.single.
 This type represents the native C floating point type for the machine.
 The name "single" reduces code readability as it is not even clear that it
 is a data type.  The proposed name floatc parallels the existing
 numpy.intc which is the C int type.

 C or C++ code modules that operate on numpy arrays often require C float
 arrays. So when working with these modules it is often required to create
 numpy arrays of type floatc in Python.  Currently we use "from numpy
 import single as floatc" and then use this "floatc" name in creating the
 arrays in Python.  Direct use of the name "single" makes the code far less

Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/420>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list