dpnp.inner
- dpnp.inner(x1, x2, **kwargs)[source]
Returns the inner product of two arrays.
For full documentation refer to
numpy.inner.Limitations
Parameters
x1andx2are supported asdpnp.ndarray. Keyword argumentskwargsare currently unsupported. Otherwise the functions will be executed sequentially on CPU.See also
dpnp.einsumEvaluates the Einstein summation convention on the operands.
dpnp.dotReturns the dot product of two arrays.
dpnp.tensordotCompute tensor dot product along specified axes.
InputExamples
>>> import dpnp as np >>> a = np.array([1,2,3]) >>> b = np.array([0, 1, 0]) >>> result = np.inner(a, b) >>> [x for x in result] [2]