请问这是numpy的广播机制吗,要实现这个应该如何写代码。题目如下图所示
import numpy as np a=np.array(range(1, 16)) b=np.array([2, 3, 4]) res = np.reshape(b, (3, 1)) *a print(res)