tuple_bandTupleBandTupleBandtuple_bandtuple_band
説明
tuple_bandTupleBandTupleBandtuple_bandtuple_band — 2 つの tuple のビットに関する and を計算する。
書式
tuple_band( integer T1, integer T2, out integer BAnd )void TupleBand( const HTuple& T1, const HTuple& T2, HTuple* BAnd )static void HOperatorSet.TupleBand( HTuple t1, HTuple t2, out HTuple BAnd )def tuple_band( t1: MaybeSequence[int], t2: MaybeSequence[int] ) -> Sequence[int]
def tuple_band_s( t1: MaybeSequence[int], t2: MaybeSequence[int] ) -> intHerror tuple_band( const Hlong T1, const Hlong T2, Hlong* BAnd )
Herror T_tuple_band( const Htuple T1, const Htuple T2, Htuple* BAnd )
HTuple HTuple::TupleBand( const HTuple& T2 ) const
HTuple HTuple.TupleBand( HTuple t2 )
説明
tuple_bandTupleBand は、入力 tuple T1t1t1 および T2t2t2
のビット積を計算します。両方の tuple が同じ長さなら、対応した要素間
で計算が行われます。そうでない場合、T1t1t1 または
T2t2t2 は長さ 1 になる必要があります。長い tuple のそれぞれの
要素と長さ 1 の tuple 要素との間で計算されます。入力 tupleは整数
です。
例外: 入力tuple が 空
どちらかの、または両方の入力tupleが空の場合、この関数は空のtupleを返します。
HDevelopインライン演算
HDevelopは tuple_bandTupleBand の代わりとなるインライン演算を備えており、以下の構文形式で使
用することができます::
BAnd := T1 band 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
BAndBAndband (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)
入力 tuple の ビット積
他のオペレーターとの組み合わせ
組み合わせ
他の選択候補
tuple_borTupleBor, tuple_bxorTupleBxor, tuple_bnotTupleBnot
関連項目
tuple_andTupleAnd, tuple_orTupleOr, tuple_xorTupleXor, tuple_notTupleNot
モジュール
Foundation