我有一個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