randn#

cuequivariance_jax.randn(
key: Array,
rep: Rep,
leading_shape: tuple[int, ...] = (),
dtype: dtype | None = None,
) RepArray#

Generate a random cuex.RepArray.

Parameters:
  • key (jax.Array) – Random key.

  • rep (Rep) – representation.

  • leading_shape (tuple[int, ...], optional) – Leading shape of the array. Defaults to ().

  • dtype (jnp.dtype) – Data type of the array.

Returns:

Random RepArray.

Return type:

RepArray

Example

>>> key = jax.random.key(0)
>>> rep = cue.IrrepsAndLayout(cue.Irreps("O3", "2x1o"), cue.ir_mul)
>>> cuex.randn(key, rep, ())
{0: 2x1o} [...]