Go to the documentation of this file.
10 #define EIGEN_RUNTIME_NO_MALLOC
13 #include <Eigen/Eigenvalues>
25 typedef std::complex<Scalar> ComplexScalar;
43 std::sort(realEigenvalues.data(), realEigenvalues.data()+realEigenvalues.size());
#define VERIFY_IS_MUCH_SMALLER_THAN(a, b)
Computes the generalized eigenvalues and eigenvectors of a pair of general matrices.
#define VERIFY_IS_EQUAL(a, b)
GeneralizedEigenSolver & compute(const MatrixType &A, const MatrixType &B, bool computeEigenvectors=true)
Computes generalized eigendecomposition of given matrix.
const EIGEN_DEVICE_FUNC RealVectorType & eigenvalues() const
Returns the eigenvalues of given matrix.
EIGEN_DECLARE_TEST(eigensolver_generalized_real)
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_1(FUNC)
void generalized_eigensolver_real(const MatrixType &m)
SelfAdjointEigenSolver< PlainMatrixType > eig(mat, computeVectors?ComputeEigenvectors:EigenvaluesOnly)
#define CALL_SUBTEST_2(FUNC)
#define VERIFY_IS_APPROX(a, b)
Computes eigenvalues and eigenvectors of the generalized selfadjoint eigen problem.
#define EIGEN_TEST_MAX_SIZE
The matrix class, also used for vectors and row-vectors.
EigenvalueType eigenvalues() const
Returns an expression of the computed generalized eigenvalues.
GeneralizedSelfAdjointEigenSolver & compute(const MatrixType &matA, const MatrixType &matB, int options=ComputeEigenvectors|Ax_lBx)
Computes generalized eigendecomposition of given matrix pencil.
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
static constexpr double k
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Wed May 28 2025 03:01:15