ó
£áSc           @` s.  d  Z  d d l m Z m Z m Z d d d d d d d	 d
 d d d d g Z d d l m Z d d l Z i d d 6d d 6d d 6d d 6d d 6Z	 d „  Z
 i  d „ Z e e	 ƒ Z d e f d „  ƒ  YZ d „  Z d Z y/ e e d d ƒ Z e Z e j d d g ƒ Wn e k
 rn Xy/ e e d d ƒ Z e Z e j d  d! g ƒ Wn e k
 r\n Xy/ e e d d" ƒ Z e Z e j d# d$ g ƒ Wn e k
 rŸn Xy/ e e d d% ƒ Z e Z e j d& d' g ƒ Wn e k
 rân Xy/ e e d d( ƒ Z e Z e j d) d* g ƒ Wn e k
 r%n Xd+ Z Z Z y# e e d d ƒ Z e j  d, ƒ Wn e k
 rjn Xy# e e d d ƒ Z! e j  d- ƒ Wn e k
 r¡n Xy# e e d d ƒ Z" e j  d. ƒ Wn e k
 rØn Xy# e e d d" ƒ Z# e j  d/ ƒ Wn e k
 rn Xy# e e d d% ƒ Z$ e j  d0 ƒ Wn e k
 rFn Xy# e e d d( ƒ Z% e j  d1 ƒ Wn e k
 r}n Xd2 Z& y# e e d d ƒ Z' e j  d3 ƒ Wn e k
 rºn Xy# e e d d ƒ Z( e j  d4 ƒ Wn e k
 rñn Xy# e e d d ƒ Z) e j  d5 ƒ Wn e k
 r(n Xy# e e d d" ƒ Z* e j  d6 ƒ Wn e k
 r_n Xy# e e d d% ƒ Z+ e j  d7 ƒ Wn e k
 r–n Xy# e e d d( ƒ Z, e j  d8 ƒ Wn e k
 rÍn Xd9 Z- y# e e d d ƒ Z. e j  d: ƒ Wn e k
 r
n Xy# e e d d ƒ Z/ e j  d; ƒ Wn e k
 rAn Xy# e e d d" ƒ Z0 e j  d< ƒ Wn e k
 rxn Xy# e e d d% ƒ Z1 e j  d= ƒ Wn e k
 r¯n Xy# e e d d( ƒ Z2 e j  d> ƒ Wn e k
 ræn Xy# e e d d? ƒ Z3 e j  d@ ƒ Wn e k
 rn XdA Z4 dB Z5 d S(C   sž   

Lifted from Precision.py.  This is for compatibility only.

The character strings are still for "new" NumPy
which is the only Incompatibility with Numeric

i    (   t   divisiont   absolute_importt   print_functiont	   Charactert   Complext   Floatt   PrecisionErrort   PyObjectt   Intt   UIntt   UnsignedIntt   UnsignedIntegert   stringt	   typecodest   zerosi   (   R   Nt   ct   bhilt   Integert   BHILt   fdt   FDc         C` s>   g  } x1 |  D]) } | j  t d | ƒ j d | f ƒ q W| S(   Ni   i   (   i   (   t   appendR   t   itemsize(   R   t   lstt   t(    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/precision.pyt   _get_precisions   s    'c         C` s1   x* |  j  ƒ  D] \ } } t | ƒ | | <q W| S(   N(   t   itemsR   (   R   t   tablet   keyt   value(    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/precision.pyt   _fill_table   s    c           B` s   e  Z RS(    (   t   __name__t
   __module__(    (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/precision.pyR   !   s   c         C` sS   |  | } x$ | D] \ } } | | k r | Sq Wt  | d t | ƒ d ƒ ‚ d  S(   Ns    of s"    bits not available on this system(   R   t   str(   R   R   t   required_bitsR   t   bitst   typecode(    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/precision.pyt   _lookup$   s    
i   t   UnsignedInt8t   UInt8i   t   UnsignedInt16t   UInt16i    t   UnsignedInt32t   UInt32i@   t   UnsignedInt64t   UInt64i€   t   UnsignedInt128t   UInt128t   ut   Int0t   Int8t   Int16t   Int32t   Int64t   Int128t   lt   Float0t   Float8t   Float16t   Float32t   Float64t   Float128t   dt   Complex0t   Complex8t	   Complex16t	   Complex32t	   Complex64i   t
   Complex128t   Dt   O(6   t   __doc__t
   __future__R    R   R   t   __all__t	   functionsR   R   R   R   R   t   _code_tablet	   ExceptionR   R%   R   R&   R'   t   extendR(   R)   R*   R+   R,   R-   R.   R/   R	   R
   R   R1   R   R2   R3   R4   R5   R6   R   R8   R9   R:   R;   R<   R=   R   R?   R@   RA   RB   RC   RD   R   R   (    (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/precision.pyt   <module>   s  	)		