ó Kc @sËdZddddddddd d d d g Zd dlmZd dljZejZd„Zd„Zd„Z d„Z dd„Z d„Z d„Z dd„Zd„Zdd„Zdd„ZdS(s4Backward compatible with LinearAlgebra from Numeric t LinAlgErrortsolve_linear_equationstinversetcholesky_decompositiont eigenvaluest Heigenvaluestgeneralized_inverset determinanttsingular_value_decompositiont eigenvectorst Heigenvectorstlinear_least_squaresiÿÿÿÿ(t transposeNcCstj||ƒS(N(tlinalgtsolve(tatb((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyRscCs tj|ƒS(N(R tinv(R((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyRscCs tj|ƒS(N(R tcholesky(R((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyR"scCs tj|ƒS(N(R teigvals(R((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyR'stLcCstj||ƒS(N(R teigvalsh(RtUPLO((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyR*scCs%tj|ƒ\}}|t|ƒfS(N(R teigR (tAtwtv((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyR /scCs%tj|ƒ\}}|t|ƒfS(N(R teighR (RRR((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyR 3sg»½×Ùß|Û=cCstj||ƒS(N(R tpinv(Rtrcond((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyR9scCs tj|ƒS(N(R tdet(R((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyR>scCstj|||ƒS(sûreturns x,resids,rank,s where x minimizes 2-norm(|b - Ax|) resids is the sum square residuals rank is the rank of A s is the rank of the singular values of A in descending order If b is a matrix then x is also a matrix with corresponding columns. If the rank of A is less than the number of columns of A or greater than the number of rows, then residuals will be returned as an empty array otherwise resids = sum((b-dot(A,x)**2). Singular values less than s[0]*rcond are treated as zero. (R tlstsq(RRR((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyR Cs icCstj||ƒS(N(R tsvd(Rt full_matrices((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyRRs(t__doc__t__all__t numpy.coreR t numpy.linalgR RRRRRRR R RRR R(((sC/usr/lib/python2.7/site-packages/numpy/oldnumeric/linear_algebra.pyts(