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

Multiply eigen sparse matrix with an STL vector

Tags: None
(comma "," separated)
pamparana
Registered Member
Posts
18
Karma
0
I have an eigen sparse matrix and I would like to multiply it with a vector. However, my vector is stored in a STL vector container because of the way the whole thing is designed. So, I have something like:

Code: Select all

std::vector<float> values;
Eigen::SparseMatrix<float> some_mat;

....
float * vec = &values[0];



Now, is there some facility to do something like:

Code: Select all
some_mat * vec;
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS


Bookmarks



Who is online

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