Ich habe eine 3x10-Matrix (in Form eines numply-Arrays) und möchte sie mit einer 3x3-Transformationsmatrix multiplizieren. Ich glaube nicht, dass np.dot die volle Matrixmultiplikation durchführt. Gibt es eine Methode für diese Multiplikation mit Arrays?Numpy, multiplizieren Sie 3x3 Array mit 3x10 Array?
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)
Gibt es eine Punktfunktion, die die gesamte Matrix-Multiplikation der Fall ist, nicht nur "For N dimensions it is a sum product over the last axis of a and the second-to-last of b"
Die [Dokumentation] (http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.dot.html) besagt, dass für 2D-Arrays "np.dot" äquivalent ist Matrix-Multiplikation ... – mgilson