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

vector to matrix conversion without copy

Tags: None
(comma "," separated)
tuncb
Registered Member
Posts
2
Karma
0
Hello all,

We have a series function in this form -> void func(Eigen::MatrixXd&)
Now we have to connect these function to another library that gives us Eigen::MatrixXd objects.

Thus we want to convert matrices that the library gives us to vectors and call our functions.
Is there any way to do this, without changing interfaces and copying data.

Thanks.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
I don't get it, you get Eigen::MatrixXd and want to call functions taking Eigen::MatrixXd& arguments, so what's the problem???


Bookmarks



Who is online

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