tuple_tanhtuple_tanhTupleTanhTupleTanhtuple_tanh (算子)
名称
tuple_tanhtuple_tanhTupleTanhTupleTanhtuple_tanh — 计算元组的双曲正切。
签名
tuple_tanh( : : T : Tanh)
Herror tuple_tanh(double T, double* Tanh)
Herror T_tuple_tanh(const Htuple T, Htuple* Tanh)
def tuple_tanh(t: MaybeSequence[Union[float, int]]) -> Sequence[float]
def tuple_tanh_s(t: MaybeSequence[Union[float, int]]) -> float
描述
tuple_tanhtuple_tanhTupleTanhTupleTanhTupleTanhtuple_tanh computes the hyperbolic tangent of the input
tuple TTTTtt. The hyperbolic tangent is always returned as a
floating point number in TanhTanhTanhTanhtanhtanh. The hyperbolic tangent 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_tanhtuple_tanhTupleTanhTupleTanhTupleTanhtuple_tanh,
which can be used in an expression in the following syntax:
Tanh := tanh(T)
执行信息
- 多线程类型:独立(即使使用独占算子也能并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
TTTTtt (输入控制) number(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
TanhTanhTanhTanhtanhtanh (输出控制) number(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Hyperbolic tangent of the input tuple.
替代
tuple_sinhtuple_sinhTupleSinhTupleSinhTupleSinhtuple_sinh,
tuple_coshtuple_coshTupleCoshTupleCoshTupleCoshtuple_cosh
另见
tuple_atanhtuple_atanhTupleAtanhTupleAtanhTupleAtanhtuple_atanh,
tuple_tantuple_tanTupleTanTupleTanTupleTantuple_tan,
tuple_atantuple_atanTupleAtanTupleAtanTupleAtantuple_atan,
tuple_atan2tuple_atan2TupleAtan2TupleAtan2TupleAtan2tuple_atan2
模块
基础