Name
tuple_sumtuple_sumTupleSumtuple_sumTupleSumTupleSum — Return the sum of all elements of a tuple.
Herror tuple_sum(const Hlong Tuple, double* Sum)
Herror T_tuple_sum(const Htuple Tuple, Htuple* Sum)
Herror tuple_sum(const HTuple& Tuple, double* Sum)
Herror tuple_sum(const HTuple& Tuple, HTuple* Sum)
tuple_sumtuple_sumTupleSumtuple_sumTupleSumTupleSum returns the sum of all elements
of the input tuple TupleTupleTupleTupleTupletuple. All elements of TupleTupleTupleTupleTupletuple
either have to be strings or numbers (integer or floating point numbers).
It is not allowed to mix strings with numerical values. The result
parameter SumSumSumSumSumsum will contain a floating point number, if
at least one element of TupleTupleTupleTupleTupletuple is a floating point number.
If all elements of TupleTupleTupleTupleTupletuple are integer numbers the resulting
sum will also be an integer number. If TupleTupleTupleTupleTupletuple contains strings,
the concatenation will be used for building the sum.
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_sumtuple_sumTupleSumtuple_sumTupleSumTupleSum,
which can be used in an expression in the following syntax:
Sum := sum(Tuple)
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
TupleTupleTupleTupleTupletuple (input_control) number(-array) → HTupleHTupleHTupleVARIANTHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*) (Hlong / double / BSTR) (Hlong / double / char*)
Input tuple.
SumSumSumSumSumsum (output_control) number(-array) → HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)
Sum of tuple elements.
tuple_meantuple_meanTupleMeantuple_meanTupleMeanTupleMean,
tuple_deviationtuple_deviationTupleDeviationtuple_deviationTupleDeviationTupleDeviation,
tuple_mintuple_minTupleMintuple_minTupleMinTupleMin,
tuple_maxtuple_maxTupleMaxtuple_maxTupleMaxTupleMax,
tuple_lengthtuple_lengthTupleLengthtuple_lengthTupleLengthTupleLength,
tuple_mediantuple_medianTupleMediantuple_medianTupleMedianTupleMedian
tuple_cumultuple_cumulTupleCumultuple_cumulTupleCumulTupleCumul
Foundation