tuple_xorTupleXorTupleXortuple_xortuple_xor
説明
tuple_xorTupleXorTupleXortuple_xortuple_xor — 2 つの tuple の排他的 or を計算する。
書式
tuple_xor( integer T1, integer T2, out integer Xor )void TupleXor( const HTuple& T1, const HTuple& T2, HTuple* Xor )static void HOperatorSet.TupleXor( HTuple t1, HTuple t2, out HTuple xor )def tuple_xor( t1: MaybeSequence[int], t2: MaybeSequence[int] ) -> Sequence[int]
def tuple_xor_s( t1: MaybeSequence[int], t2: MaybeSequence[int] ) -> intHerror tuple_xor( const Hlong T1, const Hlong T2, Hlong* Xor )
Herror T_tuple_xor( const Htuple T1, const Htuple T2, Htuple* Xor )
HTuple HTuple::TupleXor( const HTuple& T2 ) const
HTuple HTuple.TupleXor( HTuple t2 )
説明
tuple_xorTupleXor は、入力 tuple T1t1t1 および T2t2t2 の
排他的論理和を計算します。両方の tuple が同じ長さなら、対応した要素
間で計算が行われます。そうでない場合、T1t1t1 または
T2t2t2 は長さ 1 になる必要があります。長い tuple のそれぞれの
要素と長さ 1 の tuple 要素との間で計算されます。入力 tupleは整数
です。
例外: 入力tuple が 空
入力tupleのいずれかが空の場合、例外が発生します。
HDevelopインライン演算
HDevelopは tuple_xorTupleXor の代わりとなるインライン演算を備えており、以下の構文形式で使
用することができます::
Xor := T1 xor T2
実行情報
実行情報
パラメーター
T1t1t1 (input_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)
入力 tuple 1
T2t2t2 (input_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)
入力 tuple 2
Xorxorxor (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)
入力 tuple の排他的論理和
他のオペレーターとの組み合わせ
組み合わせ
他の選択候補
tuple_andTupleAnd, tuple_orTupleOr, tuple_notTupleNot
関連項目
tuple_bandTupleBand, tuple_borTupleBor, tuple_bxorTupleBxor, tuple_bnotTupleBnot
モジュール
Foundation