Skip to content

tuple_maxTupleMaxTupleMaxtuple_maxtuple_max🔗

Short description🔗

tuple_maxTupleMaxTupleMaxtuple_maxtuple_max — Return the maximal element of a tuple.

Signature🔗

tuple_max( tuple Tuple, out tuple Max )void TupleMax( const HTuple& Tuple, HTuple* Max )static void HOperatorSet.TupleMax( HTuple tuple, out HTuple max )def tuple_max( tuple: MaybeSequence[Union[float, int, str]] ) -> Sequence[Union[float, int, str]]

def tuple_max_s( tuple: MaybeSequence[Union[float, int, str]] ) -> Union[float, int, str]Herror tuple_max( const Hlong Tuple, double* Max )

Herror T_tuple_max( const Htuple Tuple, Htuple* Max )

HTuple HTuple::TupleMax( ) const

HTuple HTuple.TupleMax( )

Description🔗

tuple_maxTupleMax returns the maximal 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 Maxmaxmax 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 maximum in Maxmaxmax 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_maxTupleMax, which can be used in an expression in the following syntax:

Max := max(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.

Maxmaxmax (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*)

Maximal element of the input tuple elements.

Combinations with other operators🔗

Combinations

Alternatives

tuple_minTupleMin, tuple_meanTupleMean, tuple_deviationTupleDeviation, tuple_sumTupleSum, tuple_lengthTupleLength, tuple_medianTupleMedian

See also

tuple_max2TupleMax2, tuple_min2TupleMin2

Module🔗

Foundation