ClassesClassesClassesClasses | | | | Operators

tuple_max2tuple_max2TupleMax2tuple_max2TupleMax2TupleMax2 (Operator)

Name

tuple_max2tuple_max2TupleMax2tuple_max2TupleMax2TupleMax2 — Calculate the elementwise maximum of two tuples.

Signature

tuple_max2( : : T1, T2 : Max2)

Herror tuple_max2(double T1, double T2, double* Max2)

Herror T_tuple_max2(const Htuple T1, const Htuple T2, Htuple* Max2)

Herror tuple_max2(const HTuple& T1, const HTuple& T2, double* Max2)

Herror tuple_max2(const HTuple& T1, const HTuple& T2, HTuple* Max2)

void TupleMax2(const HTuple& T1, const HTuple& T2, HTuple* Max2)

HTuple HTuple::TupleMax2(const HTuple& T2) const

void HOperatorSetX.TupleMax2(
[in] VARIANT T1, [in] VARIANT T2, [out] VARIANT* Max2)

VARIANT HTupleX.TupleMax2(
[in] VARIANT T1, [in] VARIANT T2)

static void HOperatorSet.TupleMax2(HTuple t1, HTuple t2, out HTuple max2)

HTuple HTuple.TupleMax2(HTuple t2)

Description

tuple_max2tuple_max2TupleMax2tuple_max2TupleMax2TupleMax2 returns the elementwise maximum of the input tuples T1T1T1T1T1t1 and T2T2T2T2T2t2 in the output tuple Max2Max2Max2Max2Max2max2. If both tuples have the same length the corresponding elements of both tuples are compared. Otherwise, either T1T1T1T1T1t1 or T2T2T2T2T2t2 must have length 1. In this case, the comparison is performed for each element of the longer tuple with the single element of the other tuple. If the corresponding elements of the two tuples have the same type, it is allowed to mix strings with numerical values.

Parallelization

Parameters

T1T1T1T1T1t1 (input_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Input tuple 1.

T2T2T2T2T2t2 (input_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Input tuple 2.

Max2Max2Max2Max2Max2max2 (output_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Elementwise maximum of the input tuples.

See also

tuple_min2tuple_min2TupleMin2tuple_min2TupleMin2TupleMin2, tuple_mintuple_minTupleMintuple_minTupleMinTupleMin, tuple_maxtuple_maxTupleMaxtuple_maxTupleMaxTupleMax, tuple_cumultuple_cumulTupleCumultuple_cumulTupleCumulTupleCumul

Module

Foundation


ClassesClassesClassesClasses | | | | Operators