You are here: Symbol Reference > MtxExprInt Namespace > Classes > VectorInt Record > public > FindMask Method > VectorInt.FindMask Method (TMtxVec, string, TCplx)
MtxVec VCL
ContentsIndex
PreviousUpNext
VectorInt.FindMask Method (TMtxVec, string, TCplx)

Finds a vector mask.

Pascal
function FindMask(const a: TMtxVec; const op: string; const b: TCplx): TMtxVecInt; overload;

The calling vector will hold the those elements where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'. 

The calling vector will store the mask, 1 at those index locations

  • where the Op comparison was True and 0 at those index locations
  • where the Op comparison was false.

 

The calling vector stores the mask as Integers in to the memory location occupied by Values array.

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