/usr/lib64/python2.6/site-packages/numpy/oldnumeric
NameSizeModeActions
tests/-0755rm
alter_code1.py84980644editdlrm
alter_code1.pyc97610644editdlrm
alter_code1.pyo97610644editdlrm
alter_code2.py46350644editdlrm
alter_code2.pyc61180644editdlrm
alter_code2.pyo61180644editdlrm
arrayfns.py25320644editdlrm
arrayfns.pyc44310644editdlrm
arrayfns.pyo44310644editdlrm
array_printer.py4560644editdlrm
array_printer.pyc6690644editdlrm
array_printer.pyo6690644editdlrm
compat.py28370644editdlrm
compat.pyc45580644editdlrm
compat.pyo45580644editdlrm
fft.py8690644editdlrm
fft.pyc10510644editdlrm
fft.pyo10510644editdlrm
fix_default_axis.py80350644editdlrm
fix_default_axis.pyc79790644editdlrm
fix_default_axis.pyo79790644editdlrm
functions.py36400644editdlrm
functions.pyc74800644editdlrm
functions.pyo74800644editdlrm
linear_algebra.py21800644editdlrm
linear_algebra.pyc34230644editdlrm
linear_algebra.pyo34230644editdlrm
ma.py756760644editdlrm
ma.pyc862410644editdlrm
ma.pyo862410644editdlrm
matrix.py16040644editdlrm
matrix.pyc23810644editdlrm
matrix.pyo23810644editdlrm
misc.py10450644editdlrm
misc.pyc14180644editdlrm
misc.pyo14180644editdlrm
mlab.py34580644editdlrm
mlab.pyc54650644editdlrm
mlab.pyo54650644editdlrm
precision.py42390644editdlrm
precision.pyc39930644editdlrm
precision.pyo39930644editdlrm
random_array.py114540644editdlrm
random_array.pyc142820644editdlrm
random_array.pyo142820644editdlrm
rng.py37540644editdlrm
rng.pyc69260644editdlrm
rng.pyo69260644editdlrm
rng_stats.py13410644editdlrm
rng_stats.pyc18810644editdlrm
rng_stats.pyo18810644editdlrm
setup.py3350644editdlrm
setup.pyc6660644editdlrm
setup.pyo6660644editdlrm
setupscons.py2820644editdlrm
setupscons.pyc6150644editdlrm
setupscons.pyo6150644editdlrm
typeconv.py16220644editdlrm
typeconv.pyc16350644editdlrm
typeconv.pyo16350644editdlrm
ufuncs.py12310644editdlrm
ufuncs.pyc18300644editdlrm
ufuncs.pyo18300644editdlrm
user_array.py1820644editdlrm
user_array.pyc3700644editdlrm
user_array.pyo3700644editdlrm
__init__.py8270644editdlrm
__init__.pyc10260644editdlrm
__init__.pyo10260644editdlrm
Edit: /usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyo (86241B)
Kc@sB dZddkZddkZddkiiZddkiiZddkl Z l Z l Z ddkl Z l Z ddklZlZddkiiZddkZhZhZeZedZdZdefd YZd fd YZed Zd Zd dZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'dddZ(dZ)dZ*e+dZ,dZ-dZ.dfd YZ/d!fd"YZ0d#fd$YZ1d%fd&YZ2d'fd(YZ3d)fd*YZ4d+fd,YZ5d-fd.YZ6e3ei7d/e2d/Z7e3ei8d0e1d/Z8e3ei9d0e1d/Z9e3ei:Z:e3ei;Z;e3ei<Z<e3ei=Z=e3ei>d/e0dZ>e3ei?d/e/d1d0Z?e3ei@d/e/d1d0Z@e3eiAZAe3eiBZBe3eiCd0e2d0ZCe3eiDd/e/d1d2d0d2ZDe3eiEZEe3eiFZFe3eiGZGe3eiHZHe3eiIZIe3eiJZJd3ZKe3eiLZMe3eiNZNe3eiOZOe3eiPZPe6eiQZQe6eiRZRe+eR_Se6eiTd4d4ZTe5eiUe4dd4ZUe5eiVe4dd4ZVe5eiWe4dd4ZWe5eiXe4dd4ZXe5eiYe4dd4ZYe6eiZZZe6ei[d/d0Z[e+e[_Se6ei\Z\e+e\_Se6ei]Z]e+e]_Se6ei^Z^e+e^_Se6ei_Z_e+e__Se6ei`Z`e+e`_Se6eiaZae+ea_Se6eibZbe6eibd4d4iSZce6eidZdediSZee6eifZfe6eigZge6eihZhe6eiiZid5Zjd6Zke+d7Zld8emfd9YZnenZod:ZpepZqepZrd4d;d<d=Zsd4d>Ztd;d<d4d?Zud4d@Zve+d4e+dAZwewZxdBZydCZzdDZ{dEZ|e+dFZ}dGZ~e+dHZedIZedJZe+dKZe+dLZee+dMZe+e+dNZe+e+dOZe+e+ddPZdQZe+dRdSZd4dTZd4dUZd4dVZd4dWZd4dXZd4dYZd4dZZd4d[Zd4d\Zd]Zd^Zdd_Zd`Ze+e+dRdaZe+dbZdRdcZddZdeZeZdfZeZdgZde+dhZdifdjYZeZdkfdlYZeZde+dmZddd4dnZddd4e+e+doZde+e+dpZde+e+dqZde+e+drZdsZe+dtZdduklZdvZdwZeeceo_eeeeo_eeeo_eeeo_eeeo_eeeeo_eeeo_dxZeeeo_[e+dyZeeeo_e+e+dzZeeeo_[ee;eo_eo_;eeeo_e+e+e+d{Zeeeo_e+e+e+d|Zeeeo_eeeo_eeeo_eeeo_eeeo_eeeeo_eeeo_eeeo_e+e+d}Zeeeo_[e+e+d~Zeeeo_[eeeo_eeeeo_eeeo_eeKeo_Keeeo_e+e+dZeeeo_ee}eo_ee|eo_|eeeo_eeeo_eeeo_eeeo_dZeeeo_eeeeo_eeeo_dZeeeo_eeeo_eeeo_eeeo_eeeo_e+e+e+dZe+e+e+dZeeeo_eeeo_eeeo_eeMeo_[[[endedd4ZddZde+ddZddZdS(s0MA: a facility for dealing with missing observations MA is generally used as a numpy.array look-alike. by Paul F. Dubois. Copyright 1999, 2000, 2001 Regents of the University of California. Released for unlimited redistribution. Adapted for numpy_core 2005 by Travis Oliphant and (mainly) Paul Dubois. iN(tnewaxistndarraytinf(tamaxtamin(tbool_t typecodesigz8tMAErrorcBs#eZddZdZeZRS(cCs*t|tp |f}n||_dS(sCreate an exceptionN(t isinstancettupletargs(tselfR ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt__init__s cCst|idS(s#Calculate the string representationi(tstrR (R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt__str__&sN(t__name__t __module__tNoneR Rt__repr__(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs  t_MaskedPrintOptioncBsMeZdZdZdZdZdZddZdZeZ RS(s<One instance of this class, masked_print_option, is created.cCs|i|d|_dS(s&Create the masked print option object.iN(t set_displayt_enabled(R tdisplay((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR -s cCs|iS(s#Show what prints for masked values.(t_display(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR2scCs ||_dS(s2set_display(s) sets what prints for masked values.N(R(R ts((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR6scCs|iS(s(Is the use of the display value enabled?(R(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytenabled:sicCs ||_dS(sSet the enabling flag to flag.N(R(R tflag((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytenable>scCs t|iS(N(R R(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRBs( RRt__doc__R RRRRRR(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR+s      s--g@xDyt-i?Bt?cCs#t|tiotSt|tipt|tiotSt|tiotSt|ti ot St|t pt|t o|i i}|tdjotS|tdjotS|tdjot S|tdjotS|tdjotitStStSdS(s7Function to calculate default fill value for an object.tFloattIntegertComplext CharactertUnsignedIntegerN(Rttypest FloatTypetdefault_real_fill_valuetIntTypetLongTypetdefault_integer_fill_valuet StringTypetdefault_character_fill_valuet ComplexTypetdefault_complex_fill_valuet MaskedArrayRtdtypetcharRtumathtabsolutetdefault_object_fill_value(tobjtx((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytdefault_fill_valueQs,&  cCst|tiotiSt|tipt|tiotiSt|t pt|t o[|i i }|t djotiS|t djotiS|t djotiSn tddS(sDFunction to calculate default fill value suitable for taking minima.RR R#s(Unsuitable type for calculating minimum.N(RR$R%tnumericRR'R(tsystmaxintR.RR/R0Rt TypeError(R4R5((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytminimum_fill_valueks&   cCst|tiot St|tipt|tio ti St|tpt|t oW|i i }|t djot S|t djo ti S|t djodSn t ddS(sDFunction to calculate default fill value suitable for taking maxima.RR R#is(Unsuitable type for calculating maximum.N(RR$R%RR'R(R8R9R.RR/R0RR:(R4R5((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytmaximum_fill_value|s&     cCs"t|o|i|ndS(s,Set fill value of a if it is a masked array.N(t isMaskedArraytset_fill_value(tat fill_value((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR>s cCs#t|to |iStSdS(sMask of values in a; could be nomask. Returns nomask if a is not a masked array. To get an array for sure use getmaskarray.N(RR.traw_masktnomask(R?((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytgetmasks cCs2t|}|tjott|S|SdS(sMask of values in a; an array of zeros if mask is nomask or not a masked array, and is a byte-sized integer. Do not try to add up entries, for example. N(RCRBtmake_mask_nonetshape(R?tm((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt getmaskarrays  cCs/y|iitjSWntj otSXdS(s;Is m a legal mask? Does not check contents, only type. N(R/ttypetMaskTypetAttributeErrortFalse(RF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytis_maskscCs|tjotSt|toV|iitjo0|oti|dtd|}qt|}q|it}nt |t it}|ot i t i | otS|SdS(smake_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 nomask. Does not check that contents must be 0s and 1s. if flag, return nomask if m contains no true elements. R/tcopyN(RBRRR/RHRIR7tarraytastypetfilledtTruet fromnumerictsometruetravel(RFRMRtresult((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt make_masks  !cCs"ti|dt}||_|S(s&Return a mask of all zeros of shape s.R/(R7tzerosRIRE(RRU((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRDs cCse|tjo t|S|tjo t|S||jot|o|Stti||S(sLogical or of the mask candidates m1 and m2, treating nomask as false. Result may equal m1 or m2 if the other is nomask. (RBRVRLR1t logical_or(tm1tm2((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytmask_ors  cCsvt|to|i|St|to|ido|St|tioti|dSti|SdS(sa as a contiguous numeric array with any masked areas replaced by value if value is None or the special element "masked", get_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. t CONTIGUOUStON( RR.RPRtflagsR$tDictTypeR7RN(R?tvalue((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRPs cCs-t|o|i}n t|}|S(sb The fill value of a, if it has one; otherwise, the default fill value for that type. (R=R@R6(R?RU((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytget_fill_values  cCs.t|}t|}||jo|SdS(s:The common fill_value of a and b, if there is one, or NoneN(RaR(R?tbtt1tt2((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytcommon_fill_values    tdomain_check_intervalcBs eZdZdZdZRS(s9domain_check_interval(a,b)(x) = true where x < a or y > bcCs||_||_dS(s9domain_check_interval(a,b)(x) = true where x < a or y > bN(ty1ty2(R RgRh((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR s cCs.titi||iti||iS(sExecute the call behavior.(R1RXtgreaterRhtlessRg(R R5((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt__call__s(RRRR Rk(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRfs t domain_tancBs eZdZdZdZRS(s/domain_tan(eps) = true where abs(cos(x)) < eps)cCs ||_dS(s/domain_tan(eps) = true where abs(cos(x)) < eps)N(teps(R Rm((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR scCs%tititi||iS(sExecute the call behavior.(R1RjR2tcosRm(R R5((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRks(RRRR Rk(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRl s tdomain_greatercBs eZdZdZdZRS(s(domain_greater(v)(x) = true where x <= vcCs ||_dS(s(domain_greater(v)(x) = true where x <= vN(tcritical_value(R Rp((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR scCsti||iS(sExecute the call behavior.(R1t less_equalRp(R R5((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRks(RRRR Rk(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRos tdomain_greater_equalcBs eZdZdZdZRS(s-domain_greater_equal(v)(x) = true where x < vcCs ||_dS(s-domain_greater_equal(v)(x) = true where x < vN(Rp(R Rp((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR scCsti||iS(sExecute the call behavior.(R1RjRp(R R5((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRk$s(RRRR Rk(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRrs tmasked_unary_operationcBs)eZdddZdZdZRS(icCsl||_||_||_t|dt||_t|dt||_|t|<|ft|d4Z?d5Z@d6ZAd7ZBd^d8ZCd9ZDd:ZEd^d;ZFd<ZGd=ZHd>ZId?ZJd@ZKdAZLdBZMdCZNeOdDeNdEdFZPdGZQeOdDeQdEdHZRdIZSd^dJZTdKZUeOeUdEeViWiXiZXdLZYeOdDeYdEdMZZdNZ[eOdDe[dEdOZ\dPZ]dQZ^d^dRZ_d^dSZ`dTZadUZbdVZcdWZdeOe e dEdXZeeOe edEdYZfeOeedEdZZgeOeedEd[ZhehZieOecd^dEd\ZjeOedd^dEd]ZkRS(_sArrays with possibly masked values. Masked values of 1 exclude the corresponding element from any computation. Construction: x = array(data, dtype=None, copy=True, order=False, mask = nomask, fill_value=None) If copy=False, every effort is made not to copy the data: If data is a MaskedArray, and argument mask=nomask, then the candidate data is data.data and the mask used is data.mask. If data is a numeric array, it is used as the candidate raw data. If dtype is not None and is != data.dtype.char 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, dtype=dtype.char, copy=copy) If mask is nomask there are no masked values. Otherwise mask must be convertible to an array of booleans with 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. g333333$@c Cs|djo d}nti|}|}t|tor|i} |djo | i}n|| ijo t}n|tjo |i}q,|tj o t}q,nt|t o>|} |djo | i}q,|| ijo t}q,n1t }ti |d|dtd|} | i}|oN|| ijo(ti | d|dtd||_ q| i ||_ n | |_ |tjot|_d|_n<t||_|itjo d|_n|i|j|_t|i} t|i } | | jo| djo+ti|i|i i|_d|_q| djo4ti|i |ii|_ |ii|i _qtdnM| djo?t|it|i jo |i|i i|i_n|i|dS(sarray(data, dtype=None, copy=True, order=False, mask=nomask, fill_value=None) If data already a numeric array, its dtype becomes the default value of dtype. R/RMtorderiisMask and data not compatible.N(RR7R/RR.tdataRQRBtmaskRRKRNt_dataROt_maskt _shared_maskRVRRRtresizeRERt unshare_maskR>( R RR/RMRRR@ttctneed_data_copiedtctnmtnd((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR sb           ! (          , cCs|itj oti|iios|djotid|iS|\}}}t i |}|djot d|n|i ||Sqt|_d|_ n|o|ii|S|iSdS(s:Special hook for numeric. Converts to numeric if possible.siCannot automatically convert masked array to numeric because data is masked in one or more locations.s%s not known to maiN(RRBRRRTtanyRtwarningstwarnRRytgetRRPRRO(R RtcontexttfuncR titfills((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt __array__]s     c CsI|djot|dtdtS|d \}}t|}ttg}|D]}|t|qO~}|dj o@t||g} |D]}| t|d|q~ }n|tj oky |i } Wnt j oq3X|i | jo4ttg} |D]}| t |q ~ }q3nt|dtd|S(spSpecial hook for ufuncs. Wraps the numpy array and sets the mask according to context. RMRiRN( RR.RKRBRxRR[RCRwRERJRG( R RNRRR Rvt_[1]R?RFt_[2]REt_[3]((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt__array_wrap__ys   0 0  8cCs |iiS(sReturn the current shape.(RRE(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _get_shapescCsB||i_|itj o"|ii|_||i_ndS(sSet the array's shape.N(RRERRBRM(R tnewshape((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _set_shapes cCsh|itjo&t|iidtd|iSt|iid|iid|iSdS(s"Calculate the flat value. RR@N(RRBR{RRTR@(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _get_flats cCs|i}||(dS(sx.flat = valueN(RT(R R`ty((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _set_flats cCs\|itjo#t|iidtd|iSt|iid|id|iSdS(s%Get the real part of a complex array.RR@N(RRBR{RtrealR@(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _get_reals cCs|i}||dsN(RRRERRBRRtlisttonesRRRTRORRR1Rtsum( R RRFRtlsRRtwtn1tn2((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytcounts0              cCs t||S(s%s.dot(other) = innerproduct(s, other)(t innerproduct(R R((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytdotscCs|iS(sGet the current fill value.(R(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR@sc Cs |i}|i}|tjo!|ido|S|iSn|djo |i}n|}|tjoti |}ny,ti |d|i dd}|||"s cCs |iiS(N(RR(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _get_ndim(scCs |iiS(N(RR(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _get_size,ss Number of elements in the array.cCs |iiS(N(RR/(R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _get_dtype1sstype of the array elements.cGsa|itj oA|ii|}y|dotSWqQtj otSXn|ii|S(s Return Python scalar if possiblei(RRBRRt IndexErrorR(R R RF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR5s   cGs"|d}|d }|||R,R7RRR-RR.R/RR0R1R2RRR4R6REtflatRRRR3tT(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR.s A        /                            + + - '            "                              cCs t|tS(s9Is x a masked array, that is, an instance of MaskedArray?(RR.(R5((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR=zsgh㈵>g:0yE>c Cstt|t|}t|}t|}tt|ddd||it}tt|ddd|dit} titi|| ||ti| } t i t i | 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. RMiRi( R[RCRPRNRORR1RqR2RRtalltrueRT( R?RbR@trtoltatolRFR}RR5RR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytallcloses   **0cCstt|t|}|tjoAt|}t|}ti||}titi|S|obt|}t|}ti||}t |d|dd}titit|dSdSdS(s True if all entries of a and b are equal, using fill_value as a truth value where either or both are masked. RRMiiN( R[RCRBRPR1RRRR@RTRN(R?RbR@RFR5RRR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytallequals      cCsti}t||}t|iitioYti|||||||}t |dd}t |d|d|d|St ||d|SdS(s masked_values(data, value, rtol=1.e-5, atol=1.e-8) Create a masked array; mask is nomask 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) RiRRMR@N( R1R2RPt issubclassR/RHR7tfloatingRqRVRNt masked_object(RR`RARBRMtabsRRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt masked_valuess *cCsIt||}tti||dd}t|d|d|d|S(s5Create array masked where exactly data equal to valueRiRRMR@(RPRVR1RRN(RR`RMRR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRGscCstti||||S(soJust like range() except it returns a array whose type can be specified by the keyword argument dtype. (RNR7R"(tstarttstoptstepR/((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR"scCstti||S(sAConstruct a masked array from a string. Result will have no mask.(R{R7t fromstring(RR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRMscCsht|}|tjo#tit||}t|Stit|d|}t||SdS(sLeft shift n bitsiN(RCRBR1RRPR{(R?RRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs    cCsht|}|tjo#tit||}t|Stit|d|}t||SdS(sRight shift n bitsiN(RCRBR1RRPR{(R?RRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs    cCsjt|}|tj oti||}nttit||d|}|it||S(swresize(a, new_shape) returns a new array with the specified shape. The original array's total size can be any size.R(RCRBRRRRNRPR>Ra(R?t new_shapeRFRU((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs   $cCst|}t|tio>|djo |i}n|i|}t|g|}nt|}|t j ot i |||}nt i |||}t ||}|i t||S(srepeat 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(RPRR$R'RRRER RCRBRRtrepeatR{R>Ra(R?trepeatsRtaftnumRFRRU((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt new_repeats      cCstti|S(s<identity(n) returns the identity matrix of shape n x n. (RNR7tidentity(R((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRTscCstti||S(sindices(dimensions,dtype=None) returns an array representing a grid of indices with row-only, and column-only variation. (RNR7tindices(t dimensionsR/((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRUscCstti||S(sPzeros(n, dtype=float) = an array of all zeros of the given length or shape.(RNR7RW(RER/((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRW scCstti||S(sNones(n, dtype=float) = an array of all ones of the given length or shape.(RNR7R(RER/((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRscCst|}|i|S(s?Count of the non-masked elements in a, or along a certain axis.(R{R(R?R((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs c Cs|dj o tdnt|}t|}t||}t|d}t|d}|iitdjott i |||St t i |ddd}t||}|t jott i ||Sti|d|}tt i |||SdS(sa**bs3-argument power not supported.iR iRN(RRRCR[RPR/R0RR{R1RRVRjRBR7R( R?RbRRRRFtfatfbtmd((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs     cCst|d|ddd|S(s]masked_array(a, mask=nomask) = array(a, mask=mask, copy=0, fill_value=fill_value) RRMiR@(RN(R?RR@((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR{/scCs6|djot|}d}nti|||S(Ni(RRTRR(RRR/((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR5s   cCs6|djot|}d}nti|||S(Ni(RRTRR(RRR/((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytproduct;s   c Cst|}|i}|i}|d jo d}n|d joD|tjo|d jo4ti|ii}td|d}qt |di}t ii|ii|}t ii|}~qQ|d joFti|i}t i |di}t ii|}~qQt t |dtd|i}ti|i|}ti|}~n|tjoY|d jo-||d}t ii|i|}qQt |d}|i} | djo d} n| |joGti |tdd}ti|||}ti||}~qQ| ||fjo{tgt|} td d d| | value(RrRi(R5R`RM((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytmasked_greaterscCstt||||S(s:masked_greater_equal(x, value) = x masked where x >= value(RrR (R5R`RM((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytmasked_greater_equalscCstt||||S(s0masked_less(x, value) = x masked where x < value(RrRj(R5R`RM((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt masked_lessscCstt||||S(s7masked_less_equal(x, value) = x masked where x <= value(RrRq(R5R`RM((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytmasked_less_equalscCsLt|d}ti||}t|t|}t|d|d|S(s6masked_not_equal(x, value) = x masked where x != valueiRRM(RPR1RR[RCRN(R5R`RMRRRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytmasked_not_equalscCsLt|d}ti||}t|t|}t|d|d|S(s{masked_equal(x, value) = x masked where x == value For floating point consider masked_values(x, value) instead. iRRM(RPR1RR[RCRN(R5R`RMRRRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt masked_equalscCs||jo|}|}|}nt|d}titi||ti||}t|t|}t|d|d|S(sjx with mask of all values of x that are inside [v1,v2] v1 and v2 can be given in either order. iRRM(RPR1RRqR R[RCRN(R5tv1tv2RMRRRRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt masked_insides  *cCs||jo|}|}|}nt|d}titi||ti||}t|t|}t|d|d|S(skx with mask of all values of x that are outside [v1,v2] v1 and v2 can be given in either order. iRRM(RPR1RXRjRiR[RCRN(R5RyRzRMRRRRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytmasked_outsides  *cGsYt|}t|i|}|tjo t|St|dti||SdS(sCopy of a with a new shape.RN(RCRPRRBR{R7(R?RRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs    cCsVt|}tit|}|tjo t|St|dti|SdS(s-a as one-dimensional, may share data and maskRN(RCRRRTRPRBR{R7(R?RFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRTs    c Csg}x!|D]}|it|q Wti||}x0|D]}t|tj oPqCqCWt|Sg}x!|D]}|it|q|Wti||}t|d|S(s+Concatenate the arrays along the given axisR(tappendRPR7t concatenateRCRBR{RG(tarraysRRR5R((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR~$s   cCszt|}t|i}|tjotdti|||Stdti|||dti|||SdS(NRR(RCR{RRBR7tswapaxes(R?taxis1taxis2RFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR4s   cCstt|}t|i}|tjotti|||Stti|||dti|||SdS(s"returns selection of items from a.RN(RCR{RRBR7ttake(R?RURRnRoRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytnew_take>s   cCsht|}t|}|tjotti||Stti||dti||SdS(s!reorder dimensions per tuple axesRN(RCRPRBR{R7R5(R?taxesRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR5Is    cCs{|i}t|}t|}ti|||t|}|tj o'|iti|i|dndS(snsets storage-indexed locations to corresponding values. Values and indices are filled if necessary. iN(R(RPR7R&RCRBRRA(R?RUR#RoRR%R+RF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR&Ts      cCsp|tjodSti|i||t|}|tjodS|iti|i|ddS(s3putmask(a, mask, values) sets a where mask is true.Ni(RBR7R'R(RCRRA(R?RR#RF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR'cs    cCszt|d}t|d}t|idjo d|_nt|idjo d|_ntti||S(sinner(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. ii(i(i(RPRRER{R7tinner(R?RbRWRX((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRms  cCst|di}t|di}ti||}t|}t|}|tjo|tjo t|St|}t|}tdtid|d|dd}t||S(s3outer(a,b) = {a[i]*b[j]}, has shape (len(a),len(b))iiRM( RPRTR7RRCRBR{RGRV(R?RbRWRXRRRRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR{s     *cCs.tt|dtit|dddS(sdot(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. iii(RRPR7R(R?Rb((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRscCsit|d}t|}|tj oti|||}nti|t||}t||S(sqSelect those parts of x for which condition is true. Masked values in condition are considered false. i(RPRCRBR7RR{(ReR5t dimensionRnRRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs   t_minimum_operationcBs8eZdZdZddZddZdZRS(sObject to calculate minimacCsdS(s`minimum(a, b) or minimum(a) In one argument case returns the scalar minimum. N((R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR scCs|djont|}|tjott|i}|S|i}t|djotSt|i Snt t ||||SdS(sExecute the call behavior.iN( RRCRBRRPRTRRRR(RRj(R R?RbRFRtac((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRks    icCst|}|tjo&t|}ttii||Stiit|t||}tii||}t||t |SdS(s#Reduce target along the given axis.N( RCRBRPR{R1tminimumRR;RRa(R RRRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs   $cCst|}t|}|tjo|tjo t}n+t|}t|}ti||}tiit|t|}t||S(s<Return the function applied to the outer product of a and b.( RCRBRGRXRR1RRPR{(R R?RbRRRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs     !N(RRRR RRkRR(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs    t_maximum_operationcBs8eZdZdZddZddZdZRS(sObject to calculate maximacCsdS(s`maximum(a, b) or maximum(a) In one argument case returns the scalar maximum. N((R ((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR scCs|djont|}|tjott|i}|S|i}t|djotSt|i Snt t ||||SdS(sExecute the call behavior.iN( RRCRBRRPRTRRRR(RRi(R R?RbRFRR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRks    icCst|}|tjo&t|}ttii||Stiit|t||}tii||}t||t |SdS(s#Reduce target along the given axis.N( RCRBRPR{R1tmaximumRR<RRa(R RRRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs   $cCst|}t|}|tjo|tjo t}n+t|}t|}ti||}tiit|t|}t||S(s<Return the function applied to the outer product of a and b.( RCRBRGRXRR1RRPR{(R R?RbRRRFR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs     !N(RRRR RRkRR(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs    cCso|djot|}nt||}ti||}t|tjo t|St||ddS(sIf 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. RMiN( RR6RPRRtsortRCRBR{RI(R5RR@RR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs  cCshtit||||}t|}|tjot||St|ti||||SdS(s9diagonal(a,k=0,axis1=0, axis2=1) = the k'th diagonal of aN(RRtdiagonalRPRCRBR{(R?tkRRRRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs   cCst||||id|S(s~trace(a,offset=0, axis1=0, axis2=1) returns the sum along diagonals (defined by the last two dimenions) of the array. R/(RR(R?toffsetRRR/Rn((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyttracescCst||}ti||S(sTreating masked values as if they have the value fill_value, return sort indices for sorting along given axis. if fill_value is None, use get_fill_value(x) Returns a numpy array. (RPRRtargsort(R5RRnR@R((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR!scCst||}ti||S(sTreating masked values as if they have the value fill_value, return indices for minimum values along given axis. if fill_value is None, use get_fill_value(x). Returns a numpy array if x has more than one dimension. Otherwise, returns a scalar index. (RPRRtargmin(R5RRnR@R((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR*scCsQ|djo%t|}y | }Wq2q2Xnt||}ti||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 -get_fill_value(x) if it exists. Returns a numpy array if x has more than one dimension. Otherwise, returns a scalar index. N(RR6RPRRtargmax(R5RRnR@R((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyR4s   cCstti||S(s)apply f to s to create array as in umath.(R{R7t fromfunction(RtR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRDscCsHt|to"|djp||ijo|St|d|ddS(s6asarray(data, dtype) = array(data, dtype, copy=0) R/RMiN(RR.RR/RN(RR/((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRHs(t MethodTypecCst|dtS(N(RRRN(Rt((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_mTscOs tddS(Ns'not yet implemented for numpy.ma arrays(tNotImplementedError(R tkwds((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytnot_implementedVscOs t||S(N(R(R R R((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_choose`sc CsUtd|iit|it|idt|itt|t|S(NRR(R.RtclipRR[RRC(R ta_minta_maxRn((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_clipes cCst|||S(N(R(R tcondRRn((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _compresslscCsZ|i}|tj otii|i|}ntd|idi||d|S(NRiR(RRBR1RXRR.RPtcumprod(R RR/RnRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_cumprodts  cCsZ|i}|tj otii|i|}ntd|idi||d|S(NRiR(RRBR1RXRR.RPtcumsum(R RR/RnRF((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_cumsum{s  cCsI|dj otdn|djo t|Sti||SdS(Ns+Output arrays Unsupported for masked arrays(RR:RR(R?RRn((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_maxs    cCsI|dj otdn|djo t|Sti||SdS(Ns+Output arrays Unsupported for masked arrays(RR:RR(R?RRn((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_mins    cCs|i|||i|S(N(tmaxtmin(R?RRn((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_ptpscCsTy+td|iid|ii}Wn"tj ot|d}nX|S(NRRtsqueeze(R.RRRRJt_wrapit(R RU((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_squeezes cCs1td|ii||d|ii||S(NRR(R.RRR(R RR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt _swapaxesscCs|djoti|iiS|i|d}||idd}||9}||idd:}|id|i|S(NiR( RR7RRtvarRtmeanRR(R RR/RnR?((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_vars  cCs|i||dS(Ng?(R(R RR/Rn((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt_stdsRcCst|||S(N(RS(R?RPR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyROscCst||||S(N(Rd(R?RR_R`((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pytaveragescCst|||S(N(R(R?RUR((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyRs(RR$R8tnumpy.core.umathtcoreR1tnumpy.core.fromnumericRRtnumpy.core.numericRRRRRtnumpy.core.numerictypesRRR7RRxRyRIRBRt ExceptionRRRR&R-R+R)R3R6R;R<R>RCRGRLRVRDR[RRPRaReRfRlRoRrRsR~RRRtlogtlog10texpt conjugatetsinRnttantarcsintarccostarctantarcsinhtarccoshtarctanhtsinhtcoshttanhR2tfabsRRtround_taroundtfloortceilt logical_notRRRRRRRRtfmodthypottarctan2RRRqR RjRiRR@RXRSt logical_xorRRRRRERRR.RNR=tisarraytisMARCRDRIRGR"t arrayrangeRMRRRRSRTRURRWRRRR{RRZRdRRRrRsRtRuRvRwRxR{R|RRTR~RRR5R&R'RRRR!RRRRRRRRRRRRRRRRRtallRR=tbasetbyteswapRRRRtconjRMRRRRtdumptdumpsRuR^tflattentgetfieldRRRRRtnbytest newbyteordertprodRtptpROt searchsortedtsetfieldtsetflagsRRtstridesRRttofileRRRtstdtviewtroundRRR(((s9/usr/lib64/python2.6/site-packages/numpy/oldnumeric/ma.pyt s                 #E&             }           k              / /