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

How can I get the address of the first matrix element?

Tags: None
(comma "," separated)
longflying
Registered Member
Posts
2
Karma
0
Hi ,
I want to use a pointer to access the matrix element in Eigen. How can I get the first address of a Eigen Matrix ? Thanks!

What I want to do is :

float *p = &A(0,0) //Eigen does not support this





longflying
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
That's as easy as: A.data()


Bookmarks



Who is online

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