DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


MatrixMult

Declaration: MatrixMult (Mat1, Mat2: TDouble2DArray; var TargetMat: TDouble2DArray): integer;
The function MatrixMult multiplies the two arrays Mat1 and Mat2 and returns the result in the variable array TargetMat. The size of the array TargetMat is automatically adjusted.

The function returns the following error codes:

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