ó
£á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 d d d d d d d d d d d d d d d d d d  d! d" d# d$ d% d& g$ Z d d' l j j Z	 d d' l
 j j Z d d( l m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m  Z! m" Z" m# Z# m$ Z% m& Z' m( Z( m) Z) m* Z* m+ Z+ m, Z, m- Z- m. Z/ m0 Z0 m1 Z1 m2 Z2 m3 Z3 d d) l4 m5 Z5 m6 Z6 d d* l7 m8 Z8 m9 Z9 d d' l Z: d+ d, l; m< Z< d' d d' d' d- „ Z> d' d d' d' d. „ Z? d' d/ d0 „ Z d d1 „ Z d d2 „ Z d d3 „ Z@ d d4 „ ZA d d5 „ Z d d6 „ Z  d d7 „ Z. d' d d d8 „ ZB d' d9 „ ZC d+ d: lD Td+ d: lE Td+ d: lF Td+ d: lG Td+ d: lH Td+ d; lD m ZI d+ d; lE m ZJ d+ d; lF m ZK d+ d; lG m ZL d+ d; lH m ZM e d< g 7Z e eI 7Z e eK 7Z e eJ 7Z e eL 7Z e eM 7Z [I [K [J [L [M d' S(=   sN   This module is for compatibility only.  All functions are defined elsewhere.

i    (   t   divisiont   absolute_importt   print_functiont   randt   trilt   trapzt   hanningt   rot90t   triut   difft   anglet   rootst   ptpt   kaisert   randnt   cumprodt   diagt   msortt   LinearAlgebrat   RandomArrayt   prodt   stdt   hammingt   flipudt   maxt   blackmant   corrcoeft   bartlettt   eyet   squeezet   sinct   trit   covt   svdt   mint   mediant   fliplrt   eigt   meanN(   R   R   R   R   R   R	   R
   R   R   R   R   R   R   R   R   R   R   t   amaxt   aminR   R   R   R   R#   R$   R&   t	   transposet   sqrtt   multiplyt   __version__(   R%   R!   (   R   R   i   (   t   convtypecodec         C` sx   t  | | ƒ } | d k r$ |  } n  t j t j j t j |  ƒ t j | ƒ ƒ | ƒ } | j | k rt | j | ƒ Sd S(   sp    eye returns a N-by-M 2-d array where the  k-th diagonal is all ones,
        and everything else is zeros.
    N(	   R-   t   Nonet   npt   equalt   subtractt   outert   aranget   dtypet   astype(   t   Nt   Mt   kt   typecodeR4   t   m(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR      s     	4c         C` sx   t  | | ƒ } | d k r$ |  } n  t j t j j t j |  ƒ t j | ƒ ƒ | ƒ } | j | k rt | j | ƒ Sd S(   sy    returns a N-by-M array where all the diagonals starting from
        lower left corner up to the k-th are all ones.
    N(	   R-   R.   R/   t   greater_equalR1   R2   R3   R4   R5   (   R6   R7   R8   R9   R4   R:   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR   %   s     	4iÿÿÿÿc         C` s   t  |  | d | ƒS(   Nt   axis(   t   _Ntrapz(   t   yt   xR<   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR   /   s    c         C` s   t  |  | ƒ S(   N(   t   _Nptp(   R?   R<   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR   2   s    c         C` s   t  |  | ƒ S(   N(   t	   _Ncumprod(   R?   R<   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR   5   s    c         C` s   t  |  | ƒ S(   N(   t   _Nmax(   R?   R<   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR   8   s    c         C` s   t  |  | ƒ S(   N(   t   _Nmin(   R?   R<   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR"   ;   s    c         C` s   t  |  | ƒ S(   N(   t   _Nprod(   R?   R<   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR   >   s    c         C` s2   t  |  ƒ j | } t |  | ƒ t | | d ƒ S(   Ng      ð?(   t   asarrayt   shapet   _NstdR*   (   R?   R<   R6   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR   A   s    c         C` s   t  |  | ƒ S(   N(   t   _Nmean(   R?   R<   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR&   E   s    c         C` s  | d  k r |  } n | } | r< t |  ƒ }  t | ƒ } n  |  j d d k r^ t |  ƒ }  n  | j d d k r€ t | ƒ } n  |  j d } | j d | k r¯ t d ƒ ‚ n  |  t |  d d ƒ}  | t | d d ƒ} | rî | d } n
 | d } t t t |  ƒ t | ƒ ƒ | ƒ S(   Ni    i   s1   x and y must have the same number of observationsR<   g      ð?(   R.   R)   RF   t
   ValueErrorRH   R   t   dott	   conjugate(   R:   R>   t   rowvart   biasR6   t   fact(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR    I   s&    	
c         C` s5   t  |  | ƒ } t | ƒ } | t t j | | ƒ ƒ S(   N(   R    R   R*   R+   R2   (   R?   R>   t   ct   d(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR   `   s    (   t   *(   t   __all__R,   (N   t   __doc__t
   __future__R    R   R   RR   t   numpy.oldnumeric.linear_algebrat
   oldnumerict   linear_algebraR   t   numpy.oldnumeric.random_arrayt   random_arrayR   t   numpyR   R   R=   R   R   R   R	   R
   R   R   R@   R   R   RA   R   R   R   RD   R   RG   R   R   R'   RB   R(   RC   R   R   R   R   R#   R$   R&   RH   R)   R*   R+   R,   t   numpy.linalgR%   R!   t   numpy.randomR   R   R/   t   typeconvR-   R.   R   R   R   R"   R    R   t   compatt	   functionst	   precisiont   ufuncst   misct
   compat_allt   functions_allt   precision_allt
   ufuncs_allt   misc_all(    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyt   <module>   s\   ¾











