tuple_min2tuple_min2TupleMin2TupleMin2tuple_min2 (Operator)

Name

tuple_min2tuple_min2TupleMin2TupleMin2tuple_min2 — Bestimmen des elementweisen Minimums zweier Tupel.

Signatur

tuple_min2( : : T1, T2 : Min2)

Herror tuple_min2(double T1, double T2, double* Min2)

Herror T_tuple_min2(const Htuple T1, const Htuple T2, Htuple* Min2)

void TupleMin2(const HTuple& T1, const HTuple& T2, HTuple* Min2)

HTuple HTuple::TupleMin2(const HTuple& T2) const

static void HOperatorSet.TupleMin2(HTuple t1, HTuple t2, out HTuple min2)

HTuple HTuple.TupleMin2(HTuple t2)

def tuple_min2(t1: MaybeSequence[Union[float, int, str]], t2: MaybeSequence[Union[float, int, str]]) -> Sequence[Union[float, int, str]]

def tuple_min2_s(t1: MaybeSequence[Union[float, int, str]], t2: MaybeSequence[Union[float, int, str]]) -> Union[float, int, str]

Beschreibung

tuple_min2tuple_min2TupleMin2TupleMin2TupleMin2tuple_min2 berechnet das Minimum der Eingabetupel T1T1T1T1t1t1 und T2T2T2T2t2t2. Falls beide Tupel dieselbe Länge haben, werden die entsprechenden Elemente der beiden Tupel miteinander verglichen und die jeweiligen Minima in das Ausgabetupel Min2Min2Min2Min2min2min_2 übernommen. Ansonsten muss entweder T1T1T1T1t1t1 oder T2T2T2T2t2t2 die Länge 1 haben. In diesem Fall wird jedes Element des längeren Tupels mit dem einzigen Element des anderen Tupels verglichen. Eine Mischung aus Strings und Zahlen ist erlaubt, wenn die miteinander verglichenen Elemente jeweils denselben Typ haben.

Sonderfall: Leere Eingabetupel

Falls eines oder beide der Eingabetupel leer sind, gibt der Operator ein leeres Tupel zurück.

HDevelop Inline-Operation

HDevelop unterstützt eine Inline-Operation für tuple_min2tuple_min2TupleMin2TupleMin2TupleMin2tuple_min2, die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden kann:

Min2 := min2(T1, T2)

Ausführungsinformationen

Parameter

T1T1T1T1t1t1 (input_control)  tuple(-array) HTupleMaybeSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Eingabetupel 1.

T2T2T2T2t2t2 (input_control)  tuple(-array) HTupleMaybeSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Eingabetupel 2.

Min2Min2Min2Min2min2min_2 (output_control)  tuple(-array) HTupleSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Elementweises Minimum der Eingabetupel.

Siehe auch

tuple_max2tuple_max2TupleMax2TupleMax2TupleMax2tuple_max2, tuple_mintuple_minTupleMinTupleMinTupleMintuple_min, tuple_maxtuple_maxTupleMaxTupleMaxTupleMaxtuple_max

Modul

Foundation