Skip to content

tuple_absTupleAbsTupleAbstuple_abstuple_abs🔗

Short description🔗

tuple_absTupleAbsTupleAbstuple_abstuple_abs — Compute the absolute value of a tuple.

Signature🔗

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

def tuple_abs_s( t: MaybeSequence[Union[float, int]] ) -> Union[float, int]Herror tuple_abs( double T, double* Abs )

Herror T_tuple_abs( const Htuple T, Htuple* Abs )

HTuple HTuple::TupleAbs( ) const

HTuple HTuple.TupleAbs( )

Description🔗

tuple_absTupleAbs computes the absolute value of the input tuple Ttt. The absolute value of an integer number is again an integer number. The absolute value of a floating point number is a floating point number. 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_absTupleAbs, which can be used in an expression in the following syntax:

Abs := abs(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 / integer)HTuple (double / Hlong)HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Absolute value of the input tuple.

Combinations with other operators🔗

Combinations

Alternatives

tuple_fabsTupleFabs

Module🔗

Foundation