Skip to content

tuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elemtuple_is_nan_elem🔗

Short description🔗

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

Signature🔗

tuple_is_nan_elem( tuple T, out number IsNaN )void TupleIsNanElem( const HTuple& T, HTuple* IsNaN )static void HOperatorSet.TupleIsNanElem( HTuple t, out HTuple isNaN )def tuple_is_nan_elem( t: MaybeSequence[Union[float, int]] ) -> int

Herror tuple_is_nan_elem( double T, Hlong* IsNaN )

Herror T_tuple_is_nan_elem( const Htuple T, Htuple* IsNaN )

HTuple HTuple::TupleIsNanElem( ) const

HTuple HTuple.TupleIsNanElem( )

Description🔗

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

IsNaN := is_nan_elem(T)

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Ttt (input_control) tuple(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)

Input tuple.

IsNaNisNaNis_na_n (output_control) number → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Tuple with Boolean numbers.

Combinations with other operators🔗

Combinations

Alternatives

tuple_typeTupleType, tuple_is_numberTupleIsNumber, tuple_sem_typeTupleSemType

See also

tuple_is_intTupleIsInt, tuple_is_realTupleIsReal, tuple_is_stringTupleIsString

Module🔗

Foundation