Fix compilation of Tridiagonalization_diagonal example.

After changeset 0d63212257
, matrixT() is a real matrix even if the matrix
which is decomposed is complex.
This commit is contained in:
Jitse Niesen 2010-12-12 13:53:42 +00:00
parent 9cd4f67e7f
commit 4a5ebcd1ce

View File

@ -3,7 +3,7 @@ MatrixXcd A = X + X.adjoint();
cout << "Here is a random self-adjoint 4x4 matrix:" << endl << A << endl << endl;
Tridiagonalization<MatrixXcd> triOfA(A);
MatrixXcd T = triOfA.matrixT();
MatrixXd T = triOfA.matrixT();
cout << "The tridiagonal matrix T is:" << endl << triOfA.matrixT() << endl << endl;
cout << "We can also extract the diagonals of T directly ..." << endl;