tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem (Operator)

Name

tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem — Check a tuple whether it represents NaNs (Not-a-number).

Signature

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

Description

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, the operator 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)

Execution Information

Parameters

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.

Alternatives

tuple_typetuple_typeTupleTypeTupleTypeTupleTypetuple_type, tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumbertuple_is_number, tuple_sem_typetuple_sem_typeTupleSemTypeTupleSemTypeTupleSemTypetuple_sem_type

See also

tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInttuple_is_int, tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsRealtuple_is_real, tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsStringtuple_is_string

Module

Foundation