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<< "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 = MatrixXd::Random(6,6)

Definition at line 1 of file EigenSolver_EigenSolver_MatrixType.cpp.

◆ D

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

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

Definition at line 8 of file EigenSolver_EigenSolver_MatrixType.cpp.

◆ V

MatrixXcd V = es.eigenvectors()

Definition at line 15 of file EigenSolver_EigenSolver_MatrixType.cpp.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:46