Generate raw random bits on MLX arrays
Usage
mlx_key_bits(dim, width = 4L, key = NULL, device = mlx_default_device())Arguments
- dim
Integer vector specifying array dimensions (shape).
- width
Number of bytes per element (default 4 = 32 bits). Must be positive.
- key
Optional
mlxkey array. If omitted, MLX's default generator is used.- device
Execution target: supply
"gpu","cpu", or anmlx_streamcreated viamlx_new_stream(). Defaults to the currentmlx_default_device()unless noted otherwise (helpers that act on an existing array typically reuse that array's device or stream).