You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > DotProd Method > TOpenCLMtxVec.DotProd Method (integer, TOpenCLMtxVec, TOpenCLMtxVec, boolean, TOpenCLMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.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-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!