iarray.empty#

iarray.empty(shape: Sequence, cfg: Optional[Config] = None, **kwargs) IArray#

Return an empty array.

An empty array has no data and needs to be filled via a write iterator.

Parameters
  • shape (tuple, list) – The shape of the array to be created.

  • cfg (Config) – The configuration for running the expression. If None (default), global defaults are used.

  • kwargs (dict) – A dictionary for setting some or all of the fields in the Config dataclass that should override the current configuration.

Returns

The new array.

Return type

IArray container