matrix - Lua/torch multiplication of 1D and 2D tensors -


i trying multiply 2 matrices in lua dimensions a=40,000x1 , b=1x40,000. in lua, 40,000x1 matrix showing 1d tensor , 1x40,000 matrix showing 2d tensor. whenever, try multiply them using a*b, error showing up: multiplication between 1d , 2d tensors not yet supported. cannot iteratively go through each index because function used regularly in program , considerably increase time of execution. how can multiply a , b?

use view:

c = a:view(40000, 1) * b