Dew MtxVec NET
TVec.FindIndexes Methods
Summary
Fills the calling vector with indexes, where the logical expression is true.

Class
TVec

Declaration
Function FindIndexes(a: TMtxVec; op: string; b: TMtxVec): TVec;

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

Description
The b parameter is of Math387.TSample type.
Declaration
Function FindIndexes(a: TMtxVec; op: string; b: TCplx): TVec;

Description
Fills the calling vector with indexes, where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'.
 See Also 
FindAndGather 
FindAndSplit 
FindMask 
Find 
Gather 
Scatter 

Example 1

Ensure that the power function will return 0, if the exponent is 0.
CreateIt(a,b); With TVec(Self) do try Ln(Base); //First do it the normal way then fix the anomalies Mul(Exponent); Exp; a.FindIndexes(Exponent,'=',0); b.Size(a.Length,Complex); b.Setval(1); Scatter(b,a); finally FreeIt(a,b); end;

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