I have a 2 dimensional 3x3
array e.g.:
(4,5,6
8, 10, 12
12,15,18 )
I would like to multiply this by a vector (1,2,3)
so that I end up with a 3x3x3
array where along the third dimension all the elements of the original array are multiplied by 1, 2 or 3 respectively. How do it do this in python?