mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-17 18:09:55 +08:00
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:
parent
9cd4f67e7f
commit
4a5ebcd1ce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user