10 #define EIGEN_RUNTIME_NO_MALLOC 13 #include <Eigen/Eigenvalues> 25 typedef std::complex<Scalar> ComplexScalar;
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);
#define CALL_SUBTEST_4(FUNC)
EigenvalueType eigenvalues() const
Returns an expression of the computed generalized eigenvalues.
#define CALL_SUBTEST_3(FUNC)
void generalized_eigensolver_real(const MatrixType &m)
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)
#define CALL_SUBTEST_1(FUNC)
EIGEN_DEVICE_FUNC const RealVectorType & eigenvalues() const
Returns the eigenvalues of given matrix.
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)
EIGEN_DECLARE_TEST(eigensolver_generalized_real)
#define VERIFY_IS_MUCH_SMALLER_THAN(a, b)
#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.
#define CALL_SUBTEST_2(FUNC)
The matrix class, also used for vectors and row-vectors.
Computes the generalized eigenvalues and eigenvectors of a pair of general matrices.
ComplexVectorType alphas() const