我有一个3x10矩阵(以numpy数组的形式),并希望乘以3x3变换矩阵。我不认为np.dot正在进行全矩阵乘法。有没有一种方法与数组进行乘法运算?Numpy,乘3x3数组乘3x3数组?
transf = np.array([ [0.1, -0.4, 0],[0.9, 0.75, -0.1],[0.5, 0.75, -0.9] ])
one = [0,1,2,3,4,5,6,8,9]
two = [1,2,3,4,5,6,8,9,10]
three = [2,3,4,5,6,8,9,10,11]
data = np.array([ one, two, three ])
new_data = np.dot(transf,data)
是否有一个圆点函数,它整个矩阵乘法,而不是仅仅"For N dimensions it is a sum product over the last axis of a and the second-to-last of b"
[documentation](http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.dot.html)指出,对于2d阵列,'np.dot'等同于矩阵乘法... – mgilson