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

how to init sparse vector from a double array

Tags: None
(comma "," separated)
cuckootan
Registered Member
Posts
1
Karma
0
I know the way to init dense vector from an array is as follows:
VectorXd vec = Map<VectorXd>(ptr, size)

Now, I want to init sparse vector from an array (or pointer and size). Like dense vector, I try to use "Map" to init sparse vector, but failed...

Is there someone that can help me solve this problem?


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell