I have two vector of matrix AL = [ A1, A2, ..., An ]
and wL = [ w1, w2, ..., wn ]
, I want to obtain the array of [ A1.*w1, ..., An.*wn ]
, but AL.* wL
gives me [ A1*w1, ..., An*wn ]
. Is there any methods could make all the multiplicities into element-wise?
map(.*, AL, wL)
should do what you want.
2 Likes