Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.outer

Contents

jax.numpy.outer#

jax.numpy.outer(a,b,out=None)[source]#

Compute the outer product of two arrays.

JAX implementation ofnumpy.outer().

Parameters:
Returns:

The outer product of the inputsa andb. Returned arraywill be of shape(a.size,b.size).

Return type:

Array

See also

Examples

>>>a=jnp.array([1,2,3])>>>b=jnp.array([4,5,6])>>>jnp.outer(a,b)Array([[ 4,  5,  6],       [ 8, 10, 12],       [12, 15, 18]], dtype=int32)
Contents

[8]ページ先頭

©2009-2025 Movatter.jp