tuple_fabstuple_fabsTupleFabsTupleFabstuple_fabs (Operator)
Name
tuple_fabstuple_fabsTupleFabsTupleFabstuple_fabs
— Compute the absolute value of a tuple (as floating point numbers).
Signature
Herror tuple_fabs(double T, double* Abs)
Herror T_tuple_fabs(const Htuple T, Htuple* Abs)
def tuple_fabs(t: MaybeSequence[Union[float, int]]) -> Sequence[float]
def tuple_fabs_s(t: MaybeSequence[Union[float, int]]) -> float
Description
tuple_fabstuple_fabsTupleFabsTupleFabstuple_fabs
computes the absolute value of the input tuple
TTTtt
. In contrast to tuple_abstuple_absTupleAbsTupleAbstuple_abs
, the absolute value is
always returned as a floating point number by tuple_fabstuple_fabsTupleFabsTupleFabstuple_fabs
.
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_fabstuple_fabsTupleFabsTupleFabstuple_fabs
,
which can be used in an expression in the following syntax:
Abs := fabs(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) number(-array) →
HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
AbsAbsAbsabsabs
(output_control) number(-array) →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Absolute value of the input tuple.
Alternatives
tuple_abstuple_absTupleAbsTupleAbstuple_abs
Module
Foundation