Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt FindIndexes(TMtxVecInt aThis, TMtxVec a, String op, TCplx b) | Fills the calling vector with indexes, where the logical expression is true. |
| 2 | TMtxVecInt FindIndexes(TMtxVecInt aThis, TMtxVec a, String op, TMtxVec b) | The b parameter is of Dew.Math.TMtxVec type. |
| 3 | TMtxVecInt FindIndexes(TMtxVecInt aThis, TMtxVec a, String op, Double b) | The b parameter is of double type. |
Overload 1: TMtxVecInt FindIndexes(TMtxVecInt aThis, TMtxVec a, String op, TCplx b)
Fills the calling vector with indexes, where the logical expression is true.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aThis | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | a | TMtxVec | source TVec or TMtx |
| 3 | op | String | |
| 4 | b | TCplx | scalar |
Result: stored in self (calling object), returns self for chaining
Fills the calling vector with indexes, where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'. The calling vector will be sized to match a.Length. On return it will be subranged to reflect actual number of matching elements. The method will not raise an exception, if the calling vector (Self) is already subranged. Check the TVec.SetSubRange routine to learn more about subranges.
MtxVec.CreateIt(out a, out 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
{
MtxVec.FreeIt(ref a, ref b);
}
Overload 2: TMtxVecInt FindIndexes(TMtxVecInt aThis, TMtxVec a, String op, TMtxVec b)
The b parameter is of Dew.Math.TMtxVec type.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aThis | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | a | TMtxVec | source TVec or TMtx |
| 3 | op | String | |
| 4 | b | TMtxVec | source TVec or TMtx |
Result: stored in self (calling object), returns self for chaining
Overload 3: TMtxVecInt FindIndexes(TMtxVecInt aThis, TMtxVec a, String op, Double b)
The b parameter is of double type.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aThis | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | a | TMtxVec | source TVec or TMtx |
| 3 | op | String | |
| 4 | b | Double | scalar |
Result: stored in self (calling object), returns self for chaining