tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem (算子)

名称

tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem — 检查元组是否表示 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)

void TupleIsNanElem(const HTuple& T, HTuple* IsNaN)

HTuple HTuple::TupleIsNanElem() const

static void HOperatorSet.TupleIsNanElem(HTuple t, out HTuple isNaN)

HTuple HTuple.TupleIsNanElem()

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.

例外:空输入元组

If the input tuple is empty, the operator returns an empty tuple.

HDevelop 内联操作

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)

执行信息

参数

TTTTtt (输入控制)  tuple(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input tuple.

IsNaNIsNaNIsNaNIsNaNisNaNis_na_n (输出控制)  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

模块

基础