tuple_xortuple_xorTupleXorTupleXortuple_xor (Operator)
Name
tuple_xortuple_xorTupleXorTupleXortuple_xor — Berechnen des logischen Exklusiv-Oder zweier Tupel.
Signatur
Herror tuple_xor(const Hlong T1, const Hlong T2, Hlong* Xor)
Herror T_tuple_xor(const Htuple T1, const Htuple T2, Htuple* Xor)
void TupleXor(const HTuple& T1, const HTuple& T2, HTuple* Xor)
HTuple HTuple::TupleXor(const HTuple& T2) const
def tuple_xor(t1: MaybeSequence[int], t2: MaybeSequence[int]) -> Sequence[int]
def tuple_xor_s(t1: MaybeSequence[int], t2: MaybeSequence[int]) -> int
Beschreibung
tuple_xortuple_xorTupleXorTupleXorTupleXortuple_xor berechnet das logische Exklusiv-Oder der
Eingabetupel T1T1T1T1t1t1 und T2T2T2T2t2t2. Falls beide Tupel
dieselbe Länge haben, werden die entsprechenden Elemente der beiden
Tupel veknüpft. Ansonsten muss entweder T1T1T1T1t1t1 oder
T2T2T2T2t2t2 die Länge 1 haben. In diesem Fall wird die Operation
für jedes Element des längeren Tupels mit dem einzigen Element des
anderen Tupels ausgeführt. Die Eingabezahlen müssen ganze Zahlen
sein.
Sonderfall: Leere Eingabetupel
Falls eines oder mehrere Eingabetupel leer sind, wird eine Fehlermeldung
angezeigt.
HDevelop Inline-Operation
HDevelop unterstützt eine Inline-Operation für tuple_xortuple_xorTupleXorTupleXorTupleXortuple_xor,
die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden
kann:
Xor := T1 xor T2
Ausführungsinformationen
- Multithreading-Typ: independent (läuft parallel auch zu exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
T1T1T1T1t1t1 (input_control) integer(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Eingabetupel 1.
T2T2T2T2t2t2 (input_control) integer(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Eingabetupel 2.
XorXorXorXorxorxor (output_control) integer(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Binäres Exklusiv-Oder der Eingabetupel.
Alternativen
tuple_andtuple_andTupleAndTupleAndTupleAndtuple_and,
tuple_ortuple_orTupleOrTupleOrTupleOrtuple_or,
tuple_nottuple_notTupleNotTupleNotTupleNottuple_not
Siehe auch
tuple_bandtuple_bandTupleBandTupleBandTupleBandtuple_band,
tuple_bortuple_borTupleBorTupleBorTupleBortuple_bor,
tuple_bxortuple_bxorTupleBxorTupleBxorTupleBxortuple_bxor,
tuple_bnottuple_bnotTupleBnotTupleBnotTupleBnottuple_bnot
Modul
Foundation