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


Declaration:procedure Redimension (NRCols, NrRows: integer);

The method Redimension serves to change the dimensions of the matrix on the fly. The parameters NrCols and NrRows define the intended size of the matrix (number of columns and number of rows). Any excess matrix elements which are not covered by the original matrix are set to zero values.

Note: The method Redimension is much more efficient than assigning the new table dimensions to the properties NrOfColumns and NrOfRows. It is therefore strongly recommended to use Redimension whenever both dimensions of the table have to be changed.

Hint: In the Light Edition the max. number of cells of the data table is restricted to 2000 (i.e. the product of NrOfColumns times NrOfRows must not exceed 2000).

Example: This property is used in the following example program (see for downloading the code): multilinreg

Last Update: 2013-May-30