ó
£áSc           @` s[  d  Z  d d l m Z m Z m Z d d l Z d d l j j	 Z
 d d l j j Z d d l 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" g Z d d# „ Z d d$ „ Z d d% „ Z d d& „ Z d d' „ Z d d( „ Z d d) „ Z d d* „ Z d+ d, „ Z d+ d- „ Z d+ d. „ Z d/ „  Z d0 d d d1 „ Z d0 d d d2 „ Z  d0 d d3 „ Z! d0 d d4 „ Z" d d d d d5 „ Z# d e$ d d6 „ Z% d d d7 „ Z& d8 „  Z' d9 „  Z( d d d d d: „ Z) d0 d+ d d; „ Z* d< „  Z+ d d d d= „ Z, d d d> „ Z- d? „  Z. d+ d+ d@ „ Z/ d d e$ dA „ Z0 d S(B   sD   Functions that should behave the same as Numeric and need changing

i    (   t   divisiont   absolute_importt   print_functionNi   (   t   convtypecodet   convtypecode2t   taket   repeatt   sumt   productt   sometruet   alltruet   cumsumt
   cumproductt   compresst   fromfunctiont   onest   emptyt   identityt   zerost   arrayt   asarrayt   nonzerot   reshapet   aranget
   fromstringt   ravelt   tracet   indicest   wheret   sarrayt   cross_productt   argmaxt   argmint   averagec         C` s   t  j |  | | ƒ S(   N(   t   npR   (   t   at   indiciest   axis(    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR      s    c         C` s   t  j |  | | ƒ S(   N(   R"   R   (   R#   t   repeatsR%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR      s    c         C` s   t  j |  | ƒ S(   N(   R"   R   (   t   xR%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR      s    c         C` s   t  j |  | ƒ S(   N(   R"   R   (   R'   R%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR      s    c         C` s   t  j |  | ƒ S(   N(   R"   R	   (   R'   R%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR	      s    c         C` s   t  j |  | ƒ S(   N(   R"   R
   (   R'   R%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR
   !   s    c         C` s   t  j |  | ƒ S(   N(   R"   R   (   R'   R%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   $   s    c         C` s   t  j |  | ƒ S(   N(   R"   R   (   R'   R%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   '   s    iÿÿÿÿc         C` s   t  j |  | ƒ S(   N(   R"   R   (   R'   R%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   *   s    c         C` s   t  j |  | ƒ S(   N(   R"   R    (   R'   R%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR    -   s    c         C` s   t  j |  | | ƒ S(   N(   R"   R   (   t	   conditiont   mR%   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   0   s    c         C` s   t  j |  | d t ƒS(   Nt   dtype(   R"   R   t   int(   t   argst
   dimensions(    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   3   s    t   lc         C` s2   t  | | ƒ } t j |  | ƒ } | j d ƒ | S(   sj   ones(shape, dtype=int) returns an array of the given
    dimensions which is initialized to all ones.
    i   (   R   t   muR   t   fill(   t   shapet   typecodet	   savespaceR*   R#   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   6   s    c         C` s   t  | | ƒ } t j |  | ƒ S(   sk   zeros(shape, dtype=int) returns an array of the given
    dimensions which is initialized to all zeros
    (   R   R/   R   (   R1   R2   R3   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   ?   s    c         C` s   t  | | ƒ } t j |  | ƒ S(   s?   identity(n) returns the identity 2-d array of shape n x n.
    (   R   t   nnR   (   t   nR2   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   F   s    c         C` s   t  | | ƒ } t j |  | ƒ S(   N(   R   R/   R   (   R1   R2   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   L   s    c         C` s%   t  | | ƒ } t j |  | d | ƒS(   Nt   copy(   R   R/   R   (   t   sequenceR2   R6   R3   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   P   s    c         C` s"   t  | | ƒ } t j |  | | ƒ S(   N(   R   R/   R   (   R#   R2   R6   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   T   s    c         C` s%   t  | | ƒ } t j |  | d d ƒS(   NR6   i    (   R   R/   R   (   R#   R2   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   X   s    c         C` s9   t  j |  ƒ } t | ƒ d k r) | d St d ƒ ‚ d  S(   Ni   i    s   Input argument must be 1d(   R"   R   t   lent
   ValueError(   R#   t   res(    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   \   s    c         C` s   t  j |  | ƒ S(   N(   R"   R   (   R#   R1   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   c   s    c         C` s%   t  | | ƒ } t j |  | | | ƒ S(   N(   R   R/   R   (   t   startt   stopt   stepR2   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   f   s    c         C` s%   t  | | ƒ } t j |  | d | ƒS(   Nt   count(   R   R/   R   (   t   stringR2   R>   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   j   s    c         C` s   t  j |  ƒ S(   N(   R"   R   (   R)   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   n   s    c         C` s   t  j |  d d d d d d ƒS(   Nt   offseti    t   axis1t   axis2i   (   R"   R   (   R#   R@   RA   RB   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   q   s    c         C` s   t  | | ƒ } t j |  | ƒ S(   N(   R   R"   R   (   R-   R2   R*   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   t   s    c         C` s   t  j |  | | ƒ S(   N(   R"   R   (   R(   R'   t   y(    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   x   s    c         C` s   t  j |  | | | ƒ S(   N(   R"   t   cross(   R#   t   bRA   RB   (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR   {   s    c         C` s   t  j |  | | | ƒ S(   N(   R"   R!   (   R#   R%   t   weightst   returned(    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR!   ~   s    (1   t   __doc__t
   __future__R    R   R   t   numpyR"   t   numpy.core.multiarrayt   coret
   multiarrayR/   t   numpy.core.numerict   numericR4   t   typeconvR   R   t   __all__R   R   R   R   R	   R
   R   R   R   R    R   R   t   NoneR   R   R   R   R   t   FalseR   R   R   R   R   R   R   R   R   R   R   R!   (    (    (    sT   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyt   <module>   sP   							