Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TVec FindAndGather(TMtxVec a, String op, TCplx b, TVecInt Indexes) | Finds and gathers vector elements. |
| 2 | TVec FindAndGather(TMtxVec a, String op, TMtxVec b, TVecInt Indexes) | The b parameter is of Dew.Math.TMtxVec type. |
| 3 | TVec FindAndGather(TMtxVec a, String op, Double b, TVecInt Indexes) | The b parameter is of double type. |
Overload 1: TVec FindAndGather(TMtxVec a, String op, TCplx b, TVecInt Indexes)
Finds and gathers vector elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | TMtxVec | source TVec or TMtx |
| 2 | op | String | |
| 3 | b | TCplx | scalar |
| 4 | Indexes | TVecInt | source TVecInt |
Result: stored in self (calling object), returns self for chaining
Remarks:
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. Both the calling vector and Indexes will be sized to match a.Length. On return, both will be subranged to reflect actual number of matching elements. The method will not raise an exception, if the calling vector (Self) or Indexes parameter are already subranged.
Overload 2: TVec FindAndGather(TMtxVec a, String op, TMtxVec b, TVecInt Indexes)
The b parameter is of Dew.Math.TMtxVec type.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | TMtxVec | source TVec or TMtx |
| 2 | op | String | |
| 3 | b | TMtxVec | source TVec or TMtx |
| 4 | Indexes | TVecInt | source TVecInt |
Result: stored in self (calling object), returns self for chaining