subtract#
Fully qualified name: isaacsim::common::array::subtract
- Array isaacsim::common::array::subtract( )#
Subtracts two arrays element-wise.
The operands are broadcast against each other: dimensions are compared from the trailing axis, and each must either be equal or be 1. Both operands are then cast to their common promoted dtype, which is also the dtype of the result. Promotion follows the same rules, so mixing a signed and an unsigned integer widens to a signed type large enough to hold both (falling back to
float64when no such integer type exists), and mixing an integer withfloat32widens tofloat64when the integer is wider thanfloat32’s mantissa.Subtracting boolean arrays is not supported.