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;
[5] function MultiplyArrays (Arr1: TInt2DArray; Arr2: TDouble2DArray; var Product: TDouble2DArray): integer;
[6] function MultiplyArrays (Arr1: TDouble2DArray; Arr2: TInt2DArray; var Product: TDouble2DArray): integer;

The function MultiplyArrays multiplies the two arrays Arr1 and Arr2 and returns the result in the variable array Product. Versions [1] and [3] deal with one-dimensional arrays, versions [2] and [4] 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: 2023-Feb-06