dpnp.outer
- dpnp.outer(x1, x2, **kwargs)[source]
Returns the outer product of two arrays.
For full documentation refer to
numpy.outer.Limitations
Parameters
x1andx2are supported asdpnp.ndarray. 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.einsumEvaluates the Einstein summation convention on the operands.
dpnp.innerReturns the inner product of two arrays.
Examples
>>> import dpnp as np >>> a = np.array([1, 1, 1]) >>> b = np.array([1, 2, 3]) >>> result = np.outer(a, b) >>> [x for x in result] [1, 2, 3, 1, 2, 3, 1, 2, 3]