mlx.core.full#
- mlx.core.full(shape: Union[int, List[int]], vals: Union[scalar, array], dtype: Optional[Dtype] = None, *, stream: Union[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: