tuple_min2tuple_min2TupleMin2TupleMin2tuple_min2 (算子名称)
名称
tuple_min2tuple_min2TupleMin2TupleMin2tuple_min2 — Calculate the elementwise minimum of two tuples.
参数签名
Herror tuple_min2(double T1, double T2, double* Min2)
Herror T_tuple_min2(const Htuple T1, const Htuple T2, Htuple* Min2)
void TupleMin2(const HTuple& T1, const HTuple& T2, HTuple* Min2)
HTuple HTuple::TupleMin2(const HTuple& T2) const
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]
描述
tuple_min2tuple_min2TupleMin2TupleMin2TupleMin2tuple_min2 returns the elementwise minimum of the input
tuples T1T1T1T1t1t1 and T2T2T2T2t2t2 in the output tuple Min2Min2Min2Min2min2min_2.
If both tuples have the same length the corresponding elements of both
tuples are compared. Otherwise, either T1T1T1T1t1t1 or T2T2T2T2t2t2
must have length 1. In this case, the comparison is performed for each
element of the longer tuple with the single element of the other
tuple. If the corresponding elements of the two tuples have the same
type, it is allowed to mix strings with numerical values.
Exception: Empty input tuples
If either or both of the input tuples are empty, 该算子 returns an
empty tuple.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_min2tuple_min2TupleMin2TupleMin2TupleMin2tuple_min2,
which can be used in an expression in the following syntax:
Min2 := min2(T1, T2)
运行信息
- Multithreading type: independent (runs in parallel even with exclusive operators).
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
T1T1T1T1t1t1 (input_control) tuple(-array) → HTupleMaybeSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Input tuple 1.
T2T2T2T2t2t2 (input_control) tuple(-array) → HTupleMaybeSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Input tuple 2.
Min2Min2Min2Min2min2min_2 (output_control) tuple(-array) → HTupleSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Elementwise minimum of the input tuples.
参考其它
tuple_max2tuple_max2TupleMax2TupleMax2TupleMax2tuple_max2,
tuple_mintuple_minTupleMinTupleMinTupleMintuple_min,
tuple_maxtuple_maxTupleMaxTupleMaxTupleMaxtuple_max
模块
Foundation