numpy.dot(a, b, out=None)
Dot product of two arrays. For 2-D arrays it is equivalent to matrix multiplication, and for 1-D arrays to inner product of vectors (without complex conjugation). For N dimensions it is a sum product over the last axis of a and the second-to-last of b: dot(a, b)[i,j,k,m] = sum(a[i,j,:] * b[k,:,m])
Parameters:
a : array_like First argument. b : array_like Second argument. out : ndarray, optional Output argument. This must have the exact kind that would be ret