ó ]ÐKc$@s2dddddddddd d d d d ddddddddddddddddddd d!d"d#g$Zd$d%ljjZd$d%ljjZd$d&lm Z m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZmZmZ m!Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z*m+Z+d$d'l,m-Z-m.Z.d$d(l/m0Z0m1Z1d$d%lZ2d$d)l3m4Z4d%d*d%d%d+„Z6d%d*d%d%d,„Z7d%d$d-„Z d*d.„Zd*d/„Zd*d0„Z8d*d1„Z9d*d2„Zd*d3„Zd*d4„Z)d%d*d*d5„Z:d$d6lm;Z;m<Z<d%d7„Z=d$d8l>Td$d8l?Td$d8l@Td$d8lATd$d8lBTd$d%l>Z>d$d%l@Z@d$d%l?Z?d$d%lBZBd$d%lAZAd$d%lZejCZC[ed9g7Zee>j7Zee@j7Zee?j7ZeeAj7ZeeBj7Z[>[?[@[A[Bd%S(:trandttrilttrapzthanningtrot90ttriutdifftangletrootstptptkaisertrandntcumprodtdiagtmsortt LinearAlgebrat RandomArraytprodtstdthammingtflipudtmaxtblackmantcorrcoeftbartlettteyetsqueezetsincttritcovtsvdtmintmediantfliplrteigtmeaniÿÿÿÿN(RRRRRRRRR R R R RRRRRtamaxtaminRRRRR R!R#t transpose(R"R(RR (t convtypecodeicCsxt||ƒ}|dkr$|}ntjtjjtj|ƒtj|ƒƒ| ƒ}|j|krt|j|ƒSdS(sp eye returns a N-by-M 2-d array where the k-th diagonal is all ones, and everything else is zeros. N( R'tNonetnptequaltsubtracttoutertarangetdtypetastype(tNtMtkttypecodeR.tm((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyRs  4cCsxt||ƒ}|dkr$|}ntjtjjtj|ƒtj|ƒƒ| ƒ}|j|krt|j|ƒSdS(sy returns a N-by-M array where all the diagonals starting from lower left corner up to the k-th are all ones. N( R'R(R)t greater_equalR+R,R-R.R/(R0R1R2R3R.R4((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR!s  4cCst||d|ƒS(Ntaxis(t_Ntrapz(tytxR6((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR+scCs t||ƒS(N(t_Nptp(R9R6((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR .scCs t||ƒS(N(t _Ncumprod(R9R6((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR 1scCs t||ƒS(N(t_Nmax(R9R6((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR4scCs t||ƒS(N(t_Nmin(R9R6((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR7scCs t||ƒS(N(t_Nprod(R9R6((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR:scCs2t|ƒj|}t||ƒt||dƒS(Ngð?(tasarraytshapet_Nstdtsqrt(R9R6R0((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR=scCs t||ƒS(N(t_Nmean(R9R6((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR#AscCs|dkr|}n|}|r<t|ƒ}t|ƒ}n|jddkr^t|ƒ}n|jddkr€t|ƒ}n|jd}|jd|kr¬td‚n|t|ddƒ}|t|ddƒ}|rë|d}n |d}ttt|ƒt|ƒƒ|ƒS(Niis1x and y must have the same number of observationsR6gð?(R(R&R@t ValueErrorRCRtdott conjugate(R4R8trowvartbiasR0tfact((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyREs&       (RBtmultiplycCs5t||ƒ}t|ƒ}|ttj||ƒƒS(N(RR RBRJR,(R9R8tctd((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyR^s (t*t __version__(Dt__all__tnumpy.oldnumeric.linear_algebrat oldnumerictlinear_algebraRtnumpy.oldnumeric.random_arrayt random_arrayRtnumpyRRR7RRRRRRR R:R R R;R RRR>RRARRR$R<R%R=RRRRR R!R#RCR&t numpy.linalgR"Rt numpy.randomRR R)ttypeconvR'R(RRRRRRBRJRtcompatt functionst precisiontufuncstmiscRN(((s9/usr/lib/python2.7/site-packages/numpy/oldnumeric/mlab.pyts`¬