⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vmatrix.dat

📁 basic linear algebra classes and applications (SVD,interpolation, multivariate optimization)
💻 DAT
字号:
./vmatrix-------------------------------------------------------------------------------		Verify Basic operations on Matrices---> Test allocation and compatibility checkThe following matrices have been allocatedMatrix 1:4x1:20 Matrix m1 is not engagedMatrix 1:4x1:20 Matrix m2 is not engagedMatrix 1:4x0:19 Matrix m3 is not engagedMatrix 1:4x1:20 Matrix m4 is not engagedStatus information reported for matrix m3:  Row lower bound ... 1  Row upper bound ... 4  Col lower bound ... 0  Col upper bound ... 19  No. rows ...........4  No. cols ...........20  No. of elements ....80  Name Matrix m3Check matrices 1 & 2 for compatibilityCheck matrices 1 & 4 for compatibilitym2 has to be compatible with m3 after resizing to m3m1 has to be compatible with m5 after resizing to m5Matrix 1:5x1:25 Matrix m5 is not engagedDone---> Test operations that treat each element uniformlyWriting zeros to m...Creating zero m1 ...Comparing m1 with 0 ...Writing a pattern 8.625 by assigning to m(i,j)...Writing the pattern by assigning to m1 as a whole ...Comparing m and m1 ...Comparing (m=0) and m1 ...Clearing m1 ...Clear m and add the pattern   add the doubled pattern with the negative sign   subtract the tripled pattern with the negative signVerify comparison operations when all elems are the sameVerify comparison operations when not all elems are the sameAssign 2*pattern to m by repeating additionsAssign 2*pattern to m1 by multiplying by two Multiply m1 by one half returning it to the 1*patternAssign -pattern to m and m1m = sqrt(sqr(m)); m1 = abs(m1); Now m and m1 have to be the sameCheck out to see that sin^2(x) + cos^2(x) = 1Element (16,8) with value 1 differs the most from whatwas expected, 1, though the deviation 1.19209e-07 is smallDone---> Test Binary Matrix element-by-element operationsVerify assignment of a matrix to the matrixAdding the matrix to itself, uniform pattern 4.25  subtracting two matrices ...  subtracting the matrix from itself  adding two matrices togetherArithmetic operations on matrices with not the same elements   adding mp to the zero matrix...Testing element-by-element multiplications and divisions   squaring each element with sqr() and via multiplication   compare (m = pattern^2)/pattern with patternComparison of two Matrices:	Original matrix and matrix after squaring and dividingMatrix 2:11x0:19  is not engagedMatrix 2:11x0:19  is not engagedMaximal discrepancy    		0   occured at the point		(2,0) Matrix 1 element is    		4.25 Matrix 2 element is    		4.25 Absolute error v2[i]-v1[i]		0 Relative error				0||Matrix 1||   			850||Matrix 2||   			850||Matrix1-Matrix2||				0||Matrix1-Matrix2||/sqrt(||Matrix1|| ||Matrix2||)	0DoneAll test passedCompilation finished at Fri Dec 25 23:06:05

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -