This forum has been archived. All content is frozen. Please use KDE Discuss instead.

cwisenullaryop.h compilation error

Tags: None
(comma "," separated)
mjhmeyer
Registered Member
Posts
3
Karma
0
OS

cwisenullaryop.h compilation error

Mon Jun 21, 2010 5:05 pm
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
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
you need to #include <Eigen/Array> to use Random
mjhmeyer
Registered Member
Posts
3
Karma
0
OS
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


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]