Herror ::tuple_sub (
    const HTuple &D1,
    const HTuple &D2,
    double *Diff
)
Herror ::tuple_sub (
    const HTuple &D1,
    const HTuple &D2,
    HTuple *Diff
)

Subtract two tuples.

::tuple_sub computes the difference of the input tuples D1 and D2. If both tuples have the same length the corresponding elements of both tuples are subtracted. Otherwise, either D1 or D2 must have length 1. In this case, the subtraction is performed for each element of the longer tuple with the single element of the other tuple. If two integer numbers are subtracted, 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 subtraction of strings is not allowed.


Parameters

D1 (input_control)
number(-array) -> HTuple.double / long
Input tuple 1.

D2 (input_control)
number(-array) -> HTuple.double / long
Input tuple 2.

Diff (output_control)
number(-array) -> (HTuple.) double * / long *
Difference of the input tuples.


Alternatives

::tuple_add


Module

Operators not requiring licensing



Copyright © 1996-2002 MVTec Software GmbH