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

Map with an upper trangular matrix

Tags: None
(comma "," separated)
damien_d
Registered Member
Posts
15
Karma
0

Map with an upper trangular matrix

Mon Aug 26, 2013 6:31 am
Dear all,

I am trying to update a legacy application with hand-rolled matrix routines. I have noted there is a way I can interface the raw data pointers to Eigen via the map interface:
http://eigen.tuxfamily.org/dox-devel/gr ... Class.html

Unfortunately, one of the matrices I am most interested in is an upper triangular matrix in row-major format, i.e.

Code: Select all
1 2 3 4
0 5 6 7
0 0 8 9
0 0 0 10

stored as:
1 2 3 4 5 6 7 8 9 10


Is there a way for this to be easily mapped, or will I have to copy the data across?

-- Damien
jitseniesen
Registered Member
Posts
204
Karma
2
I am afraid this is not currently supported. We did briefly discuss this (and similar) packed storage schemes for triangular matrices, and it would be nice to have, but nobody has implemented it yet.
damien_d
Registered Member
Posts
15
Karma
0
jitseniesen wrote:I am afraid this is not currently supported. We did briefly discuss this (and similar) packed storage schemes for triangular matrices, and it would be nice to have, but nobody has implemented it yet.


Oh no! That's a little unfortunate.

Thanks anyway!

-- Damien


Bookmarks



Who is online

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