tuple_negtuple_negTupleNegTupleNegtuple_neg (算子)

名称

tuple_negtuple_negTupleNegTupleNegtuple_neg — 取反一个元组。

签名

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()

def tuple_neg(t: MaybeSequence[Union[float, int]]) -> Sequence[Union[float, int]]

def tuple_neg_s(t: MaybeSequence[Union[float, int]]) -> Union[float, int]

描述

tuple_negtuple_negTupleNegTupleNegTupleNegtuple_neg computes the negation of the input tuple TTTTtt, i.e., NegNegNegNegnegneg = -TTTTtt. 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.

例外:空输入元组

If the input tuple is empty, the operator returns an empty tuple.

HDevelop 内联操作

HDevelop provides an in-line operation for tuple_negtuple_negTupleNegTupleNegTupleNegtuple_neg, which can be used in an expression in the following syntax:

Neg := -T

执行信息

参数

TTTTtt (输入控制)  number(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input tuple.

NegNegNegNegnegneg (输出控制)  number(-array) HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Negation of the input tuple.

模块

基础