;ò
cöz?c           @   s#	  d  Z  d k i Z d k l Z l Z l Z d k i Z	 d k
 i Z d k Z d k Z d k Z d k Z d k Td k Z e i Z d Z d e f d „  ƒ  YZ d f  d „  ƒ  YZ e d	 ƒ Z e i d
 g ƒ i e ƒ Z e i d
 d g ƒ i e ƒ Z d Z  e i d g ƒ i e! ƒ Z" d Z# d „  Z$ d „  Z% d „  Z& d „  Z' d „  Z( d „  Z) d „  Z* d d d „ Z+ d „  Z, e, Z- d „  Z. e/ d „ Z0 d „  Z1 d „  Z2 d f  d „  ƒ  YZ3 d f  d „  ƒ  YZ4 d f  d  „  ƒ  YZ5 d! f  d" „  ƒ  YZ6 d# f  d$ „  ƒ  YZ7 d% f  d& „  ƒ  YZ8 d' f  d( „  ƒ  YZ9 d) f  d* „  ƒ  YZ: e7 e i; d+ e6 d+ ƒ ƒ Z; e7 e i< d, e5 d+ ƒ ƒ Z< e7 e i= d, e5 d+ ƒ ƒ Z= e7 e i> ƒ Z> e7 e i? ƒ Z? e7 e i@ ƒ Z@ e7 e iA ƒ ZA e7 e iB d+ e4 d ƒ ƒ ZB e7 e iC d+ e3 d- d, ƒ ƒ ZC e7 e iD d+ e3 d- d, ƒ ƒ ZD e7 e iE ƒ ZE e7 e iF ƒ ZF e7 e iG ƒ ZG e7 e iH ƒ ZH e7 e iI ƒ ZI e7 e iJ ƒ ZJ e7 e iK ƒ ZK e7 e iL ƒ ZL e7 e iM ƒ ZM e7 e iN ƒ ZN e7 e iO ƒ ZO e7 e iP ƒ ZP e7 e iQ d. ƒ ZQ e7 e iR ƒ ZR e: e iS ƒ ZS e: e iT ƒ ZT e/ eT _U e: e iV d. d. ƒ ZV e9 e iW e8 ƒ  d d. ƒ ZW y e9 e iX e8 ƒ  d d. ƒ ZX Wn n Xy e9 e iY e8 ƒ  d d. ƒ ZY Wn n Xe9 e iZ e8 ƒ  d d. ƒ ZZ e9 e i[ e8 ƒ  d d. ƒ Z[ e: e i\ ƒ Z\ e: e i] d+ d, ƒ Z] e/ e] _U e: e i^ ƒ Z^ e/ e^ _U e: e i_ ƒ Z_ e/ e_ _U e: e i` ƒ Z` e/ e` _U e: e ia ƒ Za e/ ea _U e: e ib ƒ Zb e/ eb _U e: e ic ƒ Zc e/ ec _U e: e id ƒ Zd e: e ie ƒ Ze e: e if ƒ Zf e: e ig ƒ Zg e: e ih ƒ Zh e: e ii ƒ Zi e ij Zj e ik Zk e il Zl d/ e im f d0 „  ƒ  YZn en Z d1 en f d2 „  ƒ  YZo eo ƒ  Zp d3 „  Zq eq Zr eq Zs d. d4 d5 d6 „ Zt d. d7 „ Zu d4 d5 d. d d8 „ Zv d. d d9 „ Zw e/ d. e/ d: „ Zx ex Zy d; „  Zz d< „  Z{ d= „  Z| d> „  Z} d d? „ Z~ d@ „  Z e/ dA „ Z€ e� d dB „ Z‚ e� d dC „ Zƒ e/ dD „ Z„ e/ dE „ Z… e/ e/ dF „ Z† eS iU Z‡ eV iU Zˆ d e/ d dG „ Z‰ dH „  ZŠ dI „  Z‹ d. dJ „ ZŒ d. dK „ Z� d. dL „ ZŽ d. dM „ Z� d. dN „ Z� d. dO „ Z‘ d. dP „ Z’ d. dQ „ Z“ d. dR „ Z” dS „  Z• dT „  Z– d dU „ Z— d dV „ Z˜ e/ dW „ Z™ dX „  Zš dY „  Z› dZ „  Zœ d[ „  Z� d\ „  Zž d] d^ „ ZŸ d_ f  d` „  ƒ  YZ  e  ƒ  Z¡ da f  db „  ƒ  YZ¢ e¢ ƒ  Z£ d] e/ dc „ Z¤ d d d. dd „ Z¥ d] e/ de „ Z¦ d] e/ df „ Z§ d] e/ dg „ Z¨ dh „  Z© e/ di „ Zª dj Z« dk „  Zk e/ dl „ Zl d dm „ Z¬ dn „  Z­ e¬ e« ƒ d S(o   sþ  MA: a facility for dealing with missing observations
MA is generally used as a Numeric.array look-alike.
There are some differences in semantics, see manual.
In particular note that slices are copies, not references.
by Paul F. Dubois
   L-264
   Lawrence Livermore National Laboratory
   dubois@users.sourceforge.net
