tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem (Operator)

Name

tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem — Testen, ob Elemente eines Tupels NaNs (Not-a-Number) darstellen.

Signatur

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

Beschreibung

tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem testet das Eingabetupel TTTTtt daraufhin, welche Elemente ein NaN darstellen. Wenn ein Eintrag ein NaN ist, so wird als entsprechender Eintrag in IsNaNIsNaNIsNaNIsNaNisNaNis_na_n 1 zurückgeliefert, andernfalls 0.

Sonderfall: Leeres Eingabetupel

Falls das Eingabetupel leer ist, gibt der Operator ein leeres Tupel zurück.

HDevelop Inline-Operation

HDevelop unterstützt eine Inline-Operation für tuple_is_nan_elemtuple_is_nan_elemTupleIsNanElemTupleIsNanElemTupleIsNanElemtuple_is_nan_elem, die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden kann:

IsNaN := is_nan_elem(T)

Ausführungsinformationen

Parameter

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

Eingabetupel.

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

Tupel mit Booleschen Werten.

Alternativen

tuple_typetuple_typeTupleTypeTupleTypeTupleTypetuple_type, tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumbertuple_is_number, tuple_sem_typetuple_sem_typeTupleSemTypeTupleSemTypeTupleSemTypetuple_sem_type

Siehe auch

tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInttuple_is_int, tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsRealtuple_is_real, tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsStringtuple_is_string

Modul

Foundation