Registered Member
|
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. |
KDE Developer
|
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.
|
Registered Member
|
Yah your right. Do you know any method by which I can get the eigenvectors?[/align]
|
KDE Developer
|
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.
|
Registered Member
|
Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]