amin#

Fully qualified name: isaacsim::common::array::amin

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

Returns the smallest 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.amin alias rather than min because <windows.h> defines min and max as function-like macros. The preprocessor runs before name lookup, so the namespace would not protect the call: array::min(a) expands the macro and fails to compile in any translation unit that includes <windows.h> without NOMINMAX.

Parameters:

a – [in] Operand.

Throws:

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

Returns:

A new 0-D Array holding the smallest element.