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: TVector, TIntVector
Declaration: procedure Add (OtherVec: TVector); { class TVector }
procedure Add (OtherVec: TIntVector); { class TIntVector }

The method Add calculates the sum of the two vectors self and Othervec. The result is written back to self. If the dimensions of the two vectors do not match, an exception is generated ('vectors have different dimensions').


Example: The statement Vec1.Add(Vec2); adds the vectors Vec1 and Vec2 and stores the result in Vec1.

Last Update: 2017-Aug-30