11 #include <Eigen/Eigenvalues> 17 bool query_size = *lwork==-1;
20 if(*jobz!=
'N' && *jobz!=
'V') *info = -1;
22 else if(*n<0) *info = -3;
24 else if((!query_size) && *lwork<
std::max(1,3**n-1)) *info = -8;
52 matrix(a,*n,*n,*lda).setIdentity();
Computes eigenvalues and eigenvectors of selfadjoint matrices.
#define EIGEN_LAPACK_FUNC(FUNC, ARGLIST)
EIGEN_WEAK_LINKING int xerbla_(const char *msg, int *info, int)
SelfAdjointEigenSolver< PlainMatrixType > eig(mat, computeVectors?ComputeEigenvectors:EigenvaluesOnly)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
The matrix class, also used for vectors and row-vectors.