tuple_log2tuple_log2TupleLog2TupleLog2tuple_log2 (算子)
名称
tuple_log2tuple_log2TupleLog2TupleLog2tuple_log2 — 计算元组的以 2 为底的对数。
签名
Herror tuple_log2(double T, double* Log)
Herror T_tuple_log2(const Htuple T, Htuple* Log)
def tuple_log2(t: MaybeSequence[Union[float, int]]) -> Sequence[float]
def tuple_log2_s(t: MaybeSequence[Union[float, int]]) -> float
描述
tuple_log2tuple_log2TupleLog2TupleLog2TupleLog2tuple_log2 computes the base 2 logarithm of the input
tuple TTTTtt. The logarithm is always returned as a floating
point number. The logarithm of a string is not allowed.
例外:空输入元组
If the input tuple is empty, the operator returns an empty tuple.
HDevelop 内联操作
HDevelop provides an in-line operation for tuple_log2tuple_log2TupleLog2TupleLog2TupleLog2tuple_log2,
which can be used in an expression in the following syntax:
Log := log2(T)
执行信息
- 多线程类型:独立(即使使用独占算子也能并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
TTTTtt (输入控制) number(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
限制:
T > 0
LogLogLogLogloglog (输出控制) number(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Base 2 logarithm of the input tuple.
替代
tuple_logtuple_logTupleLogTupleLogTupleLogtuple_log,
tuple_log10tuple_log10TupleLog10TupleLog10TupleLog10tuple_log10
另见
tuple_exptuple_expTupleExpTupleExpTupleExptuple_exp,
tuple_exp2tuple_exp2TupleExp2TupleExp2TupleExp2tuple_exp2,
tuple_exp10tuple_exp10TupleExp10TupleExp10TupleExp10tuple_exp10,
tuple_powtuple_powTuplePowTuplePowTuplePowtuple_pow
模块
基础