KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21572/root/usr/lib64/python2.4/site-packages/Numeric/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/usr/lib64/python2.4/site-packages/Numeric/LinearAlgebra.pyo
mò
C1?c@sCdkZdkZdkZdkZdkZdkZdefd„ƒYZhdd<dd<dd<d	d
<Zdddd
gZ	hdd<dd<dd<dd<dd<d	d<Z
hdd<dd<dd<dd<dd<d	d<Zddgdd	ggZd„Z
d„ZeiZd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zdd„Zdd„Zdd„Zd „Zdd!„Zed"jord#kTd$„Ze d%d&gd'd(ggƒZ!e d&d%gƒZ"ee!e"ƒe!d)Z!e"d)Z"ee!e"ƒndS(*NtLinAlgErrorcBstZRS(N(t__name__t
__module__(((t;/usr/lib64/python2.4/site-packages/Numeric/LinearAlgebra.pyRstfitditFitDitstctztitlcGs[d}d}x@|D]8}|iƒ}t|t|ƒ}t|t|ƒ}qWt	||S(Nii(
tkindt	precisiontarraystattypecodetttmaxt_array_kindt_array_precisiont_array_type(RRR
RR((Rt_commonTypescGsœf}xl|D]d}|iƒ|jo#|titi|ƒƒf}q
|titi|ƒi|ƒƒf}q
Wt	|ƒdjo|dSn|SdS(Nii(
tcast_arraysRRRttypetcopytNumerict	transposetastypetlen(RRRR((Rt_castCopyAndTranspose#s#,cGs„f}xT|D]L}|iƒ|jo|t|ƒf}q
|t|i|ƒƒf}q
Wt|ƒdjo|dSn|SdS(Nii(RRRRRt_fastCTRR(RRRR((Rt_fastCopyAndTranspose5s cGs8x1|D])}t|iƒdjo
td‚qqWdS(NisArray must be two-dimensional(RRRtshapeR(RR((Rt_assertRank2AscGsAx:|D]2}t|iƒt|iƒjo
td‚qqWdS(NsArray must be square(RRRR"tminR(RR((Rt_assertSquarenessFsc		CsSt|iƒdj}|o|dd…tif}nt||ƒt|ƒ|id}|id}||idjo
td‚nt||ƒ}t|djo
ti}n
ti}t|||ƒ\}}ti|dƒ}||||||||dƒ}|ddjo
td‚n|oti|ƒSnti|ƒSdS(NiisIncompatible dimensionsRtinfosSingular matrix(RtbR"tone_eqRtNewAxisR#RR%tn_eqtn_rhsRRRRtlapack_litetzgesvtlapack_routinetdgesvR!tzerostpivotstresultstravelt
multiarrayR(	RR'R1R(R2R+R.R*R((Rtsolve_linear_equationsNs*





	!
cCst|ti|idƒƒS(Ni(R5RRtidentityR"(R((RtinversekscCsËt|ƒt|ƒt|ƒ}t||ƒ}|id}|id}t	|djo
t
i}n
t
i
}|d|||dƒ}|ddjo
td‚ntititi|ddƒƒƒS(NiitLR&sKMatrix is not positive definite - Cholesky decomposition cannot be computedtk(R#RR%RRRR"tmtnRR,tzpotrfR.tdpotrfR2RRRRtMLabttriu(RR:R2R;R.R((Rtcholesky_decompositionps




	
c
Cs†t|ƒt|ƒt|ƒ}tdt|}t||ƒ}|i	d}
tid	|ƒ}t|djoãti}ti|
f|ƒ}ti|
f|ƒ}d}ti|f|ƒ}	|dd|
||
||d|d|	d|dƒ}tt|	dƒƒ}ti|f|ƒ}	|dd|
||
||d|d|	||dƒ}nti}ti|
f|ƒ}ti|
f|ƒ}d}ti|f|ƒ}	|dd|
||
|||d|d|	ddƒ}t|	dƒ}ti|f|ƒ}	|dd|
||
|||d|d|	|dƒ}tiiti|dƒƒo
|}n|d|}|ddjo
td‚n|S(
NiitNiÿÿÿÿf0.0x0.01.0R&sEigenvalues did not converge(i( R#RR%RRRRtreal_tR!R"R;RR0tdummyRR,tzgeevR.twtrworktlworktworkR2tinttabstdgeevtwrtwitlogical_andtreducetequalR(
RRBR2R.RGRFRMRLRCRHR;RRE((RteigenvaluesƒsH


	"	

R8cCs^t|ƒt|ƒt|ƒ}tdt|}t||ƒ}|i	d}d|d}	ti
|	fdƒ}t|djoti}ti
|f|ƒ}
d}ti
|f|ƒ}
d}ti
|f|ƒ}|d|||||
|
d|d||	dƒ
}tt|
dƒƒ}ti
|f|ƒ}
t|dƒ}ti
|f|ƒ}|d|||||
|
|||||	dƒ
}n³ti}ti
|f|ƒ}
d}ti
|f|ƒ}
|d|||||
|
d||	dƒ}t|
dƒ}ti
|f|ƒ}
|d|||||
|
|||	dƒ}|ddjo
td	‚n|
S(
NiiiRiRAiÿÿÿÿR&sEigenvalues did not converge(R#RR%RRRRRBRR"R;tliworkRR0tiworkRR,tzheevdR.RERGRHtlrworkRFtUPLOR2RIRJtdsyevdR(RRVRURBR2R.RGRFRSRRRHR;RRE((RtHeigenvalues¬s@


	04	**
cCs“t|ƒt|ƒt|ƒ}tdt|}t||ƒ}|i	d}tid|ƒ}
t|djoÿti}ti|f|ƒ}ti||f|ƒ}d}ti|f|ƒ}tid|f|ƒ}|dd|||||
d|||d|dƒ}tt|dƒƒ}ti|f|ƒ}|dd|||||
d|||||dƒ}nüti}ti|f|ƒ}	ti|f|ƒ}ti||f|ƒ}
d}ti|f|ƒ}|dd||||	||
d|
||ddƒ}t|dƒ}ti|f|ƒ}|dd||||	||
d|
|||dƒ}tiiti |dƒƒo|	}|
}nÜ|	d|}ti!|
ti"ƒ}ti#ti ti |dƒdƒƒ}xŽt%t&|ƒdƒD]v}|
|d|d|
|d|d||d|<|
|d|d|
|d|d||d|d<qñW|d	djo
t(d
‚n||fS(
s½eigenvectors(a) returns u,v  where u is the eigenvalues and
v is a matrix of eigenvectors with vector v[i] corresponds to 
eigenvalue u[i].  Satisfies the equation dot(a, v[i]) = u[i]*v[i]
iiiRAtViÿÿÿÿf0.0x0.01.0R&sEigenvalues did not convergeN(i()R#RR%RRRRRBR!R"R;RR0RCRR,RDR.REtvRGRHRFR2RIRJRKRLRMtvrRNRORPtarrayt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
d}|tii|ƒ}xNtt||ƒƒD]7}|||jod||||<q d||<q Wtiti|ƒ|dd…tifti|ƒƒS(NRiR]if1.0f0.0(RR\RRt	typecodest	conjugateRmRiRRjR"R:R;trcondtmaximumROtcutoffR`R$RtdotRR)(	RRpRrRR:R;RRjRi((Rtgeneralized_inverse_s

cCsêt|ƒt|ƒt|ƒ}t||ƒ}|id}t|djo
t	i
}n
t	i}t
i|fdƒ}||||||dƒ}t
iit
i|t
id|dƒƒƒd}dd|t
iit
i|ƒƒS(NiiRif1.0f2.0(R#RR%RRR!R"R;RR,tzgetrfR.tdgetrfRR0R1R2taddROt	not_equalt
arrayrangetsigntmultiplytdiagonal(RR1R2R;R.RRz((Rtdeterminantqs



	 cCs2t|iƒdj}|o|dd…tif}nt||ƒ|id}|id}|id}
