mlx.core.full#
- full(shape: int | Sequence[int], vals: scalar | array, dtype: Dtype | None = None, *, stream: None | Stream | Device = None) array#
Construct an array with the given value.
Constructs an array of size
shapefilled withvals. Ifvalsis anarrayit must be broadcastable to the givenshape.- Parameters:
- Returns:
The output array with the specified shape and values.
- Return type: