Is there an equivalent Matlab dot function in numpy?
The dot function in Matlab:
For multidimensional arrays A and B, dot returns the scalar product along the first non-singleton dimension of A and B. A and B must have the same size.
In numpy the following is similar but not equivalent:
dot (A.conj().T, B)
In MATLAB,
dot(A,B)of two matricesAandBof same size is simply:Equivalent Python/Numpy: