[Numpy-discussion] help(numpy.dot) Hmmm.
Charles R Harris
Sun Dec 20 20:52:18 CST 2009
On Sun, Dec 20, 2009 at 7:37 PM, Wayne Watson
> I've just become acquainted with the help command in WinXP IDLE.
> help(numyp.sin) works fine. What's going on with dot?
> >>> help(numpy.core.multiarray.dot)
> Help on built-in function dot in module numpy.core.multiarray:
> Is there help for dot?
Yes, but you may be using an old version of numpy. What does
numpy.__version__ say? You can also find documentation on the
scipy.orgsite. Here is part of the current help:
Help on built-in function dot in module numpy.core._dotblas:
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])
a : array_like
b : array_like
output : ndarray
Returns the dot product of `a` and `b`. If `a` and `b` are both
scalars or both 1-D arrays then a scalar is returned; otherwise
an array is returned.
If the last dimension of `a` is not the same size as
the second-to-last dimension of `b`.
vdot : Complex-conjugating dot product.
tensordot : Sum products over arbitrary axes.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion