dpnp.dot
- dpnp.dot(x1, x2, **kwargs)[source]
Returns the dot product of x1 and x2.
For full documentation refer to
numpy.dot
.Limitations
Parameters
x1
andx2
are supported asdpnp.ndarray
of the same type. Keyword argumentskwargs
are currently unsupported. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.See also
dpnp.tensordot
Sum products over arbitrary axes.
dpnp.vdot
Complex-conjugating dot product.
Examples
>>> import dpnp as np >>> np.dot(3, 4) 12 >>> a = np.array([1, 2, 3]) >>> b = np.array([1, 2, 3]) >>> np.dot(a, b) 14