iarray.full#

iarray.full(shape: Union[int, Tuple[int, ...]], fill_value: Union[bool, int, float], *, device: Optional[Literal['cpu']] = None, cfg: Optional[Config] = None, **kwargs) IArray#

Return a new array of given shape and type, filled with fill_value.

shape, device, cfg and kwargs are the same than for empty().

Returns

The new array.

Return type

IArray container

See also

empty

Create an empty array.

zeros

Create an array filled with zeros.