™N
!&5c       s±    d  Z    k Z  k l  k l  k Z k Z k Z  e Z	  e d e d „ Z
 $ e i Z % e i Z & e i Z ' e i Z ( e i Z ) e i Z * e i Z + e i Z , e i Z . d „  Z 6 e i Z 8 d d „ Z A e d „ Z F d d „ Z L d d „ Z R d d	 „ Z Y d d
 „ Z ] e i Z _ d „  Z h d „  Z l e Z  o k! l" p e e e d „ Z# s e e e d „ Z$ v e i% e$ d ƒ w e i% e# d ƒ { e d d d d ƒ d d j Z& } d „  Z' ‘ e d „ Z( œ d „  Z) Ÿ d d „ Z* ¨ d d d d „ Z+ ² d d d d „ Z, » d „  Z- Å d „  Z. Ù k/ Z/ k0 Z0 Ú d e/ i1 f d „  ƒ  YZ1 á d e/ i2 f d „  ƒ  YZ2 é k3 l3 ë d  „  Z4 î d! „  Z5 ó d" „  Z6 ö d# „  Z7 þ d$ „  Z8 d% „  Z9 	e d& „ Z: d' „  Z; d( „  Z< d d) „ Z= d* „  Z> (d, d+ „ Z? /d- „  Z@ 2eA iB ZC 3eA iD ZE 4eF iB ZG 5eF iD ZH 6eI iB ZJ 7eK iB ZL 9e
 ZM d. S(/   s7   Python code in support of array's, umath, and numeric 
c    sø      | t j o  |  }  d }  n  t t i t | |  ƒ | ƒ ƒ }  | d j o"  t	 d f ƒ | |  | } n3  t i t | f t ƒ ƒ d | |  | | }  | t j o | i ƒ  | j o  | i | ƒ Sn ! | Sd S(   sj   Just like range() except it returns a array whose
	type can be specfied by the keyword argument typecode
	i    i   N(   s   stops   Nones   starts   ints   maths   ceils   floats   steps   ns   zeross   ms   adds
   accumulates   oness   Ints   typecodes   astype(   s   starts   stops   steps   typecodes   ns   ms   ./Lib/Numeric.pys
   arrayrange s   	&"2#i   c    ss   . / t  t |  ƒ ƒ } 0 | d j o 0 |  Sn 1 t | ƒ } 2 | | | <3 | | | <4 t i	 |  | ƒ Sd  S(   Ni   (
   s   lens   shapes   as   ns   aranges   new_axess   axis2s   axis1s
   multiarrays	   transpose(   s   as   axis1s   axis2s   ns   new_axess   ./Lib/Numeric.pys   swapaxes. s    c    s…   8 9 | d j o : t i |  ƒ Sn? < g  } = x/ |  d = r" } > | i t | | d ƒ ƒ q< W? t t i | ƒ | d ƒ Sd  S(   Ni    (   s   axiss
   multiarrays   concatenates   as   new_lists   ms   appends   swapaxes(   s   as   axiss   new_lists   ms   ./Lib/Numeric.pys   concatenate8 s   	 	 i    c    sZ   A B | t j o0 C t t t |  ƒ i ƒ ƒ d  d  d … } n D t i |  | ƒ Sd  S(   Ni   (	   s   axess   Nones   aranges   lens   arrays   as   shapes
   multiarrays	   transpose(   s   as   axess   ./Lib/Numeric.pys	   transposeA s   0c    sv   F G | d j o G t |  | d ƒ }  n H t i |  ƒ } I | d j o I t | | d ƒ } n J | Sd  S(   Ni   (   s   axiss   swapaxess   as
   multiarrays   sorts   s(   s   as   axiss   ss   ./Lib/Numeric.pys   sortF s     c    sv   L M | d j o M t |  | d ƒ }  n N t i |  ƒ } O | d j o O t | | d ƒ } n P | Sd  S(   Ni   (   s   axiss   swapaxess   as
   multiarrays   argsorts   s(   s   as   axiss   ss   ./Lib/Numeric.pys   argsortL s     c    sK   R S | d j o S t |  | d ƒ }  n T t i |  ƒ } W | Sd  S(   Ni   (   s   axiss   swapaxess   as
   multiarrays   argmaxs   s(   s   as   axiss   ss   ./Lib/Numeric.pys   argmaxR s    c    s   Y Z t  t |  ƒ | ƒ Sd  S(   N(   s   argmaxs   negatives   xs   axis(   s   xs   axiss   ./Lib/Numeric.pys   argminY s   c    s„   _ ` y a t  i |  | ƒ SWn` b t j
 oQ c t |  ƒ i f  j p t | ƒ i f  j o d |  | Sn f t d ‚ n Xd  S(   Ns   invalid types for dot(   s
   multiarrays   innerproducts   as   bs	   TypeErrors   arrays   shape(   s   as   bs   ./Lib/Numeric.pys   innerproduct_ s   /c    s%   h i t  |  t | d d ƒ ƒ Sd  S(   Ni   i   (   s   innerproducts   as   swapaxess   b(   s   as   bs   ./Lib/Numeric.pys   doth s   c    s#   p q t  |  | | | d d ƒ Sd  S(   Ns   , i   (   s   array2strings   as   max_line_widths	   precisions   suppress_small(   s   as   max_line_widths	   precisions   suppress_smalls   ./Lib/Numeric.pys
   array_reprp s   c    s#   s t t  |  | | | d d ƒ Sd  S(   Ns    i    (   s   array2strings   as   max_line_widths	   precisions   suppress_small(   s   as   max_line_widths	   precisions   suppress_smalls   ./Lib/Numeric.pys	   array_strs s   s   s    i   s   ic    sÍ   } € ‚ t  |  ƒ }  ƒ t i | ƒ } „ | t |  ƒ } … | t |  ƒ } ‡ | d j o$ ˆ | d } ‰ t |  ƒ | } n ‹ t	 |  f | ƒ }  Œ | d j o  |  |  }  n  t
 |  | ƒ Sd S(   sb   Returns a new array with the specified shape.  The original
	array's total size can be any size.
	i    i   N(   s   ravels   as   multiplys   reduces	   new_shapes
   total_sizes   lens   n_copiess   extras   concatenates   reshape(   s   as	   new_shapes
   total_sizes   n_copiess   extras   ./Lib/Numeric.pys   resize} s   c    s•   ‘ ’ t  |  ƒ } “ g  } ” x? t t |  ƒ ƒ d ” r& } • | i t i	 | | ƒ d ƒ q3 W– | t j o — t | | ƒ Sn ™ t | ƒ Sd  S(   Ni    i   (   s   oness
   dimensionss   tmps   lsts   ranges   lens   is   appends   adds
   accumulates   typecodes   Nones   array(   s
   dimensionss   typecodes   tmps   lsts   is   ./Lib/Numeric.pys   indices‘ s   	 	$c    s#   œ  t  |  t t | ƒ ƒ ƒ Sd  S(   N(   s   applys   functions   tuples   indicess
   dimensions(   s   functions
   dimensionss   ./Lib/Numeric.pys   fromfunctionœ s   c    s¤   Ÿ   t  |  i ƒ } ¡ | d | d | d <¢ t |  | d  ƒ } £ | d j  o £ | d | d } n ¤ t | t | | d | d d ƒ d ƒ Sd  S(   Ni   i   i    (	   s   lists   as   shapes   ss   reshapes   rs   offsets   takes   arange(   s   as   offsets   ss   rs   ./Lib/Numeric.pys
   __diagonalŸ s    c    sÌ   ¨ © | d j o © t |  | d ƒ }  n ª | d j o ª t |  | d ƒ }  n « t |  | ƒ } ¬ | d j o ¬ t | | d ƒ } n ­ | d j o ­ t |  | d ƒ } n ¯ | Sd  S(   Ni   i   (   s   axis1s   swapaxess   as   axis2s
   __diagonals   offsets   s(   s   as   offsets   axis1s   axis2s   ss   ./Lib/Numeric.pys   diagonal¨ s       i   c    s*   ² ³ t  i t |  | | | ƒ d ƒ Sd  S(   Ni   (   s   adds   reduces   diagonals   as   offsets   axis1s   axis2(   s   as   offsets   axis1s   axis2s   ./Lib/Numeric.pys   trace² s   c    s¯   » ¼ |  i } ½ t o ½ d } n
 ¾ d } ¿ | i d |  i ƒ  | |  i ƒ  f ƒ À x' | d À r } Á | i d | ƒ qd WÂ | i d ƒ Ã | i |  i
 ƒ  ƒ d  S(   Ns   Ls   Bs   A%s%s%d i    s   %d s   
(   s   ms   shapes   ss   LittleEndians   endians   fps   writes   typecodes   itemsizes   ds   tostring(   s   ms   fps   ss   endians   ds   ./Lib/Numeric.pys	   DumpArray» s   
 	) 	c 	   s5  Å Æ t  i |  i ƒ  ƒ } Ç | d d d j o Ç | d d | d <n È | d d } É | d d } Ë t d „  | d ƒ } Ì t  i	 | d d ƒ } Î t t | ƒ | } Ï |  i | ƒ } Ñ t | | ƒ } Ò t | | ƒ } Ô t o
 | d j p t o
 | d j o Õ | i ƒ  Sn × | Sd  S(   Ni    s   Ai   c    s   Ë t  i |  ƒ S(   N(   s   strings   atois   x(   s   xs   ./Lib/Numeric.pys   <lambda>Ë s    i   s   Bs   L(   s   strings   splits   fps   readlines   lns   typecodes   endians   maps   shapes   atois   itemsizes   reduces   multiplys   szs   reads   datas
   fromstrings   ms   reshapes   LittleEndians   byteswapped(	   s   fps   lns   typecodes   endians   shapes   itemsizes   szs   datas   ms   ./Lib/Numeric.pys	   LoadArrayÅ s    ,s	   Unpicklerc      s6   Ú Û d „  Z  Þ e i e i i ƒ Z ß e  e d <RS(   Nc    s    Û Ü |  i i t |  ƒ ƒ d  S(   N(   s   selfs   stacks   appends	   LoadArray(   s   selfs   ./Lib/Numeric.pys
   load_arrayÛ s   s   A(   s
   load_arrays   copys   pickles	   Unpicklers   dispatch(    s   ./Lib/Numeric.pys	   UnpicklerÚ s   s   Picklerc      s6   á â d „  Z  å e i e i i ƒ Z æ e  e e <RS(   Nc    s   â ã t  | |  ƒ d  S(   N(   s	   DumpArrays   objects   self(   s   selfs   objects   ./Lib/Numeric.pys
   save_arrayâ s   (   s
   save_arrays   copys   pickles   Picklers   dispatchs	   ArrayType(    s   ./Lib/Numeric.pys   Picklerá s   c    s   ë ì t  | ƒ i |  ƒ d  S(   N(   s   Picklers   files   dumps   object(   s   objects   files   ./Lib/Numeric.pys   dumpë s   c    s6   î ï t  ƒ  } ð t | ƒ i |  ƒ ñ | i ƒ  Sd  S(   N(   s   StringIOs   files   Picklers   dumps   objects   getvalue(   s   objects   files   ./Lib/Numeric.pys   dumpsî s   c    s   ó ô t  |  ƒ i ƒ  Sd  S(   N(   s	   Unpicklers   files   load(   s   files   ./Lib/Numeric.pys   loadó s   c    s)   ö ÷ t  |  ƒ } ø t | ƒ i ƒ  Sd  S(   N(   s   StringIOs   strs   files	   Unpicklers   load(   s   strs   files   ./Lib/Numeric.pys   loadsö s   c    s   þ t  |  d f ƒ Sd S(   sI   Returns a 1d array corresponding to all the elements of it's
	argument.
	i   N(   s   reshapes   m(   s   ms   ./Lib/Numeric.pys   ravelþ s   c    s/   t  t t |  ƒ ƒ t |  d ƒ ƒ Sd S(   sJ   Return the indices of the elements of a which are not zero, a must be 1d
	i    N(   s   repeats   aranges   lens   as	   not_equal(   s   as   ./Lib/Numeric.pys   nonzeros   c    sD   	
| t j o t |  d d ƒSn t |  | d d ƒSd  S(   Ns   copyi    (   s   typecodes   Nones   arrays   a(   s   as   typecodes   ./Lib/Numeric.pys   asarray	s   c    s   t  |  ƒ i Sd  S(   N(   s   asarrays   as   shape(   s   as   ./Lib/Numeric.pys   shapes   c    s)   t  t |  d ƒ | | f ƒ Sd S(   sz   where(condition,x,y) is shaped like condition and has elements of x and
	y where condition is respectively true or false
	i    N(   s   chooses	   not_equals	   conditions   ys   x(   s	   conditions   xs   ys   ./Lib/Numeric.pys   wheres   c    s#   t  | t |  ƒ | ƒ Sd S(   s¹   compress(condition, x, dimension=-1) = those elements of x corresponding 
	to those elements of condition that are "true".  condition must be the
	same size as the given dimension of x.N(   s   takes   ms   nonzeros	   conditions	   dimension(   s	   conditions   ms	   dimensions   ./Lib/Numeric.pys   compresss   c    sF   #%t  |  | ƒ d t |  | ƒ } &t | |  | | f ƒ Sd S(   s“   clip(m, m_min, m_max) = every entry in m that is less than m_min is
	replaced by m_min, and every entry greater than m_max is replaced by
	m_max.
	i   N(   s   lesss   ms   m_mins   greaters   m_maxs   selectors   choose(   s   ms   m_mins   m_maxs   selectors   ./Lib/Numeric.pys   clips   #c    s'   (+-t  |  | ƒ t d | ƒ Sd S(   sf   ones(shape, typecode=Int) returns a array of the given dimensions
	which is initialized to all ones.
	i   N(   s   zeross   shapes   typecodes   array(   s   shapes   typecodes   ./Lib/Numeric.pys   ones(s   s   lc    s+   /0t  d g |  d g |  |  f ƒ Sd  S(   Ni   i    (   s   resizes   n(   s   ns   ./Lib/Numeric.pys   identity/s   N(N   s   __doc__s
   multiarrays   umaths   *s	   Precisions   strings   typess   maths   Nones   NewAxiss
   arrayranges   arrays   zeross
   fromstrings   takes   reshapes   repeats   chooses   convolves	   arraytypes	   ArrayTypes   swapaxess   concatenates	   transposes   sorts   argsorts   argmaxs   argmins   binarysearchs   searchsorteds   innerproducts   dots   matrixmultiplys   ArrayPrinters   array2strings
   array_reprs	   array_strs   set_string_functions   LittleEndians   resizes   indicess   fromfunctions
   __diagonals   diagonals   traces	   DumpArrays	   LoadArrays   pickles   copys	   Unpicklers   Picklers   StringIOs   dumps   dumpss   loads   loadss   ravels   nonzeros   asarrays   shapes   wheres   compresss   clips   oness   identitys   adds   reduces   sums
   accumulates   cumsums   multiplys   products
   cumproducts   logical_ands   alltrues
   logical_ors   sometrues   arange(    s   ./Lib/Numeric.pys   ? s‚   	

				
$	
	

	