fields.buffers.core.UnytArrayBuffer.zeros#

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

Create a buffer filled with zeros and optional units.

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.zeros().

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

Returns:

A zero-filled, unit-tagged buffer.

Return type:

UnytArrayBuffer