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


Class:TMatrix, TIntMatrix, TMat3D
Declaration:property NrOfColumns: longint;

The property NrOfColumns controls the number of columns of a matrix. The matrix elements are addressed starting with an index of 1. For the classes TIntMatrix and TMatrix the properties NrOfColumns and/or NrOfRows may be set to zero to create a 0-by-0 matrix.

Hint 1: If you have to adjust not only NrOfColumns but also NrOfRows then it is faster to use the method Resize.

Hint 2: In the Light Edition the number of cells is restricted to 2000 (NrOfColumns times NrOfRows).

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

Last Update: 2023-Feb-06