all#

Fully qualified name: isaacsim::common::array::all

Array isaacsim::common::array::all(const Array &a)#

Tests whether all array elements evaluate to true.

Accepts operands of any dtype: an element is treated as true when it is non-zero (so NaN is true). The whole array is reduced, regardless of its rank, and the result is a 0-D boolean Array on the operand’s device, so a CUDA result stays on the device; read it with item<bool>(). An empty array reduces to true.

Parameters:

a – [in] Operand.

Returns:

A new 0-D boolean Array holding the reduction.