Skip to content

tuple_minTupleMinTupleMintuple_mintuple_min🔗

Short description🔗

tuple_minTupleMinTupleMintuple_mintuple_min — Return the minimal element of a tuple.

Signature🔗

tuple_min( tuple Tuple, out tuple Min )void TupleMin( const HTuple& Tuple, HTuple* Min )static void HOperatorSet.TupleMin( HTuple tuple, out HTuple min )def tuple_min( tuple: MaybeSequence[Union[float, int, str]] ) -> Sequence[Union[float, int, str]]

def tuple_min_s( tuple: MaybeSequence[Union[float, int, str]] ) -> Union[float, int, str]Herror tuple_min( const Hlong Tuple, double* Min )

Herror T_tuple_min( const Htuple Tuple, Htuple* Min )

HTuple HTuple::TupleMin( ) const

HTuple HTuple.TupleMin( )

Description🔗

tuple_minTupleMin returns the minimal element of all elements of the input tuple Tupletupletuple. All elements of Tupletupletuple either have to be strings or numbers (integer or floating point numbers). It is not allowed to mix strings with numerical values. The result parameter Minminmin will contain a floating point number, if at least one element of Tupletupletuple is a floating point number. If all elements of Tupletupletuple are integer numbers the resulting minimum in Minminmin will also be an integer number.

Exception: Empty input tuple🔗

If the input tuple is empty, an exception is raised.

HDevelop In-line Operation🔗

HDevelop provides an in-line operation for tuple_minTupleMin, which can be used in an expression in the following syntax:

Min := min(Tuple)

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Tupletupletuple (input_control) tuple(-array) → (integer / real / string)HTuple (Hlong / double / HString)HTuple (int / long / double / string)MaybeSequence[Union[float, int, str]]Htuple (Hlong / double / char*)

Input tuple.

Minminmin (output_control) tuple(-array) → (real / integer / string)HTuple (double / Hlong / HString)HTuple (double / int / long / string)Sequence[Union[float, int, str]]Htuple (double / Hlong / char*)

Minimal element of the input tuple elements.

Combinations with other operators🔗

Combinations

Alternatives

tuple_maxTupleMax, tuple_meanTupleMean, tuple_deviationTupleDeviation, tuple_sumTupleSum, tuple_lengthTupleLength, tuple_medianTupleMedian

See also

tuple_max2TupleMax2, tuple_min2TupleMin2

Module🔗

Foundation