mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Clang-format tests, examples, libraries, benchmarks, etc.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
3252ecc7a4
commit
46e9cdb7fe
@@ -1,9 +1,9 @@
|
||||
Tridiagonalization<MatrixXf> tri;
|
||||
MatrixXf X = MatrixXf::Random(4,4);
|
||||
MatrixXf X = MatrixXf::Random(4, 4);
|
||||
MatrixXf A = X + X.transpose();
|
||||
tri.compute(A);
|
||||
cout << "The matrix T in the tridiagonal decomposition of A is: " << endl;
|
||||
cout << tri.matrixT() << endl;
|
||||
tri.compute(2*A); // re-use tri to compute eigenvalues of 2A
|
||||
tri.compute(2 * A); // re-use tri to compute eigenvalues of 2A
|
||||
cout << "The matrix T in the tridiagonal decomposition of 2A is: " << endl;
|
||||
cout << tri.matrixT() << endl;
|
||||
|
||||
Reference in New Issue
Block a user