tuple_divtuple_divTupleDivTupleDivtuple_div (算子)
名称
tuple_divtuple_divTupleDivTupleDivtuple_div — 除两个元组。
签名
Herror tuple_div(double Q1, double Q2, double* Quot)
Herror T_tuple_div(const Htuple Q1, const Htuple Q2, Htuple* Quot)
void TupleDiv(const HTuple& Q1, const HTuple& Q2, HTuple* Quot)
HTuple HTuple::TupleDiv(const HTuple& Q2) const
def tuple_div(q1: MaybeSequence[Union[float, int]], q2: MaybeSequence[Union[float, int]]) -> Sequence[Union[float, int]]
def tuple_div_s(q1: MaybeSequence[Union[float, int]], q2: MaybeSequence[Union[float, int]]) -> Union[float, int]
描述
tuple_divtuple_divTupleDivTupleDivTupleDivtuple_div computes the quotient of the input tuples
Q1Q1Q1Q1q1q1 and Q2Q2Q2Q2q2q2. If both tuples have the same length
the corresponding elements of both tuples are divided. Otherwise,
either Q1Q1Q1Q1q1q1 or Q2Q2Q2Q2q2q2 must have length 1. In this case,
the division is performed for each element of the longer tuple with
the single element of the other tuple. If two integer numbers are
divided, the result is again an integer number. If one of the
operands is a floating point number, the result is a floating point
number. The division of strings is not allowed.
例外:空输入元组
If either or both of the input tuples are empty, the operator returns an
empty tuple.
HDevelop 内联操作
HDevelop provides an in-line operation for tuple_divtuple_divTupleDivTupleDivTupleDivtuple_div,
which can be used in an expression in the following syntax:
Quot := Q1 / Q2
执行信息
- 多线程类型:独立(即使使用独占算子也能并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
Q1Q1Q1Q1q1q1 (输入控制) number(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
输入元组 1。
Q2Q2Q2Q2q2q2 (输入控制) number(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
输入元组 2。
限制:
Q2 != 0
QuotQuotQuotQuotquotquot (输出控制) number(-array) → HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Quotient of the input tuples.
替代
tuple_multtuple_multTupleMultTupleMultTupleMulttuple_mult
模块
基础