ó É9Zc@`s€dZddlmZmZmZddlZddlmZddlm Z ddl m Z ddlm Ze jjZe jjZe jjZe jjZe jjZe jjZdded„Zdded „Zddded „Z ddded „Z!ddded „Z"ddded „Z#d„Z$ddded„Z%dddded„Z&dddded„Z'dS(sx Array methods which are called by both the C-code for the method and the Python code for the NumPy-namespace function i(tdivisiontabsolute_importtprint_functionN(t multiarray(tumath(t asanyarray(t numerictypescC`st||d||ƒS(N(t umr_maximumtNone(tataxistouttkeepdims((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_amaxscC`st||d||ƒS(N(t umr_minimumR(R R R R ((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_aminscC`st|||||ƒS(N(tumr_sum(R R tdtypeR R ((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_sumscC`st|||||ƒS(N(tumr_prod(R R RR R ((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_prod"scC`st|||||ƒS(N(tumr_any(R R RR R ((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_any%scC`st|||||ƒS(N(tumr_all(R R RR R ((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_all(scC`sk|dkr$tt|jƒƒ}nt|tƒs?|f}nd}x|D]}||j|9}qLW|S(Ni(Rttupletrangetndimt isinstancetshape(tarrR titemstax((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_count_reduce_items+s   c C`st|ƒ}t||ƒ}|dkr:tjdtƒn|dkryt|jjt j t j fƒryt jdƒ}nt |||||ƒ}t|t jƒrÊtj||d|dddtƒ}n2t|dƒrò|jj||ƒ}n ||}|S( NisMean of empty slice.tf8R tcastingtunsafetsubokR(RR!twarningstwarntRuntimeWarningRt issubclassRttypetnttintegertbool_tmuRRtndarraytumt true_dividetFalsethasattr(R R RR R Rtrcounttret((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_mean5s  -! c C`sät|ƒ}t||ƒ}||kr:tjdtƒn|dkryt|jjt j t j fƒryt jdƒ}nt |||dtƒ}t|t jƒrÊtj||d|dddtƒ}n|jj||ƒ}t||ƒ} t|jjt jƒr/tj| tj| ƒd| ƒj} ntj| | d| ƒ} t | ||||ƒ} t||dgƒ}t| t jƒr®tj| |d| dddtƒ} n2t| d ƒrÖ| jj| |ƒ} n | |} | S( Ns!Degrees of freedom <= 0 for sliceR"R R R#R$R%iR(RR!R&R'R(RR)RR*R+R,R-R.RtTrueRR/R0R1R2tcomplexfloatingtmultiplyt conjugatetrealtmaxR3( R R RR tddofR RR4tarrmeantxR5((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_varLs0  -!'! c C`s”t|d|d|d|d|d|ƒ}t|tjƒrTtj|d|ƒ}n<t|dƒr|jjtj|ƒƒ}ntj|ƒ}|S(NR RR R=R ( R@RR.R/R0tsqrtR3RR*(R R RR R=R R5((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyt_stdzs! ((t__doc__t __future__RRRR&t numpy.coreRR.RR0tnumpy.core.numericRRR+tmaximumtreduceRtminimumRtaddRR9Rt logical_orRt logical_andRRR2R RRRRRR!R6R@RB(((sF/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/_methods.pyts,        .