本文整理汇总了C++中DiagonalMatrix::Reverse方法的典型用法代码示例。如果您正苦于以下问题:C++ DiagonalMatrix::Reverse方法的具体用法?C++ DiagonalMatrix::Reverse怎么用?C++ DiagonalMatrix::Reverse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DiagonalMatrix
的用法示例。
在下文中一共展示了DiagonalMatrix::Reverse方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: trymate
//.........这里部分代码省略.........
SVD(A, D1, WX, W, false, true);
D1 -= D;
W -= V;
Clean(W,0.000000001);
Print(W);
Clean(D1,0.000000001);
Print(D1);
Matrix SU = U.t() * U - I;
Clean(SU,0.000000001);
Print(SU);
Matrix SV = V.t() * V - I;
Clean(SV,0.000000001);
Print(SV);
Matrix B = U * D * V.t() - A;
Clean(B,0.000000001);
Print(B);
D1=0.0;
SVD(A,D1,A);
CheckIsSorted(D1);
A -= U;
Clean(A,0.000000001);
Print(A);
D(1) -= sqrt(1248.0);
D(2) -= 20;
D(3) -= sqrt(384.0);
Clean(D,0.000000001);
Print(D);
Jacobi(S1, D, V);
CheckIsSorted(D, true);
V = S1 - V * D * V.t();
Clean(V,0.000000001);
Print(V);
D = D.Reverse();
D(1)-=1248;
D(2)-=400;
D(3)-=384;
Clean(D,0.000000001);
Print(D);
Jacobi(S1, D);
CheckIsSorted(D, true);
D = D.Reverse();
D(1)-=1248;
D(2)-=400;
D(3)-=384;
Clean(D,0.000000001);
Print(D);
SymmetricMatrix JW(5);
Jacobi(S1, D, JW);
CheckIsSorted(D, true);
D = D.Reverse();
D(1)-=1248;
D(2)-=400;
D(3)-=384;
Clean(D,0.000000001);
Print(D);
Jacobi(S2, D, V);
CheckIsSorted(D, true);
V = S2 - V * D * V.t();
Clean(V,0.000000001);
Print(V);
D = D.Reverse();
D(1)-=1248;