7 #ifndef SYM_GEIGS_SOLVER_H 8 #define SYM_GEIGS_SOLVER_H 160 template <
typename Scalar,
165 public SymEigsBase<Scalar, SelectionRule, SymGEigsCholeskyOp<Scalar, OpType, BOpType>, IdentityBOp>
214 Matrix eigenvectors(Index nvec)
const 217 Vector tmp(res.
rows());
218 const Index nconv = res.
cols();
219 for (Index
i = 0;
i < nconv;
i++)
221 m_Bop->upper_triangular_solve(&
res(0,
i), tmp.data());
222 res.col(
i).noalias() = tmp;
228 Matrix eigenvectors()
const 276 template <
typename Scalar,
281 public SymEigsBase<Scalar, SelectionRule, SymGEigsRegInvOp<Scalar, OpType, BOpType>, BOpType>
326 #endif // SYM_GEIGS_SOLVER_H
Using Cholesky decomposition to solve generalized eigenvalues.
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > Matrix
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
SymGEigsSolver(OpType *op, BOpType *Bop, Index nev, Index ncv)
Regular inverse mode for generalized eigenvalue solver.
SymGEigsSolver(OpType *op, BOpType *Bop, Index nev, Index ncv)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT