mat_multi.py
import numpy as np
a=np.array([[1,2], [3,4]])
b=np.array([[5,6], [7,8]])
#a.*b in MATLAB
x=a*b
print (x)
#[[ 5 12]
# [21 32]]
#a*b in MATLAB
y=np.dot(a,b)
print (y)
#[[19 22]
# [43 50]]
####################
#You pointed out.
y=a@b
But it seems that you can go.
Note that it is the opposite of MATLAB.
Recommended Posts