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


Fill

Declaration: TMatrix.Fill (LowCol, HighCol, LowRow, HighRow: integer; value: double);
The method Fill sets all elements of a matrix to value. You can fill a particular rectangular region of the matrix by specifying the lower and upper columns and rows of the area to be filled (parameters LowCol, HighCol, LowRow and HighRow).

Hint 1: Setting both the low and high parameter of a dimension (i.e. LowCol and HighCol) to zero values forces the method to use all elements of that dimension.

Hint 2: The class TMatrix has no explicit method to clear the elements of the matrix. In order to reset all elements to zero values, the method Fill should be used.

Example: The statement Mat.Fill(0.0); clears all elements of the matrix Mat.