You are here: Symbol Reference > MtxExprInt Namespace > Classes > VectorInt Record > public > Difference Method > VectorInt.Difference Method (TMtxVecInt, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
VectorInt.Difference Method (TMtxVecInt, integer, integer, integer)

Difference.

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

 

An exception is raised if ConditionCheck is True and 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!