tuple_negtuple_negTupleNegTupleNegtuple_neg (Operator)
Name
tuple_negtuple_negTupleNegTupleNegtuple_neg
— Negate a tuple.
Signature
Herror tuple_neg(double T, double* Neg)
Herror T_tuple_neg(const Htuple T, Htuple* Neg)
def tuple_neg(t: MaybeSequence[Union[float, int]]) -> Sequence[Union[float, int]]
def tuple_neg_s(t: MaybeSequence[Union[float, int]]) -> Union[float, int]
Description
tuple_negtuple_negTupleNegTupleNegtuple_neg
computes the negation of the input tuple
TTTtt
, i.e., NegNegNegnegneg
= -TTTtt
. The negation of an
integer number is again an integer number. The negation of a
floating point number is a floating point number. The negation 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_negtuple_negTupleNegTupleNegtuple_neg
,
which can be used in an expression in the following syntax:
Neg := -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.
NegNegNegnegneg
(output_control) number(-array) →
HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Negation of the input tuple.
Module
Foundation