Operator Reference

tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem (Operator)

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_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem checks each element of the input tuple TTTtt 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_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem, which can be used in an expression in the following syntax:

IsNaN := is_nan_elem(T)

Execution Information

  • Multithreading type: independent (runs in parallel even with exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

Parameters

TTTtt (input_control)  tuple(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input tuple.

IsNaNIsNaNIsNaNisNaNis_na_n (output_control)  number HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Tuple with Boolean numbers.

Alternatives

tuple_typetuple_typeTupleTypeTupleTypetuple_type, tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumbertuple_is_number, tuple_sem_typetuple_sem_typeTupleSemTypeTupleSemTypetuple_sem_type

See also

tuple_is_inttuple_is_intTupleIsIntTupleIsInttuple_is_int, tuple_is_realtuple_is_realTupleIsRealTupleIsRealtuple_is_real, tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringtuple_is_string

Module

Foundation