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

The difference between two succesive vector elements.

Pascal
function Difference(const Vec: TOpenCLMtxVec; Lag: Integer = 1): TOpenCLVector; overload;

Store the results in the calling vector. The TOpenCLBase.LengthLengthof the calling vector is set to one less the length of Vec and TOpenCLBase.ComplexComplexproperty is set to Vec.Complex. The following formula is used to calculate the difference: 

 

 

The Length of calling vector is automatically decremented by one.

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