zeros#

Fully qualified name: isaacsim::common::array::zeros

Array isaacsim::common::array::zeros(
const Shape &shape,
Dtype dtype = Dtype::Float64(),
const Device &device = Device::Cpu(),
)#

Creates an array of the given shape with every element set to zero.

Zero is written as a zeroed byte pattern, which is the representation of 0 for every supported dtype: false for bool, 0 for the integers, and +0.0 for float32 and float64.

Parameters:
  • shape – [in] Shape of the new array. An empty shape produces a 0-D array holding one element.

  • dtype – [in] Element type. Defaults to float64.

  • device – [in] Device on which to allocate. Defaults to the CPU.

Returns:

A new Array whose elements are all zero.