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

JacobiSVD with "incomplete type" error

Tags: None
(comma "," separated)
pichak
Registered Member
Posts
2
Karma
0
hi there

I'm trying to use the JacobiSVC function as follows:

MatrixXd Cross(3,3);
Cross = Matrix3d::Zero();
//do stuff with Cross
Eigen::JacobiSVD<Eigen::MatrixXd> svd(Cross, Eigen::ComputeThinV | Eigen::ComputeThinU);
//error: variable ‘Eigen::JacobiSVD<Eigen::Matrix<double, -0x00000000000000001, -0x00000000000000001>, 2> svd’ has initializer but incomplete typ

I'm using gcc 4.6.3 and eigen3 on ubuntu 12.04.

Does anyone know how to fix this error?
jitseniesen
Registered Member
Posts
204
Karma
2
You probably forgot to include the SVD header file: #include <Eigen/SVD>
pichak
Registered Member
Posts
2
Karma
0
Thanks, works like a charm now!


Bookmarks



Who is online

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