Matrixmultiplikation 2-D und 1-DPython

Python-Programme
Guest
 Matrixmultiplikation 2-D und 1-D

Post by Guest »

Beispiel:

Code: Select all

import numpy as np

x = np.array([[1., 2., 3.], [4., 5., 6.]])
y = np.ones(3)

np.dot(x , y)
Ergebnis:

Code: Select all

array([ 6., 15.])
Wie ist das möglich, wenn ich eine Matrix von (2x3) mal (1x3) habe? Es sollte eine 3x1-Matrix sein.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • Batch-Matrixmultiplikation in Numpy
    by Guest » » in Python
    0 Replies
    2 Views
    Last post by Guest
  • Matrixmultiplikation im Protokollraum für die Summe der Exponenten
    by Guest » » in Python
    0 Replies
    2 Views
    Last post by Guest