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
truewhen it is non-zero (soNaNistrue). 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 withitem<bool>(). An empty array reduces tofalse.- Parameters:
a – [in] Operand.
- Returns:
A new 0-D boolean Array holding the reduction.