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

How can I normalize a sparse vector ?

Tags: None
(comma "," separated)
Tarek
Registered Member
Posts
12
Karma
0

How can I normalize a sparse vector ?

Wed Oct 05, 2011 10:46 am
How can I normalize a sparse vector in Eigen ?
Thanks
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
the normalized() / normalize() methods are indeed missing but the following does the job:

spv /= spv.norm();


Bookmarks



Who is online

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