prod#
Fully qualified name: isaacsim::common::array::prod
-
Array isaacsim::common::array::prod(const Array &a)#
Multiplies all array elements.
The whole array is reduced, regardless of its rank, to a 0-D Array on the operand’s device, so a CUDA result stays on the device; read it with
item<T>(). The product accumulates in the same widened dtype assum(). An empty array has a product of 1.- Parameters:
a – [in] Operand.
- Returns:
A new 0-D Array holding the product.