tuple_sgntuple_sgnTupleSgnTupleSgn (Operator)
Name
tuple_sgntuple_sgnTupleSgnTupleSgn
— Calculate the sign of a tuple.
Signature
Herror tuple_sgn(double T, Hlong* Sgn)
Herror T_tuple_sgn(const Htuple T, Htuple* Sgn)
Description
tuple_sgntuple_sgnTupleSgnTupleSgnTupleSgn
calculates the sign of the elements of the
input tuple TTTTt
and returns them as integer numbers
(-1,0,1) in the output tuple SgnSgnSgnSgnsgn
.
The calculation of the sign 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_sgntuple_sgnTupleSgnTupleSgnTupleSgn
,
which can be used in an expression in the following syntax:
Sgn := sgn(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) →
HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
SgnSgnSgnSgnsgn
(output_control) number(-array) →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Signs of the input tuple as integer numbers.
Module
Foundation