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



MultiplyArrays


Unit:SDL_openarrays
Class: none
Declaration: [1] function MultiplyArrays (Arr1, Arr2: TIntArray; var Product: TInt2DArray): integer;
[2] function MultiplyArrays (Arr1, Arr2: TInt2DArray; var Product: TInt2DArray): integer;
[3] function MultiplyArrays (Arr1, Arr2: TDoubleArray; var Product: TDouble2DArray): integer;
[4] function MultiplyArrays (Arr1, Arr2: TDouble2DArray; var Product: TDouble2DArray): integer;

The function MultiplyArrays multiplies the two arrays Arr1 and Arr2 and returns the result in the variable array Product. Version [1] deals with one-dimensional arrays, version [2] with two-dimensional arrays. The size of the array Product is automatically adjusted.

The function returns the following error codes:

 0 ... everything is OK
-1 ... Arr1 or Arr2 has zero size
-2 ... Arr1 and Arr2 do not have compatible dimensions



Last Update: 2017-Nov-25