You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > TOpenCLMtxVec.Difference Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.Difference Method

Difference.

Pascal
function Difference(const Vec: TOpenCLMtxVec; VecIndex: integer; Index: integer; Len: integer): TOpenCLMtxVec; overload;

Calculate the difference for Vec elements [VecIndex]..[VecIndex+Len-1] and store the results in the calling object elements [Index]..[Index+Len-1]. Size and TOpenCLBase.ComplexComplexproperties of the calling vector must be set explicitly. The following formula is used to calculate the difference: 

 

An exception is raised if array borders are overrun or underrun.

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