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....



AddArrays


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

The function AddArrays adds the two arrays Arr1 and Arr2 and writes the sum to the array Sum. The array Sum 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