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....



FillArrayRix


Unit:SDL_openarrays
Class: none
Declaration: [1] function FillArrayRix (var Mat: TIntArray): integer;
[2] function FillArrayRix (var Mat: TInt2DArray): integer;
[3] function FillArrayRix (var Mat: TInt3DArray): integer;
[4] function FillArrayRix (var Mat: TDoubleArray): integer;
[5] function FillArrayRix (var Mat: TDouble2DArray): integer;
[6] function FillArrayRix (var Mat: TDouble3DArray): integer;

The function FillArrayRix fills the matrix Mat so that each cell holds a unique integer value, starting with zero at the cell with the lowest index. The value is incremented by one for each succeeding cell. Thus the matrix is filled with kind of a running index.

The function returns the following error codes:

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



Last Update: 2020-Aug-12