logicalNot#

Fully qualified name: isaacsim::common::array::logicalNot

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

Computes the element-wise truth value of NOT x.

Accepts operands of any dtype: an element is treated as true when it is non-zero (so NaN is true), and the result is always a boolean Array with the operand’s shape and device. Use it to invert a mask without first casting it to bool.

Parameters:

a – [in] Operand.

Returns:

A new boolean Array holding the element-wise logical negation.