Tridiagonalization_compute.cpp
Go to the documentation of this file.
00001 Tridiagonalization<MatrixXf> tri;
00002 MatrixXf X = MatrixXf::Random(4,4);
00003 MatrixXf A = X + X.transpose();
00004 tri.compute(A);
00005 cout << "The matrix T in the tridiagonal decomposition of A is: " << endl;
00006 cout << tri.matrixT() << endl;
00007 tri.compute(2*A); // re-use tri to compute eigenvalues of 2A
00008 cout << "The matrix T in the tridiagonal decomposition of 2A is: " << endl;
00009 cout << tri.matrixT() << endl;


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:27