11#ifndef EIGEN_GENERALIZEDSELFADJOINTEIGENSOLVER_H
12#define EIGEN_GENERALIZEDSELFADJOINTEIGENSOLVER_H
47template<
typename _MatrixType>
161template<
typename MatrixType>
165 eigen_assert(matA.cols()==matA.rows() && matB.rows()==matA.rows() && matB.cols()==matB.rows());
170 &&
"invalid option parameter");
184 MatrixType matC = matA.template selfadjointView<Lower>();
185 cholB.
matrixL().template solveInPlace<OnTheLeft>(matC);
186 cholB.
matrixU().template solveInPlace<OnTheRight>(matC);
192 cholB.
matrixU().solveInPlace(Base::m_eivec);
197 MatrixType matC = matA.template selfadjointView<Lower>();
205 cholB.
matrixU().solveInPlace(Base::m_eivec);
210 MatrixType matC = matA.template selfadjointView<Lower>();
218 Base::m_eivec = cholB.
matrixL() * Base::m_eivec;
#define eigen_assert(x)
Definition: Macros.h:1047
\eigenvalues_module
Definition: GeneralizedSelfAdjointEigenSolver.h:49
GeneralizedSelfAdjointEigenSolver()
Default constructor for fixed-size matrices.
Definition: GeneralizedSelfAdjointEigenSolver.h:62
GeneralizedSelfAdjointEigenSolver & compute(const MatrixType &matA, const MatrixType &matB, int options=ComputeEigenvectors|Ax_lBx)
Computes generalized eigendecomposition of given matrix pencil.
Definition: GeneralizedSelfAdjointEigenSolver.h:163
_MatrixType MatrixType
Definition: GeneralizedSelfAdjointEigenSolver.h:53
GeneralizedSelfAdjointEigenSolver(Index size)
Constructor, pre-allocates memory for dynamic-size matrices.
Definition: GeneralizedSelfAdjointEigenSolver.h:76
GeneralizedSelfAdjointEigenSolver(const MatrixType &matA, const MatrixType &matB, int options=ComputeEigenvectors|Ax_lBx)
Constructor; computes generalized eigendecomposition of given matrix pencil.
Definition: GeneralizedSelfAdjointEigenSolver.h:106
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition: LLT.h:68
Traits::MatrixU matrixU() const
Definition: LLT.h:128
Traits::MatrixL matrixL() const
Definition: LLT.h:135
\eigenvalues_module
Definition: SelfAdjointEigenSolver.h:77
Eigen::Index Index
Definition: SelfAdjointEigenSolver.h:90
_MatrixType MatrixType
Definition: SelfAdjointEigenSolver.h:80
type
Definition: core.h:575
@ GenEigMask
Definition: Constants.h:418
@ EigVecMask
Definition: Constants.h:407
@ Ax_lBx
Used in GeneralizedSelfAdjointEigenSolver to indicate that it should solve the generalized eigenprobl...
Definition: Constants.h:410
@ ComputeEigenvectors
Used in SelfAdjointEigenSolver and GeneralizedSelfAdjointEigenSolver to specify that both the eigenva...
Definition: Constants.h:405
@ BAx_lx
Used in GeneralizedSelfAdjointEigenSolver to indicate that it should solve the generalized eigenprobl...
Definition: Constants.h:416
@ ABx_lx
Used in GeneralizedSelfAdjointEigenSolver to indicate that it should solve the generalized eigenprobl...
Definition: Constants.h:413
@ EigenvaluesOnly
Used in SelfAdjointEigenSolver and GeneralizedSelfAdjointEigenSolver to specify that only the eigenva...
Definition: Constants.h:402
EIGEN_CONSTEXPR Index size(const T &x)
Definition: Meta.h:479
Namespace containing all symbols from the Eigen library.
Definition: MatrixExponential.h:16