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



Subtract


Unit:SDL_vector
Class: TVector, TIntVector
Declaration: procedure Subtract (OtherVec: TVector); { class TVector }
procedure Subtract (OtherVec: TIntVector); { class TIntVector }

The method Subtract calculates the difference of the two vectors self and Othervec. The result is written back to self (self := self - OtherVec). If the dimensions of the two vectors do not match, an exception is generated ('vectors have different dimensions').

 


Last Update: 2012-Oct-20