Tridiagonalization_decomposeInPlace.cpp
Go to the documentation of this file.
1 MatrixXd X = MatrixXd::Random(5,5);
2 MatrixXd A = X + X.transpose();
3 cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl;
4 
5 VectorXd diag(5);
6 VectorXd subdiag(4);
8 cout << "The orthogonal matrix Q is:" << endl << A << endl;
9 cout << "The diagonal of the tridiagonal matrix T is:" << endl << diag << endl;
10 cout << "The subdiagonal of the tridiagonal matrix T is:" << endl << subdiag << endl;
Matrix diag(const std::vector< Matrix > &Hs)
Definition: Matrix.cpp:206
void tridiagonalization_inplace(MatrixType &matA, CoeffVectorType &hCoeffs)


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19