tuple_min2TupleMin2TupleMin2tuple_min2tuple_min2
説明
tuple_min2TupleMin2TupleMin2tuple_min2tuple_min2 — 2 つの tuple の各要素ごとの最小を計算する。
書式
tuple_min2( tuple T1, tuple T2, out tuple Min2 )void TupleMin2( const HTuple& T1, const HTuple& T2, HTuple* Min2 )static void HOperatorSet.TupleMin2( HTuple t1, HTuple t2, out HTuple min2 )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]Herror tuple_min2( double T1, double T2, double* Min2 )
Herror T_tuple_min2( const Htuple T1, const Htuple T2, Htuple* Min2 )
HTuple HTuple::TupleMin2( const HTuple& T2 ) const
HTuple HTuple.TupleMin2( HTuple t2 )
説明
tuple_min2TupleMin2 は、入力 tuple T1t1t1 と T2t2t2 の要
素単位の最小を出力 tuple Min2min2min_2 に返します。
もし両方の tuple が等しい長さであるならば、両方の tuple の一致する
要素が比較されます。そうでない場合、T1t1t1 または
T2t2t2 は長さ 1 になる必要があります。この場合、比較は長いほ
うの tuple の各要素について、もう 1 つの単一の要素を用いて実行され
ます。もし 2 つの tuple の一致する要素が同じタイプであるならば、数
値と文字列が混在してもかまいません。
例外: 入力tuple が 空
どちらかの、または両方の入力tupleが空の場合、この関数は空のtupleを返します。
HDevelopインライン演算
HDevelopは tuple_min2TupleMin2 の代わりとなるインライン演算を備えており、以下の構文形式で使
用することができます::
Min2 := min2(T1, T2)
実行情報
実行情報
パラメーター
T1t1t1 (input_control) tuple(-array) → (real / integer / string)HTuple (double / Hlong / HString)HTuple (double / int / long / string)MaybeSequence[Union[float, int, str]]Htuple (double / Hlong / char*)
入力 tuple 1
T2t2t2 (input_control) tuple(-array) → (real / integer / string)HTuple (double / Hlong / HString)HTuple (double / int / long / string)MaybeSequence[Union[float, int, str]]Htuple (double / Hlong / char*)
入力 tuple 2
Min2min2min_2 (output_control) tuple(-array) → (real / integer / string)HTuple (double / Hlong / HString)HTuple (double / int / long / string)Sequence[Union[float, int, str]]Htuple (double / Hlong / char*)
入力 tuple の構成要素に関して最小なもの
他のオペレーターとの組み合わせ
組み合わせ
関連項目
tuple_max2TupleMax2, tuple_minTupleMin, tuple_maxTupleMax
モジュール
Foundation