Skip to content

tuple_fabsTupleFabsTupleFabstuple_fabstuple_fabs🔗

Short description🔗

tuple_fabsTupleFabsTupleFabstuple_fabstuple_fabs — Compute the absolute value of a tuple (as floating point numbers).

Signature🔗

tuple_fabs( number T, out number Abs )void TupleFabs( const HTuple& T, HTuple* Abs )static void HOperatorSet.TupleFabs( HTuple t, out HTuple abs )def tuple_fabs( t: MaybeSequence[Union[float, int]] ) -> Sequence[float]

def tuple_fabs_s( t: MaybeSequence[Union[float, int]] ) -> floatHerror tuple_fabs( double T, double* Abs )

Herror T_tuple_fabs( const Htuple T, Htuple* Abs )

HTuple HTuple::TupleFabs( ) const

HTuple HTuple.TupleFabs( )

Description🔗

tuple_fabsTupleFabs computes the absolute value of the input tuple Ttt. In contrast to tuple_absTupleAbs, the absolute value is always returned as a floating point number by tuple_fabsTupleFabs. The absolute value of a string is not allowed.

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_fabsTupleFabs, which can be used in an expression in the following syntax:

Abs := fabs(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) number(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)

Input tuple.

Absabsabs (output_control) number(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Absolute value of the input tuple.

Combinations with other operators🔗

Combinations

Alternatives

tuple_absTupleAbs

Module🔗

Foundation