MatrixSumInt

Declaration: MatrixSumInt (Mat1, Mat2: TInt2DArray; var TargetMat: TInt2DArray): integer;
Calculates the sum of the two open arrays Mat1 and Mat2 and stores the result in the matrix TargetMat.

The size of the resulting matrix TargetMat is automatically adjusted to the size of Mat1. The function returns the following error codes:

 0 ... everything is OK
-1 ... the sizes of Mat1 and Mat2 do not match


Last Update: 2018-Jun-28