dpnp.outer

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

Returns the outer product of two arrays.

For full documentation refer to numpy.outer.

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. Input array data types are limited by supported DPNP Data types.

See also

dpnp.einsum

Evaluates the Einstein summation convention on the operands.

dpnp.inner

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