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



Cut


Unit: SDL_matrix
Class: TMat4D
Declaration: procedure Cut (LowCol, HighCol, LowRow, HighRow, LowLayer, HighLayer, LowTimeSlot, HighTimeSlot: integer);

The method Cut cuts the matrix to the specified range. All cells which are within the subspace given by LowCol, HighCol, LowRow, HighRow, LowLayer, HighLayer, LowTimeSlot, and HighTimeSlot are shifted into the "upper left corner" of the four-dimensional matrix. The excess dimensions are reduced to fit the shifted cells.

Hint: Setting both the low and high parameter of a dimension (i.e. LowCol and HighCol) to zero values forces the method to use all elements of that dimension.

Example: The statement Cut (1,3,2,7,0,0,0,0); shifts all matrix elements in the columns 1..3 and rows 2..7 in all layers and all time slots towards the x/y-position [1,1] and reduces the size of the matrix to 3 * 6 * NrOfLayers * NrOfTimeSlots.



Last Update: 2013-Oct-10