11 #ifndef EIGEN_GENERALIZEDSELFADJOINTEIGENSOLVER_H 12 #define EIGEN_GENERALIZEDSELFADJOINTEIGENSOLVER_H 14 #include "./Tridiagonalization.h" 47 template<
typename _MatrixType>
53 typedef typename Base::Index Index;
54 typedef _MatrixType MatrixType;
162 template<
typename MatrixType>
164 compute(
const MatrixType& matA,
const MatrixType& matB,
int options)
166 eigen_assert(matA.cols()==matA.rows() && matB.rows()==matA.rows() && matB.cols()==matB.rows());
167 eigen_assert((options&~(EigVecMask|GenEigMask))==0
168 && (options&EigVecMask)!=EigVecMask
169 && ((options&GenEigMask)==0 || (options&GenEigMask)==
Ax_lBx 170 || (options&GenEigMask)==
ABx_lx || (options&GenEigMask)==
BAx_lx)
171 &&
"invalid option parameter");
173 bool computeEigVecs = ((options&EigVecMask)==0) || ((options&EigVecMask)==
ComputeEigenvectors);
178 int type = (options&GenEigMask);
185 MatrixType matC = matA.template selfadjointView<Lower>();
186 cholB.
matrixL().template solveInPlace<OnTheLeft>(matC);
187 cholB.
matrixU().template solveInPlace<OnTheRight>(matC);
193 cholB.
matrixU().solveInPlace(Base::m_eivec);
198 MatrixType matC = matA.template selfadjointView<Lower>();
206 cholB.
matrixU().solveInPlace(Base::m_eivec);
211 MatrixType matC = matA.template selfadjointView<Lower>();
219 Base::m_eivec = cholB.
matrixL() * Base::m_eivec;
227 #endif // EIGEN_GENERALIZEDSELFADJOINTEIGENSOLVER_H GeneralizedSelfAdjointEigenSolver(Index size)
Constructor, pre-allocates memory for dynamic-size matrices.
Definition: GeneralizedSelfAdjointEigenSolver.h:77
Used in SelfAdjointEigenSolver and GeneralizedSelfAdjointEigenSolver to specify that only the eigenva...
Definition: Constants.h:336
Definition: SelfAdjointEigenSolver.h:68
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
Used in GeneralizedSelfAdjointEigenSolver to indicate that it should solve the generalized eigenprobl...
Definition: Constants.h:347
Used in GeneralizedSelfAdjointEigenSolver to indicate that it should solve the generalized eigenprobl...
Definition: Constants.h:350
Used in GeneralizedSelfAdjointEigenSolver to indicate that it should solve the generalized eigenprobl...
Definition: Constants.h:344
detail::size< coerce_list< Ts... >> size
Get the size of a list (number of elements.)
Definition: Size.h:56
Used in SelfAdjointEigenSolver and GeneralizedSelfAdjointEigenSolver to specify that both the eigenva...
Definition: Constants.h:339
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition: LLT.h:50
Definition: GeneralizedSelfAdjointEigenSolver.h:48
Traits::MatrixL matrixL() const
Definition: LLT.h:104
SelfAdjointEigenSolver & compute(const MatrixType &matrix, int options=ComputeEigenvectors)
Computes eigendecomposition of given matrix.
Definition: SelfAdjointEigenSolver.h:392
Traits::MatrixU matrixU() const
Definition: LLT.h:97
GeneralizedSelfAdjointEigenSolver & compute(const MatrixType &matA, const MatrixType &matB, int options=ComputeEigenvectors|Ax_lBx)
Computes generalized eigendecomposition of given matrix pencil.
Definition: GeneralizedSelfAdjointEigenSolver.h:164
GeneralizedSelfAdjointEigenSolver(const MatrixType &matA, const MatrixType &matB, int options=ComputeEigenvectors|Ax_lBx)
Constructor; computes generalized eigendecomposition of given matrix pencil.
Definition: GeneralizedSelfAdjointEigenSolver.h:107
GeneralizedSelfAdjointEigenSolver()
Default constructor for fixed-size matrices.
Definition: GeneralizedSelfAdjointEigenSolver.h:63