tuple_negtuple_negTupleNegTupleNeg (Operator)

Name

tuple_negtuple_negTupleNegTupleNeg — Negate a tuple.

Signature

tuple_neg( : : T : Neg)

Herror tuple_neg(double T, double* Neg)

Herror T_tuple_neg(const Htuple T, Htuple* Neg)

void TupleNeg(const HTuple& T, HTuple* Neg)

HTuple HTuple::TupleNeg() const

static void HOperatorSet.TupleNeg(HTuple t, out HTuple neg)

HTuple HTuple.TupleNeg()

Description

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

Neg := -T

Execution Information

Parameters

TTTTt (input_control)  number(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input tuple.

NegNegNegNegneg (output_control)  number(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Negation of the input tuple.

Module

Foundation