EigenSolver_EigenSolver_MatrixType.cpp File Reference

Go to the source code of this file.

Functions

 cout<< "Consider the first eigenvalue, lambda = "<< lambda<< endl;VectorXcd v=es.eigenvectors().col(0);cout<< "If v is the corresponding eigenvector, then lambda * v = "<< endl<< lambda *v<< endl;cout<< "... and A * v = "<< endl<< A.cast< complex< double > > () *v<< endl<< endl
 
cout<< "Here is a random 6x6 matrix, A:"<< endl<< A<< endl<< endl;EigenSolver< MatrixXd > es (A)
 

Variables

MatrixXd A
 
MatrixXcd D
 
cout<< "The eigenvalues of A are:"<< endl<< es.eigenvalues()<< endl;cout<< "The matrix of eigenvectors, V, is:"<< endl<< es.eigenvectors()<< endl<< endl;complex< double > lambda
 
MatrixXcd V
 

Function Documentation

◆ cout<< "Consider the first eigenvalue, lambda = "<< lambda<< endl;VectorXcd v=es.eigenvectors().col(0);cout<< "If v is the corresponding eigenvector, then lambda * v = "<< endl<< lambda *v<< endl;cout<< "... and A * v = "<< endl<< A.cast< complex< double > >()

cout<< "Consider the first eigenvalue, lambda = "<< lambda<< endl;VectorXcd v=es.eigenvectors().col(0);cout<< "If v is the corresponding eigenvector, then lambda * v = "<< endl<< lambda *v<< endl;cout<< "... and A * v = "<< endl<< A.cast< complex< double > > ( )

◆ es()

cout<< "Here is a random 6x6 matrix, A:" << endl << A << endl << endl;EigenSolver<MatrixXd> es ( A  )

Variable Documentation

◆ A

MatrixXd A

Definition at line 1 of file EigenSolver_EigenSolver_MatrixType.cpp.

◆ D

MatrixXcd D

Definition at line 14 of file EigenSolver_EigenSolver_MatrixType.cpp.

◆ lambda

cout<< "The eigenvalues of A are:" << endl << es.eigenvalues() << endl;cout << "The matrix of eigenvectors, V, is:" << endl << es.eigenvectors() << endl << endl;complex<double> lambda

Definition at line 8 of file EigenSolver_EigenSolver_MatrixType.cpp.

◆ V

MatrixXcd V

Definition at line 15 of file EigenSolver_EigenSolver_MatrixType.cpp.