any#

Fully qualified name: isaacsim::common::array::any

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

Tests whether any array element evaluates 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 false.

Parameters:

a – [in] Operand.

Returns:

A new 0-D boolean Array holding the reduction.