3 cout <<
"Here is a random self-adjoint 4x4 matrix:" << endl <<
A << endl << endl;
5 Tridiagonalization<MatrixXcd>
triOfA(
A);
7 cout <<
"The tridiagonal matrix T is:" << endl <<
T << endl << endl;
9 cout <<
"We can also extract the diagonals of T directly ..." << endl;
11 cout <<
"The diagonal is:" << endl << diag << endl;
13 cout <<
"The subdiagonal is:" << endl << subdiag << endl;
cout<< "Here is a random self-adjoint 4x4 matrix:"<< endl<< A<< endl<< endl;Tridiagonalization< MatrixXcd > triOfA(A)
Matrix< double, Dynamic, 1 > VectorXd
Dynamic×1 vector of type double.
Matrix< double, Dynamic, Dynamic > MatrixXd
Dynamic×Dynamic matrix of type double.
Matrix< std::complex< double >, Dynamic, Dynamic > MatrixXcd
Dynamic×Dynamic matrix of type std::complex<double>.