What is the most concise way to carry out multiplication like this?
# c's are scalars (or arrays like A's in general)
x = np.array([c1, c2, c3])
# A's are NumPy arrays
M = np.array([A1, A2, A3])
to get
x*M = [c1*A1, c2*A2, c3*A3]
c's are scalars, A's are NumPy numerical multidim arrays (let's say, matrices).
Example code:
x = np.array([1,2,3])
A = np.random.rand(2,2)
M = np.array([A,A,A])