fields.buffers.core.UnytArrayBuffer.empty#

classmethod UnytArrayBuffer.empty(shape, *args, units: str = '', **kwargs) UnytArrayBuffer[source]#

Return a new array of given shape and type, without initializing entries.

Parameters:
  • shape (tuple of int) – Shape of the array to create.

  • units (str, optional) – Units to assign to the buffer.

  • *args – Additional positional arguments forwarded to numpy.empty().

  • **kwargs – Keyword arguments forwarded to numpy.empty().

Returns:

A one-filled, unit-tagged buffer.

Return type:

UnytArrayBuffer