Functions | Variables
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 = MatrixXd::Random(6,6)
MatrixXcd D = es.eigenvalues().asDiagonal()
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 = es.eigenvalues()[0]
MatrixXcd V = es.eigenvectors()

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<< "Here is a random 6x6 matrix, A:" << endl << A << endl << endl;EigenSolver<MatrixXd> es ( A  )

Variable Documentation

MatrixXd A = MatrixXd::Random(6,6)

Definition at line 1 of file EigenSolver_EigenSolver_MatrixType.cpp.

MatrixXcd D = es.eigenvalues().asDiagonal()

Definition at line 14 of file EigenSolver_EigenSolver_MatrixType.cpp.

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 = es.eigenvalues()[0]

Definition at line 8 of file EigenSolver_EigenSolver_MatrixType.cpp.

MatrixXcd V = es.eigenvectors()

Definition at line 15 of file EigenSolver_EigenSolver_MatrixType.cpp.



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