VectorInt.FindMask Method

Overload List

#SignatureDescription
1TMtxVecInt FindMask(TMtxVec a, String op, TCplx b)Finds a vector mask.
2TMtxVecInt FindMask(TMtxVec a, String op, TMtxVec b)The b parameter is of type.
3TMtxVecInt FindMask(TMtxVec a, String op, Double b)The b parameter is of double type.
4TMtxVecInt FindMask(TMtxVecInt a, String op, TMtxVecInt b)The b parameter is of Dew.Math.TMtxVecInt type.
5TMtxVecInt FindMask(TMtxVecInt a, String op, Int32 b)The b parameter is of integer type.

Overload 1: TMtxVecInt FindMask(TMtxVec a, String op, TCplx b)

Finds a vector mask.

#NameTypeDescription
1aTMtxVecsource TVec or TMtx
2opString
3bTCplxscalar

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

Remarks:

The calling vector will hold the those elements where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'.

The calling vector will store the mask, 1 at those index locations

  • where the Op comparison was True and 0 at those index locations
  • where the Op comparison was false.

The calling vector stores the mask as Integers in to the memory location occupied by Values array.

See Also: Vector.FindAndGather, VectorInt.FindAndGather, VectorInt.FindAndSplit, VectorInt.FindIndexes, VectorInt.Find, Vector.Gather, VectorInt.Gather, VectorInt.Scatter

Overload 2: TMtxVecInt FindMask(TMtxVec a, String op, TMtxVec b)

The b parameter is of type.

#NameTypeDescription
1aTMtxVecsource TVec or TMtx
2opString
3bTMtxVecsource TVec or TMtx

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

Overload 3: TMtxVecInt FindMask(TMtxVec a, String op, Double b)

The b parameter is of double type.

#NameTypeDescription
1aTMtxVecsource TVec or TMtx
2opString
3bDoublescalar

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

Overload 4: TMtxVecInt FindMask(TMtxVecInt a, String op, TMtxVecInt b)

The b parameter is of Dew.Math.TMtxVecInt type.

#NameTypeDescription
1aTMtxVecIntsource TVecInt or TMtxInt
2opString
3bTMtxVecIntsource TVecInt or TMtxInt

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

Overload 5: TMtxVecInt FindMask(TMtxVecInt a, String op, Int32 b)

The b parameter is of integer type.

#NameTypeDescription
1aTMtxVecIntsource TVecInt or TMtxInt
2opString
3bInt32

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