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
shape
filled withvals
. Ifvals
is anarray
it must be broadcastable to the givenshape
.- Parameters:
- Returns:
The output array with the specified shape and values.
- Return type: