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



Elem


Unit:SDL_vector
Class: TVector, TIntVector
Declaration: property Elem[ix: longint]: double; { class TVector }
property Elem[ix: longint]: integer; { class TIntVector }

The property Elem is used to access a specific element of a vector. The parameter ix specifies the index of the element to be accessed [1..NrOfElem ]. If ix holds an invalid index (the valid range is determined by the parameters of the constructor Create), Elem returns 0.0 or the assignment is ignored. Please note that the property Elem is declared as default property.

Example: The statement Vec1.Elem[20]:=10.555; loads the 20th vector element with the value 10.555.

Example: This property is used in the following example programs (see http://www.lohninger.com/examples.html for downloading the code): cluster, multilinreg, percentile, simplepca, testvec



Last Update: 2015-May-11