Skip to content

tuple_max2TupleMax2TupleMax2tuple_max2tuple_max2🔗

説明🔗

tuple_max2TupleMax2TupleMax2tuple_max2tuple_max2 — 2 つの tuple の各要素ごとの最大を計算する。

書式🔗

tuple_max2( tuple T1, tuple T2, out tuple Max2 )void TupleMax2( const HTuple& T1, const HTuple& T2, HTuple* Max2 )static void HOperatorSet.TupleMax2( HTuple t1, HTuple t2, out HTuple max2 )def tuple_max2( t1: MaybeSequence[Union[float, int, str]], t2: MaybeSequence[Union[float, int, str]] ) -> Sequence[Union[float, int, str]]

def tuple_max2_s( t1: MaybeSequence[Union[float, int, str]], t2: MaybeSequence[Union[float, int, str]] ) -> Union[float, int, str]Herror tuple_max2( double T1, double T2, double* Max2 )

Herror T_tuple_max2( const Htuple T1, const Htuple T2, Htuple* Max2 )

HTuple HTuple::TupleMax2( const HTuple& T2 ) const

HTuple HTuple.TupleMax2( HTuple t2 )

説明🔗

tuple_max2TupleMax2 は、入力 tuple T1t1t1 と T2t2t2 の要 素単位の最大を出力 tuple Max2max2max_2 に返します。 もし両方の tuple が等しい長さであるならば、両方の tuple の一致する 要素が比較されます。 そうでない場合、T1t1t1 または T2t2t2 は長さ 1 になる必要 があります。この場合、比較は長いほうの tuple の各要素について、も う 1 つの単一の要素を用いて実行されます。もし 2 つの tuple の一致 する要素が同じタイプであるならば、数値と文字列が混在してもかまいま せん。

例外: 入力tuple が 空🔗

どちらかの、または両方の入力tupleが空の場合、この関数は空のtupleを返します。

HDevelopインライン演算🔗

HDevelopは tuple_max2TupleMax2 の代わりとなるインライン演算を備えており、以下の構文形式で使 用することができます::

Max2 := max2(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

Max2max2max_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_min2TupleMin2, tuple_minTupleMin, tuple_maxTupleMax, tuple_cumulTupleCumul

モジュール🔗

Foundation