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



Resize


Unit:SDL_vector
Class:TVector, TIntVector
Declaration:function Resize (NE: longint): boolean;

The method Resize changes the number of elements of an existing vector. It returns TRUE if the resizing has been completed successfully. The new dimension of the vector is specified by the parameter NE. Data of the existing vector are not destroyed (as far as they can be contained in the new vector). Additional vector elements are filled with zero values.

Hint: In the Light Edition the number of vector elements is restricted to 2000.

Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): cluster, multilinreg



Last Update: 2023-Feb-06