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

incomplete type error

Tags: None
(comma "," separated)
wingsit
Registered Member
Posts
28
Karma
0
OS

incomplete type error

Sun May 16, 2010 11:38 pm
I have the following

MatrixXd G = some_fun_that_return_MatrixXd();
G.lu();

and I get an error from GCC that says

ndim_fun_obj.cpp:24: error: invalid use of incomplete type ‘const struct Eigen::PartialPivLU<Eigen::Matrix<double, 33331, 33331, 0, 33331, 33331> >’
./Eigen/src/Core/util/ForwardDeclarations.h:153: error: declaration of ‘conststruct Eigen::PartialPivLU<Eigen::Matrix<double, 33331, 33331, 0, 33331, 333

Am I missing something obvious?
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: incomplete type error

Mon May 17, 2010 12:41 am
#include<Eigen/LU>

Yes, the devel branch needs documentation love...


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
wingsit
Registered Member
Posts
28
Karma
0
OS

Re: incomplete type error

Mon May 17, 2010 2:05 am
Now I get the

ndim_fun_obj.cpp:26: error: no matching function for call to ‘Eigen::PartialPivLU<Eigen::Matrix<double, 33331, 33331, 0, 33331, 33331> >::solve(const Eigen:\
:CwiseUnaryOp<Eigen::ei_scalar_opposite_op<double>, Eigen::Matrix<double, 33331, 1, 0, 33331, 1> >, Eigen::VectorXd**) const’

I have

#include<Eigen/LU>
#include<Eigen/Core>
using namespace Eigen;

How is the namespace managed? Are they all under Eigen?
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: incomplete type error

Mon May 17, 2010 2:07 am
the new solve() API is: result = lu.solve(right_hand_side)


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
wingsit
Registered Member
Posts
28
Karma
0
OS

Re: incomplete type error

Mon May 17, 2010 2:13 am
Thank you... my stupidity for not looking at the right doc


Bookmarks



Who is online

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