tuple_mult🔗
Short description🔗
tuple_mult — Multiply two tuples.
Signature🔗
tuple_mult( number P1, number P2, out number Prod )
Description🔗
tuple_mult computes the product of the input tuples
P1 and P2. If both tuples have the same length
the corresponding elements of both tuples are multiplied.
Otherwise, either P1 or P2 must have length 1. In
this case, the multiplication is performed for each element of the
longer tuple with the single element of the other tuple. If two
integer numbers are multiplied, the result is again an integer
number. If one of the operands is a floating point number, the
result is a floating point number. The multiplication of strings is
not allowed.
Exception: Empty input tuples🔗
If either or both of the input tuples are empty, the operator returns an empty tuple.
HDevelop In-line Operation🔗
HDevelop provides an in-line operation for tuple_mult,
which can be used in an expression in the following syntax:
Prod := P1 * P2
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
P1 (input_control) number(-array) → (real / integer)
Input tuple 1.
P2 (input_control) number(-array) → (real / integer)
Input tuple 2.
Prod (output_control) number(-array) → (real / integer)
Product of the input tuples.
Combinations with other operators🔗
Module🔗
Foundation