Copyright 1999, 2000, 2001 Regents of the University of California.
Released for unlimited redistribution; see file Legal.htm
Documentation is in the Numeric manual; see numpy.sourceforge.net
N(   s   es   pis   NewAxis(   s   *f1e-35s   MAErrorc           B   s#   t  Z e d „ Z d „  Z e Z RS(   Nc         C   s   | |  _  d S(   s   Create an exceptionN(   s   argss   self(   s   selfs   args(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__   s     c         C   s   t  |  i ƒ Sd S(   s#   Calculate the string representationN(   s   strs   selfs   args(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __str__   s     (   s   __name__s
   __module__s   Nones   __init__s   __str__s   __repr__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   MAError   s   	s   _MaskedPrintOptionc           B   sG   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d d „ Z d „  Z RS(   s<   One instance of this class, masked_print_option, is created.c         C   s   |  i | ƒ d |  _ d S(   s&   Create the masked print option object.i   N(   s   selfs   set_displays   displays   _enabled(   s   selfs   display(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__$   s     c         C   s   |  i Sd S(   s#   Show what prints for masked values.N(   s   selfs   _display(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   display)   s     c         C   s   | |  _ d S(   s2   set_display(s) sets what prints for masked values.N(   s   ss   selfs   _display(   s   selfs   s(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   set_display-   s     c         C   s   |  i Sd S(   s(   Is the use of the display value enabled?N(   s   selfs   _enabled(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   enabled1   s     i   c         C   s   | |  _ d S(   s   Set the enabling flag to flag.N(   s   flags   selfs   _enabled(   s   selfs   flag(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   enable5   s     c         C   s   t  |  i ƒ Sd  S(   N(   s   strs   selfs   _display(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __str__9   s    (	   s   __name__s
   __module__s   __doc__s   __init__s   displays   set_displays   enableds   enables   __str__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   _MaskedPrintOption"   s    				s   --f1e+20x0.00.0s   ?i    c         C   s+  t  |  t i ƒ o t Snt  |  t i ƒ p t  |  t i ƒ o t Snß t  |  t i ƒ o t	 SnÄ t  |  t i
 ƒ o t Sn© t  |  t ƒ p t  |  t i ƒ o� |  i ƒ  } | t d j o t Sn | t d j o t Sn | t d j o t Sn | t d j o t i t ƒ Sn t Sn t Sd S(   s7   Function to calculate default fill value for an object.s   Floats   Integers   Complexs   UnsignedIntegerN(   s
   isinstances   objs   typess	   FloatTypes   default_real_fill_values   IntTypes   LongTypes   default_integer_fill_values
   StringTypes   default_character_fill_values   ComplexTypes   default_complex_fill_values   MaskedArrays   Numerics	   arraytypes   typecodes   xs	   typecodess   absolutes   default_object_fill_value(   s   objs   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   default_fill_valueF   s*     &#c         C   sÝ   t  |  t i ƒ o t Sn¿ t  |  t i ƒ p t  |  t i ƒ o t i SnŽ t  |  t	 ƒ p t  |  t
 i ƒ oa |  i ƒ  } | t d j o t Sn | t d j o t i Sn | t d j o t i SqÙ n
 t d ‚ d S(   sD   Function to calculate default fill value suitable for taking minima.s   Floats   Integers   UnsignedIntegers(   Unsuitable type for calculating minimum.N(   s
   isinstances   objs   typess	   FloatTypes   default_real_fill_values   IntTypes   LongTypes   syss   maxints   MaskedArrays   Numerics	   arraytypes   typecodes   xs	   typecodess	   TypeError(   s   objs   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   minimum_fill_value`   s     &#c         C   sÛ   t  |  t i ƒ o	 t Sn¼ t  |  t i ƒ p t  |  t i ƒ o	 t Sn� t  |  t ƒ p t  |  t	 i
 ƒ o` |  i ƒ  } | t d j o	 t Sn | t d j o t i Sn | t d j o d Sq× n
 t d ‚ d S(   sD   Function to calculate default fill value suitable for taking maxima.s   Floats   Integers   UnsignedIntegeri    s(   Unsuitable type for calculating maximum.N(   s
   isinstances   objs   typess	   FloatTypes   default_real_fill_values   IntTypes   LongTypes   default_integer_fill_values   MaskedArrays   Numerics	   arraytypes   typecodes   xs	   typecodess   syss   maxints	   TypeError(   s   objs   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   maximum_fill_valueq   s     	&	#	c         C   s"   t  |  ƒ o |  i | ƒ n d S(   s,   Set fill value of a if it is a masked array.N(   s   isMaskedArrays   as   set_fill_values
   fill_value(   s   as
   fill_value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   set_fill_value‚   s     c         C   s&   t  |  t ƒ o |  i ƒ  Sn t Sd S(   s…   Mask of values in a; could be None.
       Returns None if a is not a masked array.
       To get an array for sure use getmaskarray.N(   s
   isinstances   as   MaskedArrays   raw_masks   None(   s   a(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   getmask‡   s     c         C   s5   t  |  ƒ } | t j o t t |  ƒ ƒ Sn | Sd S(   sÈ   Mask of values in a; an array of zeros if mask is None or not a
     masked array. Caution: has savespace attribute, and is a
     byte-sized integer.  Do not try to add up entries, for example.
     N(   s   getmasks   as   ms   Nones   make_mask_nones   shape(   s   as   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   getmaskarray�   s
     c         C   sC   |  t j p# t |  t i ƒ o |  i ƒ  t j o d Sn d Sd S(   s;   Is m a legal mask? Does not check contents, only type.
    i   i    N(   s   ms   Nones
   isinstances   Numerics	   ArrayTypes   typecodes   MaskType(   s   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   is_mask›   s     3c         C   sß   |  t j o t Snš t |  t i ƒ oe |  i ƒ  t j o? | o t i |  d d ƒ} q‰ t i |  d d d d ƒ} q® |  i
 t ƒ } n" t i t |  d ƒ t d d ƒ} | o t i t i | ƒ ƒ o t Sn | Sd S(   s  make_mask(m, copy=0, flag=0)
       return m as a mask, creating a copy if necessary or requested.
       Can accept any sequence of integers or None. Does not check 
       that contents must be 0s and 1s.
       if flag, return None if m contains no true elements.
    s	   savespacei   s   copyi    N(   s   ms   Nones
   isinstances   Numerics	   ArrayTypes   typecodes   MaskTypes   copys   arrays   results   astypes   filleds   flags   sometrues   ravel(   s   ms   copys   flags   result(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   make_mask¤   s     !!c         C   s#   t  i |  t ƒ } |  | _ | Sd S(   s&   Return a mask of all zeros of shape s.N(   s   Numerics   zeross   ss   MaskTypes   results   shape(   s   ss   result(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   make_mask_none½   s     	c         C   sr   |  t j o t | ƒ Sn | t j o t |  ƒ Sn |  | j o
 t |  ƒ o |  Sn t t i |  | ƒ ƒ Sd S(   s�   Logical or of the mask candidates m1 and m2, treating None as false.
       Result may equal m1 or m2 if the other is None.
     N(   s   m1s   Nones	   make_masks   m2s   is_masks   Numerics
   logical_or(   s   m1s   m2(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   mask_orÅ   s        c         C   s�   t  |  t ƒ o |  i | ƒ Sn] t  |  t i ƒ o
 |  i ƒ  o |  Sn5 t  |  t i	 ƒ o t i
 |  d ƒ Sn t i
 |  ƒ Sd S(   s“  a as a contiguous Numeric array with any masked areas replaced by value
    if value is None or the special element "masked", fill_value(a)
    is used instead. 

    If a is already a contiguous Numeric array, a itself is returned.

    filled(a) can be used to be sure that the result is Numeric when 
    passing an object a to other software ignorant of MA, in particular to
    Numeric itself.
    s   ON(   s
   isinstances   as   MaskedArrays   filleds   values   Numerics	   ArrayTypes   iscontiguouss   typess   DictTypes   array(   s   as   value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   filledÎ   s    
  c         C   s1   t  |  ƒ o |  i ƒ  } n t |  ƒ } | Sd S(   sb   
    The fill value of a, if it has one; otherwise, the default fill value
    for that type.
    N(   s   isMaskedArrays   as
   fill_values   results   default_fill_value(   s   as   result(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   fill_valueâ   s
     c         C   s5   t  |  ƒ } t  | ƒ } | | j o | Sn t Sd S(   s:   The common fill_value of a and b, if there is one, or NoneN(   s
   fill_values   as   t1s   bs   t2s   None(   s   as   bs   t2s   t1(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   common_fill_valueí   s      s   domain_check_intervalc           B   s    t  Z d  Z d „  Z d „  Z RS(   s9   domain_check_interval(a,b)(x) = true where x < a or y > bc         C   s   | |  _  | |  _ d S(   s9   domain_check_interval(a,b)(x) = true where x < a or y > bN(   s   y1s   selfs   y2(   s   selfs   y1s   y2(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__÷   s     	c         C   s2   t  i t  i | |  i ƒ t  i | |  i ƒ ƒ Sd S(   s   Execute the call behavior.N(   s   Numerics
   logical_ors   greaters   xs   selfs   y2s   lesss   y1(   s   selfs   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__ü   s     (   s   __name__s
   __module__s   __doc__s   __init__s   __call__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   domain_check_intervalõ   s    	s
   domain_tanc           B   s    t  Z d  Z d „  Z d „  Z RS(   s/   domain_tan(eps) = true where abs(cos(x)) < eps)c         C   s   | |  _  d S(   s/   domain_tan(eps) = true where abs(cos(x)) < eps)N(   s   epss   self(   s   selfs   eps(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__  s     c         C   s)   t  i t  i t  i | ƒ ƒ |  i ƒ Sd S(   s   Execute the call behavior.N(   s   Numerics   lesss   absolutes   coss   xs   selfs   eps(   s   selfs   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__  s     (   s   __name__s
   __module__s   __doc__s   __init__s   __call__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   domain_tan  s    	s   domain_greaterc           B   s    t  Z d  Z d „  Z d „  Z RS(   s(   domain_greater(v)(x) = true where x <= vc         C   s   | |  _  d S(   s(   domain_greater(v)(x) = true where x <= vN(   s   critical_values   self(   s   selfs   critical_value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__  s     c         C   s   t  i | |  i ƒ Sd S(   s   Execute the call behavior.N(   s   Numerics
   less_equals   xs   selfs   critical_value(   s   selfs   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__  s     (   s   __name__s
   __module__s   __doc__s   __init__s   __call__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   domain_greater  s    	s   domain_greater_equalc           B   s    t  Z d  Z d „  Z d „  Z RS(   s-   domain_greater_equal(v)(x) = true where x < vc         C   s   | |  _  d S(   s-   domain_greater_equal(v)(x) = true where x < vN(   s   critical_values   self(   s   selfs   critical_value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__  s     c         C   s   t  i | |  i ƒ Sd S(   s   Execute the call behavior.N(   s   Numerics   lesss   xs   selfs   critical_value(   s   selfs   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__  s     (   s   __name__s
   __module__s   __doc__s   __init__s   __call__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   domain_greater_equal  s    	s   masked_unary_operationc           B   s)   t  Z d e d „ Z d „  Z d „  Z RS(   Ni    c         C   s:   | |  _ | |  _ | |  _ t | d t | ƒ ƒ |  _ d S(   sÜ    masked_unary_operation(aufunc, fill=0, domain=None)
            aufunc(fill) must be defined
            self(x) returns aufunc(x) 
            with masked values where domain(x) is true or getmask(x) is true. 
        s   __doc__N(   s   aufuncs   selfs   fs   fills   domains   getattrs   strs   __doc__(   s   selfs   aufuncs   fills   domain(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__!  s
     			c         O   s  t  | ƒ } t | |  i ƒ } |  i t j	 o t	 | |  i | ƒ ƒ } n | t j oA |  i
 | | | Ž } t | ƒ t i j o t | ƒ Sq| Sn} t | | ƒ } |  i
 t | |  i ƒ | | Ž } t | ƒ t i j o t | | ƒ Sn& t i t i | ƒ ƒ o t Sn | Sd S(   s   Execute the call behavior.N(   s   getmasks   as   ms   filleds   selfs   fills   d1s   domains   Nones   mask_ors   fs   argss   kwargss   results   types   Numerics	   ArrayTypes   masked_arrays   dxs   sometrues   ravels   masked(   s   selfs   as   argss   kwargss   ms   results   dxs   d1(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__,  s"     !c         C   s   d t  |  i ƒ Sd  S(   Ns   Masked version of (   s   strs   selfs   f(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __str__C  s    (   s   __name__s
   __module__s   Nones   __init__s   __call__s   __str__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_unary_operation   s   	s   domain_safe_dividec           B   s   t  Z e d „ Z d „  Z RS(   Nc         C   s   | |  _  d  S(   N(   s	   tolerances   self(   s   selfs	   tolerance(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__H  s    c         C   s'   t  i | ƒ |  i t  i | ƒ j Sd  S(   N(   s   Numerics   absolutes   as   selfs	   tolerances   b(   s   selfs   as   b(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__J  s    (   s   __name__s
   __module__s   divide_tolerances   __init__s   __call__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   domain_safe_divideG  s   s   domained_binary_operationc           B   s/   t  Z d  Z d d d „ Z d „  Z d „  Z RS(   sœ   Binary operations that have a domain, like divide. These are complicated so they
       are a separate class. They have no reduce, outer or accumulate.
    i    c         C   sC   | |  _ | |  _ | |  _ | |  _ t | d t | ƒ ƒ |  _ d S(   sj   abfunc(fillx, filly) must be defined.
           abfunc(x, filly) = x for all x to enable reduce.
        s   __doc__N(	   s   abfuncs   selfs   fs   domains   fillxs   fillys   getattrs   strs   __doc__(   s   selfs   abfuncs   domains   fillxs   filly(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__Q  s     				c   
      C   s}  t  | ƒ } t  | ƒ } t | |  i ƒ }	 t | |  i	 ƒ } |  i |	 | ƒ } t i t i | ƒ ƒ o( t | |  i	 | ƒ } t | | ƒ } n t | | ƒ } | t j o> |  i |	 | ƒ } t | ƒ t i j o t | ƒ Sqé | Sn |  i |	 | ƒ } t | ƒ t i j oC | i | i j o t t | ƒ t | ƒ ƒ } n t | | ƒ Sn& t i t i | ƒ ƒ o t Sn | Sd S(   s   Execute the call behavior.N(   s   getmasks   as   mas   bs   mbs   filleds   selfs   fillxs   d1s   fillys   d2s   domains   ts   Numerics   sometrues   ravels   wheres   mask_ors   ms   Nones   fs   results   types	   ArrayTypes   masked_arrays   shapes   getmaskarrays   masked(
   s   selfs   as   bs   mas   results   mbs   ms   ts   d2s   d1(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__[  s.     c         C   s   d t  |  i ƒ Sd  S(   Ns   Masked version of (   s   strs   selfs   f(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __str__v  s    (   s   __name__s
   __module__s   __doc__s   __init__s   __call__s   __str__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   domained_binary_operationM  s    
	s   masked_binary_operationc           B   sJ   t  Z d d d „ Z d „  Z d d „ Z d „  Z d d „ Z d „  Z RS(   Ni    c         C   s:   | |  _ | |  _ | |  _ t | d t | ƒ ƒ |  _ d S(   sj   abfunc(fillx, filly) must be defined.
           abfunc(x, filly) = x for all x to enable reduce.
        s   __doc__N(   s   abfuncs   selfs   fs   fillxs   fillys   getattrs   strs   __doc__(   s   selfs   abfuncs   fillxs   filly(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__z  s
     			c   	      O   sN  t  t | ƒ t | ƒ ƒ } | t j oh t | |  i ƒ } t | |  i
 ƒ } |  i | | | | Ž } t | ƒ t i j o t | ƒ Sq� | Sn t | |  i ƒ } t | |  i
 ƒ } |  i | | | | Ž } t | ƒ t i j oC | i | i j o t  t | ƒ t | ƒ ƒ } n t | | ƒ Sn& t i t i | ƒ ƒ o t Sn | Sd S(   s   Execute the call behavior.N(   s   mask_ors   getmasks   as   bs   ms   Nones   filleds   selfs   fillxs   d1s   fillys   d2s   fs   argss   kwargss   results   types   Numerics	   ArrayTypes   masked_arrays   shapes   getmaskarrays   sometrues   ravels   masked(	   s   selfs   as   bs   argss   kwargss   ms   results   d2s   d1(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__ƒ  s&     c         C   s   t  | ƒ } t | |  i ƒ } | i f  j o? d f | _ | t j	 o" t	 | d d ƒ} d f | _ qm n | t j o t
 |  i i | | ƒ ƒ Sn† t
 | | ƒ } |  i i t | |  i ƒ | ƒ } t i i | | ƒ } t | t i ƒ o t
 | | t | ƒ ƒ Sn | o t Sn | Sd S(   s6   Reduce target along the given axis with this function.i   s   copyN(   s   getmasks   targets   ms   filleds   selfs   fillys   ts   shapes   Nones	   make_masks   masked_arrays   fs   reduces   axiss   Numerics   logical_ands
   isinstances	   ArrayTypes
   fill_values   masked(   s   selfs   targets   axiss   ms   t(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   reduceš  s$     !c         C   s¤   t  | ƒ } t  | ƒ } | t j o
 | t j o
 t } n+ t | ƒ } t | ƒ } t i	 | | ƒ } |  i i	 t | |  i ƒ t | |  i ƒ ƒ } t | | ƒ Sd S(   s<   Return the function applied to the outer product of a and b.N(   s   getmasks   as   mas   bs   mbs   Nones   ms   getmaskarrays
   logical_ors   outers   selfs   fs   filleds   fillxs   fillys   ds   masked_array(   s   selfs   as   bs   mas   ds   mbs   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   outer°  s     
-c         C   s/   t  | |  i ƒ } t |  i i | | ƒ ƒ Sd S(   s=   Accumulate target along axis after filling with y fill value.N(	   s   filleds   targets   selfs   fillys   ts   masked_arrays   fs
   accumulates   axis(   s   selfs   targets   axiss   t(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   accumulate½  s     c         C   s   d t  |  i ƒ Sd  S(   Ns   Masked version of (   s   strs   selfs   f(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __str__Á  s    (   s   __name__s
   __module__s   __init__s   __call__s   reduces   outers
   accumulates   __str__(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_binary_operationy  s   			f0.0f1.0f-1.0i   s   MaskedArrayc           B   sw  t  Z d  Z d Z d Z e d e e e d „ Z e d „ Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e Z e Z e Z d „  Z  d „  Z! d „  Z" d „  Z# e# Z$ d „  Z% d  „  Z& d! „  Z' d" „  Z( d# „  Z) d$ „  Z* d% „  Z+ e+ Z, d& „  Z- d' „  Z. d( „  Z/ d) „  Z0 d* „  Z1 d+ „  Z2 e d, „ Z3 d- „  Z4 d. „  Z5 d/ „  Z6 d0 „  Z7 d1 „  Z8 d2 „  Z9 d3 „  Z: d4 „  Z; d5 „  Z< d6 „  Z= d7 „  Z> d8 „  Z? d9 „  Z@ d: „  ZA e d; „ ZB d< „  ZC d= „  ZD e d> „ ZE d? „  ZF d@ „  ZG dA „  ZH dB „  ZI dC „  ZJ dD „  ZK dE „  ZL dF „  ZM dG „  ZN dH „  ZO dI „  ZP e dJ „ ZQ e dK „ ZR dL „  ZO dM „  ZS e dN „ ZT e dO „ ZU dP „  ZV dQ „  ZW eX e	 e
 dR dS ƒZY eX e e dR dT ƒZZ eX e e dR dU ƒZ[ eX e e dR dV ƒZ\ e\ Z] RS(W   s€  Arrays with possibly masked values. 
       Masked values of 1 exclude element from the computation.
       Construction:
           x = array(data, typecode=None, copy=1, savespace=0,
                     mask = None, fill_value=None)

       If copy=0, every effort is made not to copy the data:
           If data is a MaskedArray, and argument mask=None,
           then the candidate data is data.raw_data() and the
           mask used is data.mask(). If data is a Numeric array,
           it is used as the candidate raw data.
           If savespace != data.spacesaver() or typecode is not None and
           is != data.typecode() then a data copy is required.  
           Otherwise, the candidate is used.

       If a data copy is required, raw data stored is the result of:
       Numeric.array(data, typecode=typecode, copy=copy, savespace=savespace)

       If mask is None there are no masked values. Otherwise mask must
       be convertible to an array of integers of typecode MaskType, 
       with values 1 or 0, and of the same shape as x.
 
       fill_value is used to fill in masked values when necessary, 
       such as when printing and in method/function filled().
       The fill_value is not used for computation within this module.

       If savespace is 1, the data is given the spacesaver property, and
       the mask is replaced by None if all its elements are true.
    f1.0s   MA.MaskedArrayi   c         C   s×  | }
 | } | } t | t ƒ o¾ | i	 ƒ  } | i  ƒ  } |
 t j o
 | }
 n |
 | j o
 d } n | i ƒ  } | t j o
 | } n | | j o
 d } n d } | t j o | i ƒ  } q¦| t j	 o
 d } q¦nÇ t | t i ƒ o~ | } | i  ƒ  } |
 t j o
 | }
 n |
 | j o
 d } n | i ƒ  } | t j o
 | } q¦| | j o
 d } q¦n6 d } | t j o
 d } n t i | |
 d | ƒ} | oE |
 | j o" t i | d d d | ƒ|  _ qû| i |
 ƒ |  _ n
 | |  _ | t j o t |  _ d |  _ n©t | t ƒ oV | d j o t i |  i i t ƒ } q…| d j o t i |  i i t ƒ } q…n t | d | ƒ|  _ |  i t j o d |  _ n|  i | j |  _ t |  i ƒ } t |  i ƒ }	 | |	 j o† | d j o+ t i  |  i |  i i ƒ |  _ d |  _ qÆ|	 d j o4 t i  |  i |  i i ƒ |  _ |  i i |  i _ qÆt! d ‚ nM | d j o t |  i ƒ t |  i ƒ j o  |  i" ƒ  |  i i |  i _ n |  i# | ƒ d S(   sõ   array(data, typecode=None,copy=1, savespace=None,
                    mask=None, fill_value=None)
           If data already a Numeric array, its typecode and spacesaver()
           become the default values for typecode and savespace.
        i   i    s	   savespaces   copys   flags   Mask and data not compatible.N(%   s   typecodes   tcs	   savespaces   sss   copys   need_data_copieds
   isinstances   datas   MaskedArrays   raw_datas   cs   ctcs   Nones
   spacesavers   csss   masks   Numerics	   ArrayTypes   arrays   selfs   _datas   astypes   _masks   _shared_masks   oness   shapes   MaskTypes   zeross	   make_masks   sizes   nms   nds   resizes   MAErrors   unshare_masks   set_fill_values
   fill_value(   s   selfs   datas   typecodes   copys	   savespaces   masks
   fill_values   need_data_copieds   nms   nds   tcs   csss   cs   sss   ctc(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__/  sˆ     







"		 ,
c         C   su   |  i t j	 o? t i t i |  i ƒ ƒ o t d ‚ qO t |  _ d |  _ n | o |  i	 i
 | ƒ Sn |  i	 Sd S(   s:   Special hook for Numeric. Converts to Numeric if possible.sŠ   Cannot automatically convert masked array to Numeric because data 
                   is masked in one or more locations.
                i    N(   s   selfs   _masks   Nones   Numerics   sometrues   ravels   MAErrors   _shared_masks   ts   _datas   astype(   s   selfs   t(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   __array__‡  s     	c         C   sA   d GH|  i i ƒ  d GH|  i t j	 o |  i i ƒ  n d GHd S(   s)   prints out information about masked arrays   MaskedArray data info:s   MaskedArray mask info:s   no maskN(   s   selfs   _datas   infos   _masks   None(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   info˜  s     c         C   s   |  i i Sd S(   s   Return the current shape.N(   s   selfs   _datas   shape(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   _get_shape¢  s     c         C   s²   |  i i ƒ  o4 t i |  i |  i i ƒ  d |  i i ƒ  ƒ |  _ n | |  i _ |  i	 t
 j	 oM |  i ƒ  |  i	 i ƒ  o" t i |  i	 t d d ƒ |  _	 n | |  i	 _ n d S(   s   Set the array's shape.i   N(   s   selfs   _datas   iscontiguouss   Numerics   arrays   typecodes
   spacesavers   newshapes   shapes   _masks   Nones   unshare_masks   MaskType(   s   selfs   newshape(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   _set_shape¦  s     
"c         C   sb   |  i t j o& t |  i i d t d |  i ƒ  ƒSn) t |  i i d |  i i d |  i ƒ  ƒSd S(   s#   Calculate the flat value. 
        s   masks
   fill_valueN(   s   selfs   _masks   Nones   masked_arrays   _datas   flats
   fill_value(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   _get_flat²  s     c         C   s   |  i } | | (d S(   s   x.flat = valueN(   s   selfs   flats   ys   value(   s   selfs   values   y(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   _set_flat½  s     	c         C   se   |  i t j o& t |  i i d t d |  i ƒ  ƒSn, t |  i i d |  i ƒ  i d |  i ƒ  ƒSd S(   s%   Get the real part of a complex array.s   masks
   fill_valueN(	   s   selfs   _masks   Nones   masked_arrays   _datas   reals
   fill_values   masks   flat(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   _get_realÂ  s     c         C   s   |  i } | | d <d S(   s   x.real = value.N(   s   selfs   reals   ys   value(   s   selfs   values   y(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   _set_realË  s     	c         C   se   |  i t j o& t |  i i d t d |  i ƒ  ƒSn, t |  i i d |  i ƒ  i d |  i ƒ  ƒSd S(   s*   Get the imaginary part of a complex array.s   masks
   fill_valueN(	   s   selfs   _masks   Nones   masked_arrays   _datas	   imaginarys
   fill_values   masks   flat(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   _get_imaginaryÐ  s     c         C   s   |  i } | | d <d S(   s   x.imaginary = value.N(   s   selfs	   imaginarys   ys   value(   s   selfs   values   y(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   _set_imaginaryÙ  s     	c         C   s:   t  i ƒ  o
 t  } n |  i ƒ  } t t |  | ƒ ƒ Sd S(   s~   Calculate the str representation, using masked for fill if 
           it is enabled. Otherwise fill with fill value.
        N(   s   masked_print_options   enableds   fs   selfs
   fill_values   strs   filled(   s   selfs   f(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __str__Þ  s
     
c         C   s§  d } d } d } d } t |  i ƒ } |  i t	 j oO | d j o! | h  d t
 |  i ƒ  ƒ <Sn | h  d t
 |  i ƒ  ƒ <Sn  | d j oK | h  d t
 |  i ƒ  ƒ <d t
 |  i ƒ  ƒ <d t
 |  i ƒ  ƒ <Sn | h  d t
 |  i ƒ  ƒ <d t
 |  i ƒ  ƒ <d t
 |  i ƒ  ƒ <Sd } |  i t	 j o! | h  d t
 |  i ƒ  ƒ <SnH | h  d t
 |  i ƒ  ƒ <d t
 |  i ƒ  ƒ <d t
 |  i ƒ  ƒ <Sd	 S(
   s   Calculate the repr representation, using masked for fill if 
           it is enabled. Otherwise fill with fill value.
        sM   array(data = 
 %(data)s,
      mask = 
 %(mask)s,
      fill_value=%(fill)s)
sI   array(data = %(data)s,
      mask = %(mask)s,
      fill_value=%(fill)s)
s   array(
 %(data)s)s   array(%(data)s)i   s   datas   masks   fillN(   s	   with_masks
   with_mask1s   without_masks   without_mask1s   lens   selfs   shapes   ns   _masks   Nones   strs   filleds   masks
   fill_value(   s   selfs   ns
   with_mask1s   without_mask1s   without_masks	   with_mask(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __repr__è  s"     !!KG!c         C   s?   |  i ƒ  |  i t j	 o t d ‚ n t |  i ƒ  d ƒ Sd S(   s   Convert self to float.s0   Cannot convert masked element to a Python float..N(   s   selfs   unmasks   _masks   Nones   MAErrors   floats   raw_data(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   __float__  s
     
c         C   s?   |  i ƒ  |  i t j	 o t d ‚ n t |  i ƒ  d ƒ Sd S(   s   Convert self to int.s.   Cannot convert masked element to a Python int..N(   s   selfs   unmasks   _masks   Nones   MAErrors   ints   raw_data(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __int__  s
     
c         C   sû   |  i i d j o
 f  } n |  i } |  i | } |  i i ƒ  } |  i i	 ƒ  } t | ƒ t i j ok | t j o" t | d | d d d | ƒ} n5 t | d | d d d | d | | d |  i ƒ  ƒ} | Sn& | t j p	 | | o | Sn t Sd S(	   s    Get copy of item described by i.i    s   typecodes   copyi   s	   savespaces   masks
   fill_valueN(   s   selfs   _datas   ranks   is   _masks   ms   douts
   spacesavers   sss   typecodes   tcs   types   Numerics	   ArrayTypes   Nones   arrays   results
   fill_values   masked(   s   selfs   is   douts   ms   sss   results   tc(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __getitem__&  s      
	"c         C   s�   |  i } |  i | | !} |  i i ƒ  } |  i i	 ƒ  } | t j o  t | d | d d d | ƒSn6 t | d | d d d | d | | | !d |  i ƒ  ƒSd S(   s#   Get copy of slice described by i, js   typecodes   copyi   s	   savespaces   masks
   fill_valueN(   s   selfs   _masks   ms   _datas   is   js   douts
   spacesavers   sss   typecodes   tcs   Nones   arrays
   fill_value(   s   selfs   is   js   douts   ms   sss   tc(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __getslice__:  s     	 c         C   sU  |  t j o t d ‚ n |  i i d j o
 f  } n | t j oQ |  i t j o" t	 |  i i
 ƒ |  _ d |  _ n |  i ƒ  d |  i | <d Sn t | ƒ } t | ƒ i |  i i ƒ  ƒ } | |  i | <| t j o/ |  i t j	 o |  i ƒ  d |  i | <qQnJ |  i t j o" t	 |  i i
 ƒ |  _ d |  _ n |  i ƒ  | |  i | <d S(   sF   Set item described by index. If value is masked, mask those locations.s    Cannot alter the masked element.i    i   N(   s   selfs   maskeds   MAErrors   _datas   ranks   indexs   values   _masks   Nones   make_mask_nones   shapes   _shared_masks   unshare_masks   getmasks   ms   filleds   astypes   typecode(   s   selfs   indexs   values   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __setitem__J  s0     



c         C   s0  |  t j o t d ‚ n | t j oJ |  i t j o" t |  i i ƒ |  _ d |  _	 n d |  i | | +d Sn t | ƒ } t | ƒ i |  i i ƒ  ƒ } | |  i | | +| t j o2 |  i t j	 o |  i ƒ  d |  i | | +q,nC |  i t j o" t |  i i ƒ |  _ d |  _	 n | |  i | | +d S(   s8   Set slice i:j; if value is masked, mask those locations.s    Cannot alter the masked element.i    i   N(   s   selfs   maskeds   MAErrors   values   _masks   Nones   make_mask_nones   _datas   shapes   _shared_masks   is   js   getmasks   ms   filleds   astypes   typecodes   unshare_mask(   s   selfs   is   js   values   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __setslice__g  s(     
c         C   s4   |  i i d j o t |  i ƒ Sn t d ƒ ‚ d S(   se   Return length of first dimension. This is weird but Python's
         slicing behavior depends on it.i    s*   length undefined for a rank-0 MaskedArray.N(   s   selfs   _datas   ranks   lens
   ValueError(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __len__~  s     c         C   s   t  |  | ƒ Sd S(   s   Return bitwise_andN(   s   bitwise_ands   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __and__†  s     c         C   s   t  |  | ƒ Sd S(   s   Return bitwise_orN(   s
   bitwise_ors   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __or__Š  s     c         C   s   t  |  | ƒ Sd S(   s   Return bitwise_xorN(   s   bitwise_xors   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __xor__Ž  s     c         C   s   t  |  ƒ Sd S(   s   Return absolute(self)N(   s   absolutes   self(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __abs__–  s     c         C   s   t  |  ƒ Sd S(   s   Return negative(self)N(   s   negatives   self(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __neg__š  s     c         C   s   t  |  ƒ Sd S(   s   Return array(self)N(   s   arrays   self(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __pos__ž  s     c         C   s   t  |  | ƒ Sd S(   s   Return add(self, other)N(   s   adds   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __add__¢  s     c         C   s   t  |  | ƒ Sd S(   s   Return remainder(self, other)N(   s	   remainders   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __mod__¨  s     c         C   s   t  | |  ƒ Sd S(   s   Return remainder(other, self)N(   s	   remainders   others   self(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __rmod__¬  s     c         C   s   t  |  | ƒ Sd  S(   N(   s
   left_shifts   selfs   n(   s   selfs   n(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   __lshift__°  s    c         C   s   t  |  | ƒ Sd  S(   N(   s   right_shifts   selfs   n(   s   selfs   n(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   __rshift__³  s    c         C   s   t  |  | ƒ Sd S(   s   Return subtract(self, other)N(   s   subtracts   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __sub__¶  s     c         C   s   t  | |  ƒ Sd S(   s   Return subtract(other, self)N(   s   subtracts   others   self(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __rsub__º  s     c         C   s   t  |  | ƒ Sd S(   s   Return multiply(self, other)N(   s   multiplys   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __mul__¾  s     c         C   s   t  |  | ƒ Sd S(   s   Return divide(self, other)N(   s   divides   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __div__Ä  s     c         C   s   t  | |  ƒ Sd S(   s   Return divide(other, self)N(   s   divides   others   self(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __rdiv__È  s     c         C   s   t  |  | ƒ Sd S(   s   Return divide(self, other)N(   s   true_divides   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __truediv__Ì  s     c         C   s   t  | |  ƒ Sd S(   s   Return divide(other, self)N(   s   true_divides   others   self(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __rtruediv__Ð  s     c         C   s   t  |  | ƒ Sd S(   s   Return divide(self, other)N(   s   floor_divides   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __floordiv__Ô  s     c         C   s   t  | |  ƒ Sd S(   s   Return divide(other, self)N(   s   floor_divides   others   self(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __rfloordiv__Ø  s     c         C   s   t  |  | | ƒ Sd S(   s    Return power(self, other, third)N(   s   powers   selfs   others   third(   s   selfs   others   third(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __pow__Ü  s     c         C   s   t  |  ƒ Sd S(   s   Return sqrt(self)N(   s   sqrts   self(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __sqrt__à  s     c         C   s  |  i i ƒ  } t | d ƒ } | i ƒ  } | | j o n<| t d j o1 | t d j o | i	 | ƒ } qvt
 d ‚ nú | t d j oU | t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qvt
 d ‚ n” | t d j oy | t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qvt
 d ‚ n
 t
 d ‚ |  i t j o7 |  i | 7_ t | ƒ } | |  _ | t j	 |  _ nI t |  t | d t | ƒ ƒƒ } | i ƒ  |  _ | i ƒ  |  _ d |  _ |  Sd S(	   s   Add other to self in place.i    s   Integers&   Incorrect type for in-place operation.s   Floats   Complexs   maski   N(   s   selfs   _datas   typecodes   ts   filleds   others   fs   t1s	   typecodess   astypes	   TypeErrors   _masks   Nones   getmasks   ms   _shared_masks   adds   masked_arrays   results   raw_datas   raw_mask(   s   selfs   others   fs   ms   t1s   ts   result(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __iadd__ä  sF     		!	c         C   s  |  i i ƒ  } t | d ƒ } | i ƒ  } | | j o n<| t d j o1 | t d j o | i	 | ƒ } qvt
 d ‚ nú | t d j oU | t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qvt
 d ‚ n” | t d j oy | t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qvt
 d ‚ n
 t
 d ‚ |  i t j o7 |  i | 9_ t | ƒ } | |  _ | t j	 |  _ nI t |  t | d t | ƒ ƒƒ } | i ƒ  |  _ | i ƒ  |  _ d |  _ |  Sd S(	   s   Add other to self in place.i    s   Integers&   Incorrect type for in-place operation.s   Floats   Complexs   maski   N(   s   selfs   _datas   typecodes   ts   filleds   others   fs   t1s	   typecodess   astypes	   TypeErrors   _masks   Nones   getmasks   ms   _shared_masks   multiplys   masked_arrays   results   raw_datas   raw_mask(   s   selfs   others   fs   ms   t1s   ts   result(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __imul__  sF     		!	c         C   s  |  i i ƒ  } t | d ƒ } | i ƒ  } | | j o n<| t d j o1 | t d j o | i	 | ƒ } qvt
 d ‚ nú | t d j oU | t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qvt
 d ‚ n” | t d j oy | t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qvt
 d ‚ n
 t
 d ‚ |  i t j o7 |  i | 8_ t | ƒ } | |  _ | t j	 |  _ nI t |  t | d t | ƒ ƒƒ } | i ƒ  |  _ | i ƒ  |  _ d |  _ |  Sd S(	   s"   Subtract other from self in place.i    s   Integers&   Incorrect type for in-place operation.s   Floats   Complexs   maski   N(   s   selfs   _datas   typecodes   ts   filleds   others   fs   t1s	   typecodess   astypes	   TypeErrors   _masks   Nones   getmasks   ms   _shared_masks   subtracts   masked_arrays   results   raw_datas   raw_mask(   s   selfs   others   fs   ms   t1s   ts   result(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __isub__:  sF     		!	c         C   sæ  |  i i ƒ  } t | d ƒ } | i ƒ  } | | j o n<| t d j o1 | t d j o | i	 | ƒ } qvt
 d ‚ nú | t d j oU | t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qvt
 d ‚ n” | t d j oy | t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qv| t d j o | i	 | ƒ } qvt
 d ‚ n
 t
 d ‚ t | ƒ } t |  t | d | ƒƒ } | i ƒ  |  _ | i ƒ  } | |  i j	 o | |  _ d |  _ n |  Sd S(	   s   Divide self by other in place.i    s   Integers&   Incorrect type for in-place operation.s   Floats   Complexs   maski   N(   s   selfs   _datas   typecodes   ts   filleds   others   fs   t1s	   typecodess   astypes	   TypeErrors   getmasks   mos   divides   masked_arrays   results   raw_datas   raw_masks   dms   _masks   _shared_mask(   s   selfs   others   dms   fs   t1s   ts   mos   result(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __idiv__e  sB     		c         C   s   t  |  | ƒ Sd  S(   N(   s   equals   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __eq__Œ  s    c         C   s   t  |  | ƒ Sd  S(   N(   s	   not_equals   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __ne__�  s    c         C   s   t  |  | ƒ Sd  S(   N(   s   lesss   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __lt__’  s    c         C   s   t  |  | ƒ Sd  S(   N(   s
   less_equals   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __le__•  s    c         C   s   t  |  | ƒ Sd  S(   N(   s   greaters   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __gt__˜  s    c         C   s   t  |  | ƒ Sd  S(   N(   s   greater_equals   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __ge__›  s    c         C   s)   |  i i | ƒ } t | d |  i ƒSd S(   s#   return self as array of given type.s   maskN(   s   selfs   _datas   astypes   tcs   ds   arrays   _mask(   s   selfs   tcs   d(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   astypež  s     c         C   s   |  i i ƒ  Sd S(   s‰   Returns the raw data field, byte_swapped. Included for consistency
         with Numeric but doesn't make sense in this context.
        N(   s   selfs   _datas   byte_swapped(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   byte_swapped¤  s     c         C   sl   t  i |  i ƒ } |  i t j o t | ƒ Sn9 d t  i |  i ƒ } t  i	 | | ƒ } t | d d ƒSd S(   s'   A 1-D array of all the non-masked data.i   s   copyi    N(   s   Numerics   ravels   selfs   _datas   ds   _masks   Nones   arrays   ms   compresss   c(   s   selfs   ds   ms   c(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   compressedª  s     c   
      C   sI  |  i } |  i i } t | ƒ } | t j o~ | d j o d Sn | d j o | d Sn | t j o t
 d „  | ƒ Sq¬ | | } t | ƒ } | | =t | ƒ | Sn | t j o] t i | ƒ i t ƒ } t | ƒ } | d j o | d }	 n t i i
 | ƒ }	 | |	 Sn0 t | | ƒ } t | i t ƒ | ƒ }	 | |	 Sd S(   s?   Count of the non-masked elements in a, or along a certain axis.i    i   c         C   s   |  | S(   N(   s   xs   y(   s   xs   y(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   <lambda>¿  s    N(   s   selfs   _masks   ms   _datas   shapes   ss   lens   lss   Nones   axiss   reduces   ns   lists   ts   oness   Numerics   ravels   astypes   Ints   ws   sizes   n1s   n2s   adds   sum(
   s   selfs   axiss   ms   ns   ss   lss   ws   ts   n1s   n2(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   count´  s2     	
c         C   s   t  |  | ƒ Sd S(   s%   s.dot(other) = innerproduct(s, other)N(   s   innerproducts   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   dotÒ  s     c         C   s   |  i Sd S(   s   Get the current fill value.N(   s   selfs   _fill_value(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   fill_valueÖ  s     c         C   s   |  i } |  i } | t j o8 | i ƒ  o | SqW t i | d | i	 ƒ  d d ƒSn | } | t j o |  i } n |  t j o: t | t ƒ o t i | ƒ } n | } | i | _ n[ y8 t i | d | i	 ƒ  d d ƒ} t i | | | ƒ Wn t i | | | f ƒ } n X| Sd S(   sð   A Numeric array with masked values filled. If fill_value is None,
           use self.fill_value(). 
           
           If mask is None, copy data only if not contiguous.
           Result is always a contiguous, Numeric array.
        s   typecodes   copyi   N(   s   selfs   _datas   ds   _masks   ms   Nones   iscontiguouss   Numerics   arrays   typecodes
   fill_values   values   _fill_values   maskeds
   isinstances   _MaskedPrintOptions   results   shapes   putmasks   objs   choose(   s   selfs
   fill_values   results   ds   ms   value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   filledÚ  s*     		#!c         C   s    t  |  i ƒ t  |  i ƒ f Sd S(   s)   Return the ids of the data and mask areasN(   s   ids   selfs   _datas   _mask(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   idsù  s     c         C   s   |  i i ƒ  Sd S(   s   Is the data contiguous?N(   s   selfs   _datas   iscontiguous(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   iscontiguousý  s     c         C   s   |  i i ƒ  Sd S(   s   Item size of each data item.N(   s   selfs   _datas   itemsize(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   itemsize  s     c         C   sG   |  i } | t j o | Sn& | i ƒ  o | Sn t i |  i ƒ Sd S(   s1   Return the data mask, or None. Result contiguous.N(   s   selfs   _masks   ms   Nones   iscontiguouss   Numerics   array(   s   selfs   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   mask  s     	c         C   s   t  |  | ƒ Sd S(   s'   s.outer(other) = outerproduct(s, other)N(   s   outerproducts   selfs   other(   s   selfs   other(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   outer  s     c         C   sŽ   t  i |  i ƒ  ƒ } |  i t j o
 | } n t  i d |  i | ƒ } t	 | ƒ t | ƒ j o t d ‚ n t  i |  i | t | ƒ ƒ d S(   s\   Set the non-masked entries of self to filled(values). 
           No change to mask
        i   s(   x.put(values) incorrect count of values.N(   s   Numerics   aranges   selfs   sizes   iotas   _masks   Nones   inds   compresss   lens   valuess   MAErrors   puts   _datas   filled(   s   selfs   valuess   inds   iota(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   put  s     
c         C   s–   |  i t j	 o‚ t i |  i ƒ  ƒ } t i |  i | ƒ } t	 | ƒ t | ƒ j o t d ‚ n t i |  i | t | ƒ ƒ t |  _ d |  _ n d S(   s\   Set the masked entries of self to filled(values). 
           Mask changed to None.
        s(   x.put(values) incorrect count of values.i    N(   s   selfs   _masks   Nones   Numerics   aranges   sizes   iotas   compresss   inds   lens   valuess   MAErrors   puts   _datas   filleds   _shared_mask(   s   selfs   valuess   inds   iota(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   putmask   s     	c         C   s   |  i Sd S(   s_    The raw data; portions may be meaningless. 
            May be noncontiguous. Expert use only.N(   s   selfs   _data(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   raw_data-  s     c         C   s   |  i Sd S(   sh    The raw mask; portions may be meaningless. 
            May be noncontiguous. Expert use only.
        N(   s   selfs   _mask(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   raw_mask2  s     c         C   s   d Sd S(   s   Deprecated.  returns 0.i    N(    (   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   spacesaver8  s     c         C   s   d S(   s   Deprecated.N(    (   s   selfs   value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   savespace<  s     c         C   s0   | t j o t |  i ƒ  ƒ } n | |  _ d S(   s3   Set the fill value to v. Omit v to restore default.N(   s   vs   Nones   default_fill_values   selfs   raw_datas   _fill_value(   s   selfs   v(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   set_fill_value@  s     c         C   sT   |  i i } | t j o/ t | ƒ d j o d SqP t d „  | ƒ Sn	 | | Sd S(   s5   Number of elements in array, or in a particular axis.i    i   c         C   s   |  | S(   N(   s   xs   y(   s   xs   y(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   <lambda>M  s    N(   s   selfs   _datas   shapes   ss   axiss   Nones   lens   reduce(   s   selfs   axiss   s(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   sizeF  s     c         C   s   |  i i ƒ  Sd S(   s.   spacesaver() queries the spacesaver attribute.N(   s   selfs   _datas
   spacesaver(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   spacesaverQ  s     c         C   s   |  i i ƒ  Sd  S(   N(   s   selfs   _datas   typecode(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   typecodeU  s    c         C   s   |  i | ƒ i ƒ  Sd S(   s   Convert to listN(   s   selfs   filleds
   fill_values   tolist(   s   selfs
   fill_value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   tolistX  s     c         C   s   |  i | ƒ i ƒ  Sd S(   s   Convert to stringN(   s   selfs   filleds
   fill_values   tostring(   s   selfs
   fill_value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   tostring\  s     c         C   sT   |  i t j o d Sn t |  i d d ƒ} | t j o t |  _ d |  _ n d S(   s%   Replace the mask by None if possible.Ns   flagi   i    (   s   selfs   _masks   Nones	   make_masks   ms   _shared_mask(   s   selfs   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   unmask`  s      	c         C   s9   |  i o+ t |  i d d d d ƒ|  _ d |  _ n d S(   s'   If currently sharing mask, make a copy.s   copyi   s   flagi    N(   s   selfs   _shared_masks	   make_masks   _mask(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   unshare_maskh  s     
s   docs#   tuple giving the shape of the arrays   Access array in flat form.s!   Access the real part of the arrays&   Access the imaginary part of the array(^   s   __name__s
   __module__s   __doc__s   op_prioritys   handler_cache_keys   Nones   __init__s	   __array__s   infos
   _get_shapes
   _set_shapes	   _get_flats	   _set_flats	   _get_reals	   _set_reals   _get_imaginarys   _set_imaginarys   __str__s   __repr__s	   __float__s   __int__s   __getitem__s   __getslice__s   __setitem__s   __setslice__s   __len__s   __and__s   __or__s   __xor__s   __rand__s   __ror__s   __rxor__s   __abs__s   __neg__s   __pos__s   __add__s   __radd__s   __mod__s   __rmod__s
   __lshift__s
   __rshift__s   __sub__s   __rsub__s   __mul__s   __rmul__s   __div__s   __rdiv__s   __truediv__s   __rtruediv__s   __floordiv__s   __rfloordiv__s   __pow__s   __sqrt__s   __iadd__s   __imul__s   __isub__s   __idiv__s   __eq__s   __ne__s   __lt__s   __le__s   __gt__s   __ge__s   astypes   byte_swappeds
   compresseds   counts   dots
   fill_values   filleds   idss   iscontiguouss   itemsizes   masks   outers   puts   putmasks   raw_datas   raw_masks
   spacesavers	   savespaces   set_fill_values   sizes   typecodes   tolists   tostrings   unmasks   unshare_masks   propertys   shapes   flats   reals	   imaginarys   imag(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   MaskedArray  s¾    X	
											
	/																													+	+	+	'									
						
															s   MaskedScalarc           B   s    t  Z d „  Z e e i ƒ Z RS(   Nc         C   s8   t  i |  d g d d g ƒf  |  i _ f  |  i _ d  S(   Ni    s   maski   (   s   MaskedArrays   __init__s   selfs   _datas   shapes   _mask(   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__  s    (   s   __name__s
   __module__s   __init__s   propertys   MaskedArrays
   _get_shapes   shape(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   MaskedScalar~  s   	c         C   s   t  |  t ƒ Sd S(   s9   Is x a masked array, that is, an instance of MaskedArray?N(   s
   isinstances   xs   MaskedArray(   s   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   isMaskedArrayˆ  s     f1.0000000000000001e-05f1e-08c         C   sÑ   t  t |  ƒ t | ƒ ƒ } t |  ƒ }
 t | ƒ }	 t t |
 d d d | ƒ| ƒ i
 t ƒ } t t |	 d d d | ƒd ƒ i
 t ƒ } t i t i | | ƒ | | t i | ƒ ƒ } t i t i | ƒ ƒ Sd S(   s¥   Returns true if all components of a and b are equal
        subject to given tolerances.
        If fill_value is 1, masked values considered equal.
        If fill_value is 0, masked values considered unequal.
        The relative error rtol should be positive and << 1.0
        The absolute error atol comes into play for those elements
        of b that are very small or zero; it says how small a must be also.
    s   copyi    s   maski   N(   s   mask_ors   getmasks   as   bs   ms   filleds   d1s   d2s   arrays
   fill_values   astypes   Floats   xs   ys   Numerics
   less_equals   absolutes   atols   rtols   ds   alltrues   ravel(   s   as   bs
   fill_values   rtols   atols   ds   ms   ys   xs   d2s   d1(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   allclose�  s     **0c         C   sà   t  t |  ƒ t | ƒ ƒ } | t j oD t |  ƒ } t | ƒ } t	 i
 | | ƒ } t	 i t	 i | ƒ ƒ Snq | oe t |  ƒ } t | ƒ } t	 i
 | | ƒ } t | d | d d ƒ} t	 i t	 i t | d ƒ ƒ ƒ Sn d Sd S(   s„   
        True if all entries of  a and b are equal, using 
        fill_value as a truth value where either or both are masked.
    s   masks   copyi    i   N(   s   mask_ors   getmasks   as   bs   ms   Nones   filleds   xs   ys   Numerics   equals   ds   alltrues   ravels
   fill_values   arrays   dm(   s   as   bs
   fill_values   ds   ms   dms   ys   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   allequal   s     #c   	   
   C   s¨   t  i } t |  | ƒ } | i ƒ  t d j ob t  i	 | | | ƒ | | | | ƒ ƒ } t | d d ƒ} t | d | d | d | d | ƒSn t | | | | ƒ Sd S(	   s´  
       masked_values(data, value, rtol=1.e-5, atol=1.e-8)
       Create a masked array; mask is None if possible.
       If copy==0, and otherwise possible, result
       may share data values with original array.
       Let d = filled(data, value). Returns d 
       masked where abs(data-value)<= atol + rtol * abs(value)
       if d is of a floating point type. Otherwise returns
       masked_object(d, value, copy, savespace)
    s   Floats   flagi   s   masks	   savespaces   copys
   fill_valueN(   s   Numerics   absolutes   abss   filleds   datas   values   ds   typecodes	   typecodess
   less_equals   atols   rtols   ms	   make_masks   arrays	   savespaces   copys   masked_object(	   s   datas   values   rtols   atols   copys	   savespaces   abss   ms   d(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_values´  s     	*c      
   C   sS   t  |  | ƒ } t t i | | ƒ d d ƒ} t | d | d | d | d | ƒSd S(   s5   Create array masked where exactly data equal to values   flagi   s   masks   copys	   savespaces
   fill_valueN(   s   filleds   datas   values   ds	   make_masks   Numerics   equals   dms   arrays   copys	   savespace(   s   datas   values   copys	   savespaces   dms   d(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_objectÊ  s
     c         C   s    t  t i |  | | | ƒ ƒ Sd S(   sq   Just like range() except it returns a array whose type can be specfied
    by the keyword argument typecode.
    N(   s   arrays   Numerics
   arrayranges   starts   stops   steps   typecode(   s   starts   stops   steps   typecode(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   arrayrangeÑ  s     c         C   s   t  t i |  | ƒ ƒ Sd S(   sA   Construct a masked array from a string. Result will have no mask.N(   s   masked_arrays   Numerics
   fromstrings   ss   t(   s   ss   t(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   fromstringÙ  s     c         C   sk   t  |  ƒ } | t j o& t i t |  ƒ | ƒ } t	 | ƒ Sn) t i t |  d ƒ | ƒ } t	 | | ƒ Sd S(   s   Left shift n bitsi    N(
   s   getmasks   as   ms   Nones   Numerics
   left_shifts   filleds   ns   ds   masked_array(   s   as   ns   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys
   left_shiftÝ  s     c         C   sk   t  |  ƒ } | t j o& t i t |  ƒ | ƒ } t	 | ƒ Sn) t i t |  d ƒ | ƒ } t	 | | ƒ Sd S(   s   Right shift n bitsi    N(
   s   getmasks   as   ms   Nones   Numerics   right_shifts   filleds   ns   ds   masked_array(   s   as   ns   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   right_shiftç  s     c         C   sn   t  |  ƒ } | t j	 o t i | | ƒ } n t t i t |  ƒ | ƒ d | ƒ} | i
 t |  ƒ ƒ | Sd S(   sw   resize(a, new_shape) returns a new array with the specified shape.
    The original array's total size can be any size.s   maskN(   s   getmasks   as   ms   Nones   Numerics   resizes	   new_shapes   arrays   filleds   results   set_fill_values
   fill_value(   s   as	   new_shapes   ms   result(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   resizeñ  s     $c         C   s±   t  |  ƒ } t | t i ƒ o! t | g t | ƒ | ƒ } n t
 |  ƒ } | t j	 o t i | | | ƒ } n t i | | | ƒ } t | | ƒ } | i t |  ƒ ƒ | Sd S(   s�   repeat elements of a repeats times along axis
       repeats is a sequence of length a.shape[axis]
       telling how many times to repeat each element.
    N(   s   filleds   as   afs
   isinstances   repeatss   typess   IntTypes   tuples   shapes   axiss   getmasks   ms   Nones   Numerics   repeats   ds   masked_arrays   results   set_fill_values
   fill_value(   s   as   repeatss   axiss   ds   results   afs   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   repeatû  s     !c         C   s   t  t i |  ƒ ƒ Sd S(   s<   identity(n) returns the identity matrix of shape n x n.
    N(   s   arrays   Numerics   identitys   n(   s   n(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   identity  s     c         C   s   t  t i |  | ƒ ƒ Sd S(   s„   indices(dimensions,typecode=None) returns an array representing a grid
    of indices with row-only, and column-only variation.
    N(   s   arrays   Numerics   indicess
   dimensionss   typecode(   s
   dimensionss   typecode(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   indices  s     c         C   s   t  t i |  | | ƒ ƒ Sd S(   s_   zeros(n, typecode=Int, savespace=0) = 
     an array of all zeros of the given length or shape.N(   s   arrays   Numerics   zeross   shapes   typecodes	   savespace(   s   shapes   typecodes	   savespace(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   zeros  s     c         C   s   t  t i |  | | ƒ ƒ Sd S(   s]   ones(n, typecode=Int, savespace=0) = 
     an array of all ones of the given length or shape.N(   s   arrays   Numerics   oness   shapes   typecodes	   savespace(   s   shapes   typecodes	   savespace(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   ones  s     c         C   s   t  |  ƒ }  |  i | ƒ Sd S(   s?   Count of the non-masked elements in a, or along a certain axis.N(   s   masked_arrays   as   counts   axis(   s   as   axis(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   count"  s     c   	      C   s  | t j	 o t d ‚ n t |  ƒ } t | ƒ } t | | ƒ } t
 |  d ƒ } t
 | d ƒ } | i ƒ  t d j o t t i | | ƒ | ƒ Sn t t i | d ƒ d d ƒ} t | | ƒ } | t j o t t i | | ƒ ƒ Sn/ t i | d | ƒ } t t i | | ƒ | ƒ Sd S(   s   a**bs   3-argument power not supported.i   s   Integeri    s   flagN(   s   thirds   Nones   MAErrors   getmasks   as   mas   bs   mbs   mask_ors   ms   filleds   fas   fbs   typecodes	   typecodess   masked_arrays   Numerics   powers	   make_masks
   less_equals   mds   where(	   s   as   bs   thirds   mds   mas   mbs   ms   fas   fb(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   power'  s      c         C   sZ   | t j o- t |  ƒ o |  i  ƒ  } q: t |  ƒ } n t |  d | d d d | ƒSd S(   s~   masked_array(a, mask=None) = 
       array(a, mask=mask, copy=0, fill_value=fill_value)
       Use fill_value(a) if None.
    s   masks   copyi    s
   fill_valueN(   s
   fill_values   Nones   isMaskedArrays   as   default_fill_values   arrays   mask(   s   as   masks
   fill_value(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_array:  s     c         C   s  t  |  ƒ }  |  i ƒ  }	 |  i } | f  j o d f } n | t j o8|	 t j oˆ | t j o1 t i	 |  i
 ƒ  i ƒ }
 t	 d „  | d ƒ } q|t | d ƒ i } t i i |  i
 ƒ  i | ƒ }
 t i i | ƒ } ~ qk| t j oF t i	 |  i ƒ }
 t i |	 d d f ƒ i } t i i | ƒ } ~ qkt t | d ƒ t i d |	 ƒi } t i	 |  i | ƒ }
 t i	 | ƒ } ~ nì|	 t j of| t j o- | | d } t i i |  i
 ƒ  | ƒ }
 qkt | d ƒ } | i } | f  j o d f } n | | j oG t i | t d d ƒ} t i	 |  | | ƒ }
 t i	 | | ƒ } ~ qk| | | f j o… | | } t g t | ƒ } t t t d ƒ | | <t d t t | ƒ ƒ d	 ƒ } t i	 |  | | ƒ }
 t i	 | | ƒ } ~ ~ qkt d
 ‚ ny| t j oF t i	 |  | ƒ }
 t i |	 d d f ƒ } t i i | | ƒ } ~ n&t | d ƒ } | i } | f  j o d f } n | | j oG t | t d |	 d d ƒ} t i	 |  | | ƒ }
 t i	 | | ƒ } n� | | | f j o | | } t g t | ƒ } t t t d ƒ | | <t d t t | ƒ ƒ d ƒ } t i	 |  | | ƒ }
 t i	 | | ƒ } n
 t d
 ‚ ~ t |
 | ƒ } ~
 t! | t" ƒ or | i# ƒ  | o] t! | t" ƒ o t  | ƒ } n | i | i j o t% | i t ƒ | } n | i# ƒ  qÿn | o | | f Sn | Sd S(   sJ  average(a, axis=0, weights=None)
       Computes average along indicated axis. 
       If axis is None, average over the entire array
       Inputs can be integer or floating types; result is of type Float.
       
       If weights are given, result is sum(a*weights)/(sum(weights)*1.0)
       weights must have a's shape or be the 1-d with length the size
       of a in the given axis.

       If returned, return a tuple: the result and the sum of the weights 
       or count of values. Results will have the same shape.

       masked values in the weights will be set to 0.0
    i   c         C   s   |  | S(   N(   s   xs   y(   s   xs   y(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   <lambda>e  s    f1.0f0.0s   masks   copyi    s   w[s   ] * ones(ash, Float)s   average: weights wrong shape.s(   ] * masked_array(ones(ash, Float), mask)N(&   s   masked_arrays   as   masks   shapes   ashs   axiss   Nones   weightss   adds   reduces   raw_datas   flats   ns   ds   filleds   ws   Numerics   zreduces   chooses   arrays   Floats   wshs   nis   NewAxiss   lens   rs   slices   evals   reprs   tuples
   ValueErrors   divides   results
   isinstances   MaskedArrays   unmasks   returneds   ones(   s   as   axiss   weightss   returneds   results   nis   ashs   ds   wshs   masks   ns   rs   w(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   averageM  s¢     	$	
 
	
 	
c         C   s  t  t |  d ƒ d ƒ } | t j o d }
 d } n0 t  | ƒ }
 t | ƒ } | t	 j o
 d } n | t j o d }	 d } n0 t  | ƒ }	 t | ƒ } | t	 j o
 d } n t i | |	 |
 f ƒ } t i | | | f ƒ } t |  ƒ } t t | | ƒ d d d d ƒ} t | | ƒ Sd S(   s  where(condition, x, y) is x where condition is nonzero, y otherwise.
       condition must be convertible to an integer array.
       Answer is always the shape of condition.
       The type depends on x and y. It is integer if both x and y are 
       the value masked.
    i    i   s   copys   flagN(   s   filleds	   not_equals	   conditions   fcs   xs   maskeds   xvs   xms   getmasks   Nones   ys   yvs   yms   Numerics   chooses   ds   mds   ms	   make_masks   mask_ors   masked_array(   s	   conditions   xs   ys   mds   yms   ds   xms   ms   fcs   yvs   xv(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   where¹  s*     
 

 
!c         C   s×   d „  }
 d „  } t |  d ƒ } g  i } | D] }	 | | |	 ƒ ƒ q/ ~ } g  i } | D] }	 | |
 |	 ƒ ƒ q\ ~ } t i | | ƒ } t i | | ƒ } t t | t |  ƒ ƒ d d d d ƒ} t | | ƒ Sd S(   s=   Returns array shaped like indices with elements chosen from tc         C   s#   |  t j o d Sn t |  ƒ Sd  S(   Ni   (   s   xs   maskeds   filled(   s   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   fmask×  s     c         C   s>   |  t j o d Sn t |  ƒ } | t j o d Sn | Sd  S(   Ni   i    (   s   xs   maskeds   getmasks   ms   None(   s   xs   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   nmaskÚ  s      i    s   copys   flagi   N(   s   fmasks   nmasks   filleds   indicess   cs   appends   _[1]s   ts   xs   maskss   as   Numerics   chooses   ds   ms	   make_masks   mask_ors   getmasks   masked_array(   s   indicess   ts   as   cs   nmasks   ds   ms   maskss   _[1]s   xs   fmask(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   chooseÕ  s     		--'c         C   sD   t  |  d ƒ } t t | ƒ | ƒ } t t  | ƒ d | d | ƒSd S(   sj   Return x as an array masked where condition is true. 
       Also masked where x or condition masked.
    i   s   copys   maskN(	   s   filleds	   conditions   cms   mask_ors   getmasks   xs   ms   arrays   copy(   s	   conditions   xs   copys   cms   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_whereç  s     c         C   s   t  t |  | ƒ |  | ƒ Sd S(   s3   masked_greater(x, value) = x masked where x > valueN(   s   masked_wheres   greaters   xs   values   copy(   s   xs   values   copy(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_greaterï  s     c         C   s   t  t |  | ƒ |  | ƒ Sd S(   s:   masked_greater_equal(x, value) = x masked where x >= valueN(   s   masked_wheres   greater_equals   xs   values   copy(   s   xs   values   copy(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_greater_equaló  s     c         C   s   t  t |  | ƒ |  | ƒ Sd S(   s0   masked_less(x, value) = x masked where x < valueN(   s   masked_wheres   lesss   xs   values   copy(   s   xs   values   copy(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_less÷  s     c         C   s   t  t |  | ƒ |  | ƒ Sd S(   s7   masked_less_equal(x, value) = x masked where x <= valueN(   s   masked_wheres
   less_equals   xs   values   copy(   s   xs   values   copy(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_less_equalû  s     c         C   sP   t  |  d ƒ } t i | | ƒ } t | t |  ƒ ƒ } t
 | d | d | ƒSd S(   s6   masked_not_equal(x, value) = x masked where x != valuei    s   masks   copyN(   s   filleds   xs   ds   Numerics	   not_equals   values   cs   mask_ors   getmasks   ms   arrays   copy(   s   xs   values   copys   cs   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_not_equalÿ  s
     c         C   sP   t  |  d ƒ } t i | | ƒ } t | t |  ƒ ƒ } t
 | d | d | ƒSd S(   s{   masked_equal(x, value) = x masked where x == value
       For floating point consider masked_values(x, value) instead.
    i    s   masks   copyN(   s   filleds   xs   ds   Numerics   equals   values   cs   mask_ors   getmasks   ms   arrays   copy(   s   xs   values   copys   cs   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_equal  s
     c         C   s‹   | | j  o | } | } | } n t |  d ƒ } t i t i | | ƒ t i	 | | ƒ ƒ } t | t |  ƒ ƒ } t | d | d | ƒSd S(   sj   x with mask of all values of x that are inside [v1,v2]
       v1 and v2 can be given in either order.
    i    s   masks   copyN(   s   v2s   v1s   ts   filleds   xs   ds   Numerics   logical_ands
   less_equals   greater_equals   cs   mask_ors   getmasks   ms   arrays   copy(   s   xs   v1s   v2s   copys   cs   ds   ms   t(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_inside  s     
*c         C   s‹   | | j  o | } | } | } n t |  d ƒ } t i t i | | ƒ t i	 | | ƒ ƒ } t | t |  ƒ ƒ } t | d | d | ƒSd S(   sk   x with mask of all values of x that are outside [v1,v2]
       v1 and v2 can be given in either order.
    i    s   masks   copyN(   s   v2s   v1s   ts   filleds   xs   ds   Numerics
   logical_ors   lesss   greaters   cs   mask_ors   getmasks   ms   arrays   copy(   s   xs   v1s   v2s   copys   cs   ds   ms   t(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   masked_outside  s     
*c         C   s_   t  |  ƒ } t i t |  ƒ | ƒ } | t j o t	 | ƒ Sn t	 | d t i | | ƒ ƒSd S(   s   Copy of a with a new shape.s   maskN(
   s   getmasks   as   ms   Numerics   reshapes   filleds   newshapes   ds   Nones   masked_array(   s   as   newshapes   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   reshape)  s     c         C   sY   t  |  ƒ } t i t |  ƒ ƒ } | t j o t | ƒ Sn t | d t i | ƒ ƒSd S(   s-   a as one-dimensional, may share data and masks   maskN(	   s   getmasks   as   ms   Numerics   ravels   filleds   ds   Nones   masked_array(   s   as   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   ravel2  s     c         C   s¿   g  } x! |  D] } | i t | ƒ ƒ q Wt i | | ƒ } x0 |  D] } t | ƒ t	 j	 o PqC qC Wt
 | ƒ Sg  } x! |  D] } | i t | ƒ ƒ q| Wt i | | ƒ } t
 | d | ƒSd S(   s+   Concatenate the arrays along the given axiss   maskN(   s   ds   arrayss   xs   appends   filleds   Numerics   concatenates   axiss   getmasks   Nones   masked_arrays   dms   getmaskarray(   s   arrayss   axiss   dms   ds   x(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   concatenate;  s"        	
 c         C   sz   t  |  ƒ } t |  ƒ i ƒ  } | t j o t t i | | | ƒ ƒ Sn/ t t i | | | ƒ d t i | | | ƒ ƒSd S(   s;   take(a, indices, axis=0) returns selection of items from a.s   maskN(   s   getmasks   as   ms   masked_arrays   raw_datas   ds   Nones   Numerics   takes   indicess   axis(   s   as   indicess   axiss   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   takeK  s     c         C   sk   t  |  ƒ } t |  ƒ } | t j o t t i | | ƒ ƒ Sn) t t i | | ƒ d t i | | ƒ ƒSd S(   s9   transpose(a, axes=None) reorder dimensions per tuple axess   maskN(
   s   getmasks   as   ms   filleds   ds   Nones   masked_arrays   Numerics	   transposes   axes(   s   as   axess   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys	   transposeU  s     c         C   s{   |  i ƒ  } t | ƒ } t | ƒ } t i	 | | | ƒ t
 |  ƒ } | t j	 o' |  i ƒ  t i	 |  i ƒ  | d ƒ n d S(   s{   put(a, indices, values) sets storage-indexed locations to corresponding values. values and indices are filled if necessary.i    N(   s   as   raw_datas   ds   filleds   indicess   inds   valuess   vs   Numerics   puts   getmasks   ms   Nones   unshare_masks   raw_mask(   s   as   indicess   valuess   ds   ms   inds   v(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   put_  s     
c         C   sv   | t j o d Sn t i |  i ƒ  | | ƒ t |  ƒ } | t j o d Sn |  i	 ƒ  t i |  i
 ƒ  | d ƒ d S(   s0   put (a, mask, values) sets a where mask is true.Ni    (   s   masks   Nones   Numerics   putmasks   as   raw_datas   valuess   getmasks   ms   unshare_masks   raw_mask(   s   as   masks   valuess   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   putmaskj  s      
c         C   s„   t  |  d ƒ } t  | d ƒ } t | i ƒ d j o d f | _ n t | i ƒ d j o d f | _ n t t i	 | | ƒ ƒ Sd S(   sþ   innerproduct(a,b) returns the dot product of two arrays, which has
    shape a.shape[:-1] + b.shape[:-1] with elements computed by summing the
    product of the elements from the last dimensions of a and b.
    Masked elements are replace by zeros.
    i    i   N(
   s   filleds   as   fas   bs   fbs   lens   shapes   masked_arrays   Numerics   innerproduct(   s   as   bs   fas   fb(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   innerproductt  s       c         C   sÉ   t  |  d ƒ i } t  | d ƒ i } t i | | ƒ } t	 |  ƒ } t	 | ƒ } | t j o
 | t j o t | ƒ Sn t |  ƒ } t | ƒ } t d t i d | d | ƒ d d ƒ} t | | ƒ Sd S(   s:   outerproduct(a,b) = {a[i]*b[j]}, has shape (len(a),len(b))i    i   s   copyN(   s   filleds   as   flats   fas   bs   fbs   Numerics   outerproducts   ds   getmasks   mas   mbs   Nones   masked_arrays   getmaskarrays	   make_masks   m(   s   as   bs   mas   ds   mbs   ms   fas   fb(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   outerproduct€  s     *c         C   s2   t  t |  d ƒ t i t | d ƒ d d ƒ ƒ Sd S(   sØ   dot(a,b) returns matrix-multiplication between a and b.  The product-sum
    is over the last dimension of a and the second-to-last dimension of b.
    Masked values are replaced by zeros. See also innerproduct.
    i    iÿÿÿÿiþÿÿÿN(   s   innerproducts   filleds   as   Numerics   swapaxess   b(   s   as   b(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   dotŽ  s     iÿÿÿÿc         C   sm   t  |  d ƒ } t | ƒ } | t j	 o t i | | | ƒ } n t i | t  | ƒ | ƒ } t | | ƒ Sd S(   sq   Select those parts of x for which condition is true.
       Masked values in condition are considered false.
    i    N(   s   filleds	   conditions   cs   getmasks   xs   ms   Nones   Numerics   compresss	   dimensions   ds   masked_array(   s	   conditions   xs	   dimensions   cs   ds   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   compress•  s     s   _minimum_operationc           B   s8   t  Z d  Z d „  Z e d „ Z d d „ Z d „  Z RS(   s   Object to calculate minimac         C   s   d S(   s`   minimum(a, b) or minimum(a)
           In one argument case returns the scalar minimum.
        N(    (   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__¢  s     c         C   sŸ   | t j oq t | ƒ } | t j o t t | ƒ i ƒ } | Sn | i	 ƒ  } t | ƒ d j o t Sq› t | i ƒ  ƒ Sn t t | | ƒ | | ƒ d Sd S(   s   Execute the call behavior.i    .N(   s   bs   Nones   getmasks   as   ms   mins   filleds   flats   ds
   compresseds   acs   lens   maskeds   raw_datas   wheres   less(   s   selfs   as   bs   ds   ms   ac(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__¨  s     i    c         C   s•   t  | ƒ } | t j o) t | ƒ } t t i i	 | | ƒ ƒ SnP t i i	 t | t | ƒ ƒ | ƒ } t i i	 | | ƒ } t | | t | ƒ ƒ Sd S(   s#   Reduce target along the given axis.N(   s   getmasks   targets   ms   Nones   filleds   ts   masked_arrays   Numerics   minimums   zreduces   axiss   minimum_fill_values   logical_ands
   fill_value(   s   selfs   targets   axiss   ms   t(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   reduce·  s     $c         C   s˜   t  | ƒ } t  | ƒ } | t j o
 | t j o
 t } n+ t | ƒ } t | ƒ } t i	 | | ƒ } t
 i i	 t | ƒ t | ƒ ƒ } t | | ƒ Sd S(   s<   Return the function applied to the outer product of a and b.N(   s   getmasks   as   mas   bs   mbs   Nones   ms   getmaskarrays
   logical_ors   outers   Numerics   minimums   filleds   ds   masked_array(   s   selfs   as   bs   mas   ds   mbs   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   outerÂ  s     
!(   s   __name__s
   __module__s   __doc__s   __init__s   Nones   __call__s   reduces   outer(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   _minimum_operation   s
    	s   _maximum_operationc           B   s8   t  Z d  Z d „  Z e d „ Z d d „ Z d „  Z RS(   s   Object to calculate maximac         C   s   d S(   s`   maximum(a, b) or maximum(a)
           In one argument case returns the scalar maximum.
        N(    (   s   self(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __init__Ó  s     c         C   sŸ   | t j oq t | ƒ } | t j o t t | ƒ i ƒ } | Sn | i	 ƒ  } t | ƒ d j o t Sq› t | i ƒ  ƒ Sn t t | | ƒ | | ƒ d Sd S(   s   Execute the call behavior.i    .N(   s   bs   Nones   getmasks   as   ms   maxs   filleds   flats   ds
   compresseds   acs   lens   maskeds   raw_datas   wheres   greater(   s   selfs   as   bs   ds   ms   ac(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   __call__Ù  s     i    c         C   s•   t  | ƒ } | t j o) t | ƒ } t t i i	 | | ƒ ƒ SnP t i i	 t | t | ƒ ƒ | ƒ } t i i	 | | ƒ } t | | t | ƒ ƒ Sd S(   s#   Reduce target along the given axis.N(   s   getmasks   targets   ms   Nones   filleds   ts   masked_arrays   Numerics   maximums   zreduces   axiss   maximum_fill_values   logical_ands
   fill_value(   s   selfs   targets   axiss   ms   t(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   reduceè  s     $c         C   s˜   t  | ƒ } t  | ƒ } | t j o
 | t j o
 t } n+ t | ƒ } t | ƒ } t i	 | | ƒ } t
 i i	 t | ƒ t | ƒ ƒ } t | | ƒ Sd S(   s<   Return the function applied to the outer product of a and b.N(   s   getmasks   as   mas   bs   mbs   Nones   ms   getmaskarrays
   logical_ors   outers   Numerics   maximums   filleds   ds   masked_array(   s   selfs   as   bs   mas   ds   mbs   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   outeró  s     
!(   s   __name__s
   __module__s   __doc__s   __init__s   Nones   __call__s   reduces   outer(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   _maximum_operationÑ  s
    	c         C   sv   | t j o t |  ƒ } n t |  | ƒ } t i | | ƒ } t
 |  ƒ t j o t | ƒ Sn t | | d d ƒSd S(   s±  If x does not have a mask, return a masked array formed from the 
       result of Numeric.sort(x, axis).
       Otherwise, fill x with fill_value. Sort it. 
       Set a mask where the result is equal to fill_value.
       Note that this may have unintended consequences if the data contains the
       fill value at a non-masked site.

       If fill_value is not given the default fill value for x's type will be
       used.
    s   copyi    N(   s
   fill_values   Nones   default_fill_values   xs   filleds   ds   Numerics   sorts   axiss   ss   getmasks   masked_arrays   masked_values(   s   xs   axiss
   fill_values   ds   s(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   sort  s    
 c         C   sk   t  i t |  ƒ | | | ƒ } t |  ƒ } | t
 j o t | | ƒ Sn  t | t  i | | | | ƒ ƒ Sd S(   s9   diagonal(a,k=0,axis1=0, axis2=1) = the k'th diagonal of aN(   s   Numerics   diagonals   filleds   as   ks   axis1s   axis2s   ds   getmasks   ms   Nones   masked_array(   s   as   ks   axis1s   axis2s   ms   d(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   diagonal  s     c         C   s#   t  |  | ƒ } t i | | ƒ Sd S(   sÊ   Treating masked values as if they have the value fill_value,
       return sort indices for sorting along given axis.
       if fill_value is None, use fill_value(x)
       Returns a Numeric array.
    N(   s   filleds   xs
   fill_values   ds   Numerics   argsorts   axis(   s   xs   axiss
   fill_values   d(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   argsort  s     c         C   s#   t  |  | ƒ } t i | | ƒ Sd S(   s  Treating masked values as if they have the value fill_value,
       return indices for minimum values along given axis.
       if fill_value is None, use fill_value(x).
       Returns a Numeric array if x has more than one dimension.
       Otherwise, returns a scalar index.
    N(   s   filleds   xs
   fill_values   ds   Numerics   argmins   axis(   s   xs   axiss
   fill_values   d(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   argmin'  s     c         C   sU   | t j o% t |  ƒ } y | } Wq2 q2 Xn t |  | ƒ } t i | | ƒ Sd S(   s$  Treating masked values as if they have the value fill_value,
       return sort indices for maximum along given axis.
       if fill_value is None, use -fill_value(x) if it exists.
       Returns a Numeric array if x has more than one dimension.
       Otherwise, returns a scalar index.
    N(	   s
   fill_values   Nones   default_fill_values   xs   filleds   ds   Numerics   argmaxs   axis(   s   xs   axiss
   fill_values   d(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   argmax1  s     c         C   s   t  t i |  | ƒ ƒ Sd S(   s+   apply f to s to create array as in Numeric.N(   s   masked_arrays   Numerics   fromfunctions   fs   s(   s   fs   s(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   fromfunctionA  s     c         C   sR   t  |  t ƒ o | t j p | |  i ƒ  j o |  Sn t |  d | d d ƒSd S(   s¥   asarray(data, typecode=None) = array(data, typecode=None, copy=0)
       Returns data if typecode if data is a MaskedArray and typecode None
       or the same.
    s   typecodes   copyi    N(   s
   isinstances   datas   MaskedArrays   typecodes   Nones   array(   s   datas   typecode(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   asarrayE  s     0i,  c         C   s7   t  |  t ƒ o |  i i } n t i |  ƒ } | Sd S(   s2   returns shape tuple for 'a'.  MaskedArray version.N(   s
   isinstances   as   MaskedArrays   _datas   shapes   ss   Numeric(   s   as   s(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   shapeR  s
     c         C   s;   t  |  t ƒ o t i |  i | ƒ Sn t i |  | ƒ Sd S(   s2   returns shape tuple for 'a'.  MaskedArray version.N(   s
   isinstances   as   MaskedArrays   Numerics   sizes   _datas   axis(   s   as   axis(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   sizeZ  s     c         C   s   t  i |  ƒ d S(   sB   Set the maximum # of elements for printing arrays. <=0  = no limitN(   s
   arrayprints   set_summarys   m(   s   m(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   set_print_limita  s     c           C   s   t  i ƒ  Sd S(   s3   Get the maximum # of elements for printing arrays. N(   s
   arrayprints   get_summary_threshhold(    (    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   get_print_limite  s     (®   s   __doc__s   numarray.numerics   numerics   Numerics   es   pis   NewAxiss   numarray.objectss   objectss   objs   numarray.arrayprints
   arrayprints   numarrays   strings   typess   syss	   Precisions   warningss	   _warningss   Int8s   MaskTypes   divide_tolerances	   Exceptions   MAErrors   _MaskedPrintOptions   masked_print_options   arrays   astypes   Float32s   default_real_fill_values	   Complex32s   default_complex_fill_values   default_character_fill_values   UnsignedInt8s   default_integer_fill_values   default_object_fill_values   default_fill_values   minimum_fill_values   maximum_fill_values   set_fill_values   getmasks   getmaskarrays   is_masks	   make_masks   make_mask_nones   create_masks   mask_ors   Nones   filleds
   fill_values   common_fill_values   domain_check_intervals
   domain_tans   domain_greaters   domain_greater_equals   masked_unary_operations   domain_safe_divides   domained_binary_operations   masked_binary_operations   sqrts   logs   log10s   exps	   conjugates   sins   coss   tans   arcsins   arccoss   arctans   sinhs   coshs   tanhs   absolutes   fabss   negatives   nonzeros   arounds   floors   ceils   sometrues   alltrues   logical_nots   adds   subtracts   reduces   multiplys   divides   true_divides   floor_divides	   remainders   fmods   hypots   arctan2s   equals	   not_equals
   less_equals   greater_equals   lesss   greaters   logical_ands
   logical_ors   logical_xors   bitwise_ands
   bitwise_ors   bitwise_xors   ranks   shapes   sizes   UsesOpPrioritys   MaskedArrays   MaskedScalars   maskeds   isMaskedArrays   isarrays   isMAs   allcloses   allequals   masked_valuess   masked_objects
   arrayranges   aranges
   fromstrings
   left_shifts   right_shifts   resizes   repeats   identitys   indicess   Ints   zeross   oness   counts   powers   masked_arrays   sums   products   averages   wheres   chooses   masked_wheres   masked_greaters   masked_greater_equals   masked_lesss   masked_less_equals   masked_not_equals   masked_equals   masked_insides   masked_outsides   reshapes   ravels   concatenates   takes	   transposes   puts   putmasks   innerproducts   outerproducts   dots   compresss   _minimum_operations   minimums   _maximum_operations   maximums   sorts   diagonals   argsorts   argmins   argmaxs   fromfunctions   asarrays   __MaxElementss   set_print_limits   get_print_limit(œ   s	   make_masks   create_masks   lesss   putmasks   masked_insides   products   shapes   default_object_fill_values   _maximum_operations   masked_arrays   set_print_limits   adds   chooses   NewAxiss   ravels   arounds   ceils   oness   ranks   domained_binary_operations   strings   isarrays
   arrayranges
   bitwise_ors   MAErrors   Numerics   make_mask_nones   fmods   indicess   bitwise_ands   wheres   argmaxs   MaskedArrays   coshs   hypots   logical_ands   aranges   allcloses   nonzeros   asarrays   sums   multiplys   maskeds   default_real_fill_values   filleds   concatenates   powers   masked_greater_equals	   transposes   diagonals   masked_equals   sinhs   set_fill_values	   remainders   repeats   coss   objs   default_fill_values   masked_binary_operations   puts   equals   domain_safe_divides   argsorts   arccoss
   less_equals   masked_objects   masked_print_options   divides   domain_check_intervals   default_integer_fill_values   arctan2s   masked_unary_operations   MaskTypes   is_masks   arrays   sizes   logical_xors   logs   sometrues   subtracts   negatives   divide_tolerances   alltrues   masked_lesss   identitys
   domain_tans   masked_outsides   zeross   common_fill_values   pis   log10s	   _warningss   sorts   default_complex_fill_values   arcsins   logical_nots   resizes   MaskedScalars   counts	   not_equals   fromfunctions   argmins   tanhs   true_divides   maximums   get_print_limits   greaters   outerproducts
   left_shifts   domain_greaters   masked_less_equals
   logical_ors   minimums   masked_greaters	   conjugates   innerproducts   tans   absolutes   bitwise_xors   _minimum_operations   fabss   numarrays   masked_not_equals   reshapes   sqrts   arctans   getmasks   right_shifts   takes   maximum_fill_values   floor_divides   mask_ors   sins   domain_greater_equals   isMaskedArrays   compresss   masked_wheres   syss   floors   minimum_fill_values
   arrayprints   allequals   __MaxElementss   typess   default_character_fill_values   es   greater_equals
   fromstrings   averages
   fill_values   _MaskedPrintOptions   masked_valuess   exps   getmaskarrays   isMAs   dot(    (    sG   /mit/python/arch/i386_rh9/lib/python2.3/site-packages/numarray/ma/MA.pys   ?   sZ  																		


',K											ÿ ÿ ÿ r				
	
	
			l							

		
			/	/			
			