The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



SubtractArrays


Unit:SDL_openarrays
Class: none
Declaration: [1] function SubtractArrays (Arr1, Arr2: TIntArray; var Difference: TIntArray): integer;
[2] function SubtractArrays (Arr1, Arr2: TInt2DArray; var Difference: TInt2DArray): integer;
[3] function SubtractArrays (Arr1, Arr2: TInt3DArray; var Difference: TInt3DArray): integer;
[4] function SubtractArrays (Arr1, Arr2: TInt4DArray; var Difference: TInt4DArray): integer;
[5] function SubtractArrays (Arr1, Arr2: TDoubleArray; var Difference: TDoubleArray): integer;
[6] function SubtractArrays (Arr1, Arr2: TDouble2DArray; var Difference: TDouble2DArray): integer;
[7] function SubtractArrays (Arr1, Arr2: TDouble3DArray; var Difference: TDouble3DArray): integer;
[8] function SubtractArrays (Arr1, Arr2: TDouble4DArray; var Difference: TDouble4DArray): integer;

The method SubtractArrays adds the two arrays Arr1 and Arr2 and writes the difference to the array Difference. The array Difference is automatically resized to match the source arrays.

The function returns the following error codes:

 0 ... everything is OK
-1 ... Arr1 or Arr2 has size zero
-2 ... Arr1 and Arr2 are not equal in size



Last Update: 2017-Nov-24