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
x1andx2are supported asdpnp.ndarrayof the same type. Keyword argumentskwargsare 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.tensordotSum products over arbitrary axes.
dpnp.vdotComplex-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