Declaration: TMat4D.Lin3DAddr (ix, iy, il: integer): integer;
The function Lin3DAddr returns the linearized address of the matrix element [ix,iy,il,*] with ix, iy, and il being the index of the x-, y-axis or layer axis, respectively. The time slot axis is not taken into account.

The conversion into a linearized address can be used advantageously for maintaining lists of particular cells of a time slot of the data matrix.

Lin3DAddr returns a negative value if any error occurs during the conversion:

The function returns the following error codes:

-1 ... if any of the parameters is invalid
-2 ... the matrix is too big, i.e. the number of matrix elements of a single time slot is greater than 231-1 (= 2147483647).