10 #define EIGEN_RUNTIME_NO_MALLOC 13 #include <Eigen/Eigenvalues> 25 typedef std::complex<Scalar> ComplexScalar;
32 MatrixType spdA = a.adjoint() * a + a1.adjoint() * a1;
42 VectorType realEigenvalues = eig.
eigenvalues().real();
43 std::sort(realEigenvalues.data(), realEigenvalues.data()+realEigenvalues.size());
75 eig1.
compute(a.adjoint() *
a,b.adjoint() *
b);
77 eig2.
compute(a.adjoint() *
a,b.adjoint() *
b);
void generalized_eigensolver_real(const MatrixType &m)
ComplexVectorType alphas() const
GeneralizedEigenSolver & compute(const MatrixType &A, const MatrixType &B, bool computeEigenvectors=true)
Computes generalized eigendecomposition of given matrix.
EigenvectorsType eigenvectors() const
#define VERIFY_IS_APPROX(a, b)
#define VERIFY_IS_EQUAL(a, b)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Computes eigenvalues and eigenvectors of the generalized selfadjoint eigen problem.
SelfAdjointEigenSolver< PlainMatrixType > eig(mat, computeVectors?ComputeEigenvectors:EigenvaluesOnly)
EigenvalueType eigenvalues() const
Returns an expression of the computed generalized eigenvalues.
#define VERIFY_IS_MUCH_SMALLER_THAN(a, b)
EIGEN_DEVICE_FUNC const RealVectorType & eigenvalues() const
Returns the eigenvalues of given matrix.
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define EIGEN_TEST_MAX_SIZE
GeneralizedSelfAdjointEigenSolver & compute(const MatrixType &matA, const MatrixType &matB, int options=ComputeEigenvectors|Ax_lBx)
Computes generalized eigendecomposition of given matrix pencil.
void test_eigensolver_generalized_real()
The matrix class, also used for vectors and row-vectors.
Computes the generalized eigenvalues and eigenvectors of a pair of general matrices.