私は3x10の行列(数値配列の形式)を持ち、3x3変換行列でそれを乗算したいと考えています。私はnp.dotが完全な行列の乗算をしているとは思わない。この乗法を配列で行う方法はありますか?ナンシー、3x3アレイを3x10アレイで掛けますか?
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)
全体行列の乗算を行うドット関数は、あなたがtransf
の最後の2つのエントリでコンマが欠落しているだけで"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)には、2次元配列の場合、 'np.dot'は行列乗算... – mgilson