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

How to do cross product of VectorXd?

Tags: None
(comma "," separated)
kde-crazy
Registered Member
Posts
20
Karma
0
Since .cross() is only available for fixed-length vetor, so how to do cross product
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Do you want a cross product between 3D vectors or a generalized wedge product? In the first case tell Eigen they are 3D, e.g.:

v1.head<3>().cross(v2.head<3>())

or use compile time 3D vectors in the first place.
kde-crazy
Registered Member
Posts
20
Karma
0
Thank you!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]