tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem (算子名称)
名称
tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem — Check a tuple whether it represents NaNs (Not-a-number).
参数签名
tuple_is_nan_elem( : : T : IsNaN)
Herror tuple_is_nan_elem(double T, Hlong* IsNaN)
Herror T_tuple_is_nan_elem(const Htuple T, Htuple* IsNaN)
def tuple_is_nan_elem(t: MaybeSequence[Union[float, int]]) -> int
描述
tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem checks each element of the input tuple
TTTTtt whether it represents a NaN. If it does, 1 is
returned for that element, otherwise 0.
Exception: Empty input tuple
If the input tuple is empty, 该算子 returns an empty tuple.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem,
which can be used in an expression in the following syntax:
IsNaN := is_nan_elem(T)
运行信息
- Multithreading type: independent (runs in parallel even with exclusive operators).
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
TTTTtt (input_control) tuple(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
IsNaNIsNaNIsNaNIsNaNisNaNis_na_n (output_control) number → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Tuple with Boolean numbers.
可替代算子
tuple_typetuple_typeTupleTypeTupleTypeTupleTypetuple_type,
tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumbertuple_is_number,
tuple_sem_typetuple_sem_typeTupleSemTypeTupleSemTypeTupleSemTypetuple_sem_type
参考其它
tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInttuple_is_int,
tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsRealtuple_is_real,
tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsStringtuple_is_string
模块
Foundation