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


Fill2DArraySerial

Declaration: Fill2DArraySerial (var Mat: TDouble2DArray; Offset, Diff: double): integer;
The function Fill2DArraySerial fills the two-dimensional array Mat so that each cell holds a unique value, starting with Offset at the first cell. The value is incremented by Diff for each succeeding cell. The array are filled columnwise.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the array Mat has zero size