t||ƒ}||idjo
t
d‚nt||ƒ}tdt|}ti||
f|ƒ}ti|ƒ|d|id…d|
…f<t|||ƒ\}}tit||ƒf|ƒ}tdttitt||ƒƒdƒƒdƒ}tidt||ƒ|dt||ƒfdƒ}
t|djott i!}d}ti|f|ƒ}ti|f|ƒ}||||
||||||d|d	||
dƒ}tt(|dƒƒ}ti|f|ƒ}ti||f|ƒ}ti||
f|ƒ}	t i+|||
|||	|||d|d	|
dƒ}t|dƒ}ti|f|ƒ}ti|f|ƒ}||||
||||||d||||
dƒ}n°t i+}d}ti|f|ƒ}||||
||||||d|d	|
dƒ}t|dƒ}ti|f|ƒ}||||
||||||d|||
dƒ}|d
djo
t
d‚nti-g|ƒ}|ontiti/|ƒ| ƒ}|d|jo=||jo0ti-ti1ti/|ƒ|d
ƒgƒ}qnŒtiti2|ƒd|…dd…fƒ}|d|joL||jo?titi1ti2|ƒ|d…dd…fd
ƒƒ}n|||dti|t||ƒ ƒfS(ssolveLinearLeastSquares(a,b) 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 an rank of the singual values of A in desending 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 numer 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.
iNisIncompatible dimensionsf2.0iiRiÿÿÿÿR&s,SVD did not converge in Linear Least Squarestranki(3RR'R"R(RR)R#RR:R;R+RtldbRRRRRRBR0tbstarRRR$RRItmathtlogtfloattnlvlRSRR,tzgelsdR.RGRFRHRpR2RJta_realt
bstar_realtdgelsdRUR\tresidsR3txtsumR(RR'RpRRUR(R2R.R‰R‡R+RGRFRSR€RBR„R†RHR:R;RRRŠ((Rtlinear_least_squaresƒsr




,57	!	
4.?t__main__(t*cCs‹dGHt||ƒ}|t||ƒ}|GHt|ƒ}t||ƒt|i	dƒ}|GHt
|ƒ}t|ƒ\}}	||}|GHt|	ƒ}	t||	ƒ|	|}|GHt|ƒ\}}
}|ti||
|ƒ}|GHt|ƒ}t||ƒt|i	dƒ}|GHt|ƒ}
|
ti|ƒ}|GHt||ƒ\}}}}|t||ƒ}|GH||i	dGH||
GHdS(Ns,All numbers printed should be (almost) zero:i(R5RR'RŠtmatrixmultiplytcheckR7ta_invR6R"RQtevRatevaluestevectorsRRmRiRRjRRtta_ginvR}tdetR{RORŒt	residualsR~tsv(RR'R~RjR‘R’RR•RŠR”R–R˜R“RRiR—((RttestÏs8 
 f1.0f2.0f3.0f4.0x0.00.0(#RRR,RR>R4t	ExceptionRt_lapack_typet_lapack_letterRRRRRR!R R#R%R5R7R@RQRXRaRbRmRtR}RŒRR™R\RR'( RR}R RR5R7RRmRœRŒR™RRR›R>R#R4RbRtR'RXRRRaR,R!R%R@RRRRQ((Rt?sJ						*<<										)%	9&/	I
	-




Anon7 - 2021