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

Issue using constructor to initialize vector3d

Tags: None
(comma "," separated)
ingfu
Registered Member
Posts
2
Karma
0
Hallo,

I'm quite new to eigen and facing a problem I cant figure out myself.
I'm using msvc 10 and trying to initialise a vector by

Code: Select all
Vector3d xi(10.0, 0.0, 0.0);


where

Code: Select all
typedef Eigen::Matrix <double, 3, 1 >      Vector3d;


This results in a compiler error YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES.
Same behaviour with

Code: Select all
Vector3d xd;
xd << -10.0, 0.0, 0.0;



An ideas? Cheers
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
this error probably comes from another line of your code.
ingfu
Registered Member
Posts
2
Karma
0
Yeah, I just discovered, that I left out the function name a line afterwards. I just focused on the line the compiler pointed at. Sorry bothering you.


Bookmarks



Who is online

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