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



MakeValidColRange


Unit:SDL_vector
Class: TMatrix, TIntMatrix, TMat3D
Declaration: procedure MakeValidColRange (var LowCol, HighCol: integer);

The method MakeValidColRange ensures that the matrix column indexes LowCol and HighCol are within the valid index range of the matrix (i.e. they are greater or equal to 1 and less than or equal to NrOfColumns). If any of the two variable parameters falls outside the valid range, it is adjusted to the nearest limit. Passing a zero value to both parameters returns the minimum and maximum range values (i.e. 1 and NrOfColumns).

 



Last Update: 2015-May-13