VectorInt.FindIndexes Method

Overload List

#SignatureDescription
1function FindIndexes(const a: TMtxVec; const op: string; const b: TCplx): TMtxVecInt;Fills the calling vector with indexes, where the logical expression is true.
2function FindIndexes(const a: TMtxVec; const op: string; const b: TMtxVec): TMtxVecInt;The b parameter is of type.
3function FindIndexes(const a: TMtxVec; const op: string; const b: Double): TMtxVecInt;The b parameter is of double type.
4function FindIndexes(const a: TMtxVecInt; const op: string; const b: TMtxVecInt): TMtxVecInt;The b parameter is of TMtxVecInt type.
5function FindIndexes(const a: TMtxVecInt; const op: string; const b: Integer): TMtxVecInt;The b parameter is of integer type.

Overload 1: function FindIndexes(const a: TMtxVec; const op: string; const b: TCplx): TMtxVecInt;

Fills the calling vector with indexes, where the logical expression is true.

#NameTypeDescription
1aTMtxVec
2opstring
3bTCplx

Result: stored in self (calling object), returns self for chaining

Remarks:

Fills the calling vector with indexes, where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'.

Examples
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;
See Also: Vector.FindAndGather, VectorInt.FindAndGather, VectorInt.FindAndSplit, VectorInt.FindMask, VectorInt.Find, Vector.Gather, VectorInt.Gather, VectorInt.Scatter

Overload 2: function FindIndexes(const a: TMtxVec; const op: string; const b: TMtxVec): TMtxVecInt;

The b parameter is of type.

#NameTypeDescription
1aTMtxVec
2opstring
3bTMtxVec

Result: stored in self (calling object), returns self for chaining

Overload 3: function FindIndexes(const a: TMtxVec; const op: string; const b: Double): TMtxVecInt;

The b parameter is of double type.

#NameTypeDescription
1aTMtxVec
2opstring
3bDouble

Result: stored in self (calling object), returns self for chaining

Overload 4: function FindIndexes(const a: TMtxVecInt; const op: string; const b: TMtxVecInt): TMtxVecInt;

The b parameter is of TMtxVecInt type.

#NameTypeDescription
1aTMtxVecInt
2opstring
3bTMtxVecInt

Result: stored in self (calling object), returns self for chaining

Overload 5: function FindIndexes(const a: TMtxVecInt; const op: string; const b: Integer): TMtxVecInt;

The b parameter is of integer type.

#NameTypeDescription
1aTMtxVecInt
2opstring
3bInteger

Result: stored in self (calling object), returns self for chaining