Code: Alles auswählen
a = np.array( [1,2,3])
b = np.array( [ [1], [2], [3] )
b*a
a*b
array([[1, 2, 3],
[2, 4, 6],
[3, 6, 9]])
das gleiche Ergebnis wie np.multiply(b,a)
Elementweise wäre doch np.dot ?
Wie kann ich mir Spalten und Zeilenvektoren in Python bzw. numpy vorstellen ?