ó Kc@s9ddlZddljjZddljjZddl m Z m Z ddddddd d d d d ddddddddddddddddddgZ d d!„Z d d"„Zd d#„Zd d$„Zd d%„Zd d&„Zd d'„Zd d(„Zdd)„Zdd*„Zdd+„Zd,„Zd-d dd.„Zd-d dd/„Zd-dd0„Zd-dd1„Zdd2d dd3„Zdedd4„Z ddd5„Z!d6„Z"d7„Z#dd2ddd8„Z$d-ddd9„Z%d:„Z&d d d2d;„Z'ddd<„Z(d=„Z)ddd>„Z*d ded?„Z+dS(@i˙˙˙˙N(t convtypecodet convtypecode2ttaketrepeattsumtproducttsometruetalltruetcumsumt cumproducttcompresst fromfunctiontonestemptytidentitytzerostarraytasarraytnonzerotreshapetaranget fromstringtravelttracetindicestwheretsarrayt cross_producttargmaxtargmintaverageicCstj|||ƒS(N(tnpR(tatindiciestaxis((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRscCstj|||ƒS(N(RR(R trepeatsR"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRscCstj||ƒS(N(RR(txR"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRscCstj||ƒS(N(RR(R$R"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRscCstj||ƒS(N(RR(R$R"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRscCstj||ƒS(N(RR(R$R"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRscCstj||ƒS(N(RR(R$R"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR!scCstj||ƒS(N(RR (R$R"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR $scCstj||ƒS(N(RR(R$R"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR'scCstj||ƒS(N(RR(R$R"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR*scCstj|||ƒS(N(RR (t conditiontmR"((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR -scCstj||dtƒS(Ntdtype(RR tint(targst dimensions((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR 0stlcCs2t||ƒ}tj||ƒ}|jdƒ|S(sjones(shape, dtype=int) returns an array of the given dimensions which is initialized to all ones. i(RtmuR tfill(tshapettypecodet savespaceR'R ((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR 3s cCst||ƒ}tj||ƒS(skzeros(shape, dtype=int) returns an array of the given dimensions which is initialized to all zeros (RR,R(R.R/R0R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR<scCst||ƒ}tj||ƒS(s?identity(n) returns the identity 2-d array of shape n x n. (RtnnR(tnR/R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRCscCst||ƒ}tj||ƒS(N(RR,R (R.R/R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR IsicCs%t||ƒ}tj||d|ƒS(Ntcopy(RR,R(tsequenceR/R3R0R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRMscCs"t||ƒ}tj|||ƒS(N(RR,R(R R/R3R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRQscCs%t||ƒ}tj||ddƒS(NR3i(RR,R(R R/R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRUscCs6tj|ƒ}t|ƒdkr)|dStd‚dS(NiisInput argument must be 1d(RRtlent ValueError(R tres((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRYscCstj||ƒS(N(RR(R R.((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR`scCs%t||ƒ}tj||||ƒS(N(RR,R(tstarttstoptstepR/R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRcscCs%t||ƒ}tj||d|ƒS(Ntcount(RR,R(tstringR/R;R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRgscCs tj|ƒS(N(RR(R&((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRkscCstj|ddddddƒS(Ntoffsetitaxis1taxis2i(RR(R R=R>R?((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRnscCst||ƒ}tj||ƒS(N(RRR(R*R/R'((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRqscCstj|||ƒS(N(RR(R%R$ty((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRuscCstj||||ƒS(N(Rtcross(R tbR>R?((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyRxscCstj||||ƒS(N(RR(R R"tweightstreturned((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pyR{s(,tnumpyRtnumpy.core.multiarraytcoret multiarrayR,tnumpy.core.numerictnumericR1ttypeconvRRt__all__RRRRRRRR RRR R tNoneR RRR RtFalseRRRRRRRRRRRR(((s>/usr/lib/python2.7/site-packages/numpy/oldnumeric/functions.pytsL