I have a list of arrays (factors) that I want to first multiply by a list of scalars (weights) and then sum the elements of the product of each array. I have tried the following but I get an error. Any suggestion would be highly appreciated.
factors = np.array([[f1], [f2], [f3]])
weights = np.array([0.333, 0.333, 0.333])
prod = np.sum(factors.transpose()*weights)