amax#

Fully qualified name: isaacsim::common::array::amax

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

Returns the largest array element.

The whole array is reduced, regardless of its rank, to a 0-D Array that keeps the operand’s dtype and device, so a CUDA result stays on the device; read it with item<T>(). NaN propagates: a floating-point array containing one reduces to NaN.

Note

Named after NumPy’s numpy.amax alias rather than max, for the reason given in amin().

Parameters:

a – [in] Operand.

Throws:

std::invalid_argument – if the operand is empty, which has no maximum.

Returns:

A new 0-D Array holding the largest element.