[Numpy-discussion] NumPy types --> Numeric typecodes map?

Francesc Altet faltet at carabos.com
Mon Sep 25 12:47:38 EDT 2006


Hi,

Anybody know if there is a map between NumPy types and Numeric
typecodes? Something like 'typecodes' for numarray:

>>> numarray.typecode
{'UInt64': 'U', 'Int32': 'i', 'Int16': 's', 'Float64': 'd', 'Object':
'O', 'UInt8': 'b', 'UInt32': 'u', 'Complex64': 'D', 'UInt16': 'w',
'Bool': 'B', 'Complex32': 'F', 'Int64': 'N', 'Int8': '1', 'Float32':
'f'}

Thanks,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"






More information about the NumPy-Discussion mailing list