Name
tuple_addtuple_addTupleAddtuple_addTupleAddTupleAdd — Add two tuples.
Herror tuple_add(double S1, double S2, double* Sum)
Herror T_tuple_add(const Htuple S1, const Htuple S2, Htuple* Sum)
Herror tuple_add(const HTuple& S1, const HTuple& S2, double* Sum)
Herror tuple_add(const HTuple& S1, const HTuple& S2, HTuple* Sum)
void TupleAdd(const HTuple& S1, const HTuple& S2, HTuple* Sum)
HTuple HTuple::TupleAdd(const HTuple& S2) const
tuple_addtuple_addTupleAddtuple_addTupleAddTupleAdd computes the sum of the input tuples S1S1S1S1S1s1
and S2S2S2S2S2s2. If both tuples have the same length the
corresponding elements of both tuples are added. Otherwise, either
S1S1S1S1S1s1 or S2S2S2S2S2s2 must have length 1. In this case, the
addition is performed for each element of the longer tuple with the
single element of the other tuple. If two integer numbers are
added, the result is again an integer number. If a floating point
number is added to another number, the result is a floating point
number. If two strings are added, the addition corresponds to a
string concatenation. If a number and a string are added, the
number is converted to a string first. Thus, the addition also
corresponds to a string concatenation in this case.
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
S1S1S1S1S1s1 (input_control) number(-array) → HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)
Input tuple 1.
S2S2S2S2S2s2 (input_control) number(-array) → HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)
Input tuple 2.
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 the input tuples.
tuple_subtuple_subTupleSubtuple_subTupleSubTupleSub
tuple_cumultuple_cumulTupleCumultuple_cumulTupleCumulTupleCumul
Foundation