DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Add

Declaration:TVector.Add (OtherVec: TVector): integer;
The method Add calculates the sum of the two vectors self and Othervec. The result is written back to self.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the dimensions of the two vectors do not match

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