dpnp.inner

dpnp.inner(x1, x2, **kwargs)[source]

Returns the inner product of two arrays.

For full documentation refer to numpy.inner.

Limitations

Parameters x1 and x2 are supported as dpnp.ndarray. Keyword arguments kwargs are currently unsupported. Otherwise the functions will be executed sequentially on CPU.

See also

dpnp.einsum

Evaluates the Einstein summation convention on the operands.

dpnp.dot

Returns the dot product of two arrays.

dpnp.tensordot

Compute tensor dot product along specified axes.

Input

Examples

>>> 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]