multiply#

Fully qualified name: isaacsim::common::array::multiply

Array isaacsim::common::array::multiply(
const Array &a,
const Array &b,
)#

Multiplies two arrays element-wise.

The operands are broadcast against each other and cast to their common promoted dtype (see subtract() for a description of the shared broadcasting and promotion rules). Boolean operands are multiplied as a logical AND.

Parameters:
  • a – [in] Left-hand operand.

  • b – [in] Right-hand operand.

Throws:

std::invalid_argument – if the operands reside on different devices or their shapes are not broadcast-compatible.

Returns:

A new Array holding the element-wise product.