Registered Member
|
Greetings,
I have the latest stable release 2.0.13.. When trying to compile #include <Eigen/QR> using namespace Eigen; void testEigenValue(){ MatrixXd F = MatrixXd::Random(10,100); SelfAdjointEigenSolver<MatrixXd> eiSymm(F*F.transpose()); MatrixXd Ut=eiSymm.eigenvectors().transpose(); MatrixXd L=eiSymm.eigenvalues().asDiagonal(); cout << "Eigenvalues: \n" << L; } with MSVC10 I get the following compilation error: error C2039: 'IsRepeatable' : is not a member of 'Eigen::ei_functor_traits<T>' \eigen\src\core\cwisenullaryop.h 51 1 error C2065: 'IsRepeatable' : undeclared identifier \eigen\src\core\cwisenullaryop.h 51 1 error C2057: expected constant expression \eigen\eigen\src\core\cwisenullaryop.h 51 1 error C2079: 'Eigen::CwiseNullaryOp<NullaryOp,MatrixType>::m_functor' uses undefined struct 'Eigen::ei_scalar_random_op<Scalar>' \eigen\src\core\cwisenullaryop.h 104 1 What could be the problem? Many thanks, Michael |
Moderator
|
you need to #include <Eigen/Array> to use Random
|
Registered Member
|
I have switched to the latest unstable release.
It's working there. I look forward to 3.0! Many thanks for this awesome library. Michael |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]