MatrixMultScalar

Declaration: MatrixMultScalar (InMat: TDouble2DArray; Wgt, Offs: double; var TargetMat: TDouble2DArray);
The procedure MatrixMultScalar multiplies all elements of the matrix InMat by the parameter Wgt and adds the value Offs. The results are stored in the matrix TargetMat. The matrix elements are transformed according to the following equation:

TargetMat[] := InMat[] * Wgt + Offs