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



DotProduct


Unit:SDL_vector
Class: TVector, TIntVector
Declaration: function DotProduct (OtherVec: TVector): double;{ class TVector }
function DotProduct (OtherVec: TIntVector): integer;{ class TIntVector }

The function DotProduct calculates and returns the dot product (inner product) of the two vectors self and OtherVec. If the dimensions of the two vectors do not match, an exception is generated ('vectors have different dimensions').



Last Update: 2016-Aug-02