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

Eigenvector

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

Eigenvector

Sun Nov 09, 2008 12:37 am
Hi,

I have downloaded the Eigen-2.0-beta1 library and have included it with visual studio 2005. I am trying to find the Eigenvector of a matrix by using the function eigenvectors() but I am getting the following error.

error C2039: 'eigenvectors' : is not a member of 'Eigen::Matrix'
1> with
1> [
1> _Scalar=double,
1> _Rows=3,
1> _Cols=3
1> ]

I am able to find the eigenvalues for that matrix by using eigenvalues().

Please let me know where am I goin wrong?
Thanks a lot.
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

RE: Eigenvector

Sun Nov 09, 2008 2:51 pm
You seem to be trying to call eigenvectors() as a method of Eigen::Matrix, which does not have such a method, so the compiler tells you about it.

I think you are looking for EigenSolver


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
stony
Registered Member
Posts
3
Karma
0

RE: Eigenvector

Sun Nov 09, 2008 3:43 pm
Yah your right. Do you know any method by which I can get the eigenvectors?[/align]
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

RE: Eigenvector

Sun Nov 09, 2008 7:02 pm
From the API docs I'd say you'll need to create an instance of an Eigen::EigenSolver using the same template specialization you used for the matrix and pass the matrix to its constructor.

Then you can call eigenvectors() on this new instance.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
stony
Registered Member
Posts
3
Karma
0

RE: Eigenvector

Sun Nov 09, 2008 8:23 pm
ok. Thanks a lot..:-)


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]