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

Vector representing a symetric matrix

Tags: None
(comma "," separated)
trrrigo
Registered Member
Posts
13
Karma
0
Hi,
I'm converting a function which one of the argument is a vector that represent a symetric matrix.
For exemple for a 3*3 matrix the vector is (a11 a12 a13 a21 a22 a23 a31 a32 a33).
Is there a way to use directly or to convert to a matrice a vector like that with Eigen?
I know it's easy to convert it myself but i think it will require a lot of time...
Thanks
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Nope, you need to write one for loop and map each row individually...


Bookmarks



Who is online

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