Dew MtxVec NET
TVec.FindAndGather Methods
Summary
Finds and gathers vector elements.

Class
TVec

Declaration
Function FindAndGather(a: TMtxVec; op: string; b: TMtxVec; Indexes: TVec = nil): TVec;

Description
The b parameter is of AbstractMtxVec.TMtxVec type.
Declaration
Function FindAndGather(a: TMtxVec; op: string; b: TSample; Indexes: TVec = nil): TVec;

Description
The b parameter is of TSample type.
Declaration
Function FindAndGather(a: TMtxVec; op: string; b: TCplx; Indexes: TVec = nil): TVec;

Description
Fills the Indexes vector with indexes, of those elements where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'. The method also copies or "gathers" the matched elements to the calling vector. The Length and complex property of the calling vector are set automatically.

The Indexes vector stores the indexes as Integer in to the memory location occupied by Values array. The memory is typecasted to an array of integers via IValues array property. Other TMtxVec methods can not be used to perform operations on an array of integers unless explicitely specified.

Copyright 2008 Dew Research
http://www.dewresearch.com