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

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

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

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

Vector.FindAndGather, VectorInt.FindAndGather, FindAndSplit, FindMask, Find, Vector.Gather, VectorInt.Gather, Scatter

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;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!