The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



FillArraySerial


Unit:SDL_openarrays
Class: none
Declaration: [1] function FillArraySerial (var Mat: TIntArray): integer;
[2] function FillArraySerial (var Mat: TInt2DArray): integer;
[3] function FillArraySerial (var Mat: TInt3DArray): integer;
[4] function FillArraySerial (var Mat: TDoubleArray): integer;
[5] function FillArraySerial (var Mat: TDouble2DArray): integer;
[6] function FillArraySerial (var Mat: TDouble3DArray): integer;
[7] function FillArraySerial (var Mat: TIntArray; Offset, Diff: integer): integer;
[8] function FillArraySerial (var Mat: TInt2DArray; Offset, Diff: integer): integer;
[9] function FillArraySerial (var Mat: TInt3DArray; Offset, Diff: integer): integer;
[10] function FillArraySerial (var Mat: TDoubleArray; Offset, Diff: double): integer;
[11] function FillArraySerial (var Mat: TDouble2DArray; Offset, Diff: double): integer;
[12] function FillArraySerial (var Mat: TDouble3DArray; Offset, Diff: double): integer;
[13] function FillArraySerial (var Mat: TDouble4DArray; Offset, Diff: double): integer;

The function FillArraySerial fills the matrix Mat so that each cell holds a unique value, starting with zero at the cell with the lowest index (version [1] to [6]) or starting with Offset at the first cell (versions [7] to [13]). The value is incremented by one for each subsequent cell for versions [1] to [6] and by the value Diff for the versions [7] to [13]. Two-dimensional arrays are filled columnwise, three-dimenional arrays are columnwise and layerwise.

The function returns the following error codes:

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



Last Update: 2023-Feb-10