iarray.zeros#

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

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

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.

ones

Create an array filled with ones.