You are here: Symbol Reference > clMtxExpr Namespace > Classes > clVector Record > public > DotProd Method > clVector.DotProd Method (integer, TOpenCLMtxVec, TOpenCLMtxVec, boolean, TOpenCLMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
clVector.DotProd Method (integer, TOpenCLMtxVec, TOpenCLMtxVec, boolean, TOpenCLMtxVec)

Scalar product of two real or complex arrays.

Pascal
procedure DotProd(DstIndex: integer; const Vec1: TOpenCLMtxVec; const Vec2: TOpenCLMtxVec; ConjVec: boolean; const Buffer: TOpenCLMtxVec); overload;

Calculates the dot product (scalar value) of the Vec1 and Vec2 stores the result in calling vector at position DstIndex. ConjVec parameter is ignored if data is real. If ConjVec is true, the function computes: result = Vec1*conj(Vec2) 

The dot product is defined by the equation: 

 

 

 

Both objects must be of equal size. If they are not, the method will return the dot product of the largest sub-array.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!