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

Difference.

Pascal
function Difference(const Vec: TMtxVecInt; VecIndex: integer; Index: integer; Len: integer; Lag: integer = 1): TMtxVecInt; 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 of the calling vector must be set explicitly. The following formula is used to calculate the difference: 

 

An exception is raised if TMtxVecBase.ConditionCheckConditionCheckis True and array borders are overrun or underrun.

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