How do I find generalized Eigen Values, Vectors using Eigen3 library?
In octave, matlab, the eigen value function is of the form: [V, lambda] = eig (A, B).
I could only find this Class in Eigen3 lib but was not helpful in validating the results from above matlab/octave code.
You’ll want to use the
EigenSolverclass which is located in theEigen/Eigenvaluesheader. Either use theEigenSolverconstructor that takes a matrix parameter or of or call thecomputemethod with a matrix and it will solve for that matrix’s eigenvalues and eigenvectors. Then you can use theeigenvalues()andeigenvectors()methods to retrieve the eigenvalues and eigenvectors.