Registered Member
|
Can anyone please suggest a way to perform element-wise multiplication of two sparsevectors?
|
Moderator
|
You can use cwiseProduct from the Matrix-coefficient-wise-API (http://eigen.tuxfamily.org/dox-devel/gr ... tml#title6):
c = a.cwiseProduct(b); |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]