numpy.inner()

numpy.inner

numpy.inner(a, b)

Inner product of two arrays.

Ordinary inner product of vectors for 1-D arrays (without complex conjugation), in higher dimensions a sum product over the last axes.

Parameters:

a, b : array_like

If a and b are nonscalar, their last dimensions must match.

Returns:

out : ndarray

out.shape = a.shape[:-1] + b.shape[:-1]

Raises:

登录查看完整内容