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

EIGEN_TEST_FUNC must be defined

Tags: None
(comma "," separated)
dsathya1985
Registered Member
Posts
5
Karma
0

EIGEN_TEST_FUNC must be defined

Tue Nov 02, 2010 2:00 pm
Hello,
When i tried to compile 'SVD.cpp' i get the following error:

1>c:\users\sathya\documents\visual studio 2010\projects\single value decomp\single value decomp\main.h(33): fatal error C1189: #error : EIGEN_TEST_FUNC must be defined

Also which '.cpp' should i complie to get the SVD of a matrix.?
Please help me out.

Thank you
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: EIGEN_TEST_FUNC must be defined

Tue Nov 02, 2010 2:22 pm
There is nothing to compile to use Eigen. Here you are trying to compile a unit test.

Please have a look at our documentation:

http://eigen.tuxfamily.org/dox-devel/index.html

and for the SVD:

#include <Eigen/SVD>


/* ... */


MatrixXd A(m,n);
// fill A

JacobiSVD<MatrixXd> svd(A);

and then have a llok at the documentation of the JacobiSVD class to know how to use this object:

http://eigen.tuxfamily.org/dox-devel/cl ... l#_details
dsathya1985
Registered Member
Posts
5
Karma
0

Re: EIGEN_TEST_FUNC must be defined

Tue Nov 02, 2010 2:44 pm
Thank u very much for your reply.

It would be really helpful if i could be provided with a simple code as an example for getting 'U,S and V* ' for a 3x3 matrix.

Sorry for being naive.

Thank you


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient