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


Unit: SDL_matrix
Class: TMat4D
Declaration: function 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:
-2 the matrix is too big, i.e. the number of matrix elements of a single time slot is greater than 231-1 (= 2147483647).
-1 if any of the parameters is invalid

Last Update: 2015-May-13