mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Change return type of matrixH() method to HouseholderSequence.
This method is a member of Tridiagonalization and HessenbergDecomposition.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
MatrixXd X = MatrixXd::Random(5,5);
|
||||
MatrixXd A = X + X.transpose();
|
||||
cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl;
|
||||
|
||||
Tridiagonalization<MatrixXd> triOfA(A);
|
||||
cout << "The orthogonal matrix Q is:" << endl << triOfA.matrixQ() << endl;
|
||||
cout << "The tridiagonal matrix T is:" << endl << triOfA.matrixT() << endl << endl;
|
||||
|
||||
MatrixXd Q = triOfA.matrixQ();
|
||||
cout << "The orthogonal matrix Q is:" << endl << Q << endl;
|
||||
MatrixXd T = triOfA.matrixT();
|
||||
cout << "The tridiagonal matrix T is:" << endl << T << endl << endl;
|
||||
cout << "Q * T * Q^T = " << endl << Q * T * Q.transpose() << endl;
|
||||
|
||||
Reference in New Issue
Block a user