How to compute a multiplication between a matrixand a number
JunshengShen
What kind of product do you need? You want to scale each matrix element by the same scalar? Try this: <SCODE>a = ...
b = ...
b * a.expand_as(b)
<ECODE>
apaszke
I am wondering if using expand_as is efficient in this case ? does it store only the original value and the repetitions across each axis or something similar ?  it would be cheaper to divide each matrix element by the same value without having to create the whole matrix containing the same values.
IssamLaradji