With pandas/numpy, a 2x2 matrix multiplied with a 2x1 matrix will result in each column in 2x2 matrix by corresponding column value in 2x1 matrix. Ex. The following with numpy
>>> data = np.array([[1, 2], [3, 4]])
>>> data
array([[1, 2],
[3, 4]])
>>> data * [2, 4]
array([[ 2, 8],
[ 6, 16]])
How can this operation be done with spark/breeze? I tried unsuccessfully with new DenseVector(2, 2, Array(1,2,3,4)) * DenseVector(2, 4)
.