TVec.StripNanAndInf Method

Overload List

#SignatureDescription
1TMtxVec StripNanAndInf(TMtxVec Src)Copies only those values from Src, which are not NAN or INF.
└ indexed: TMtxVec StripNanAndInf(TMtxVec Src, Int32 SrcIndex, Int32 Len)
2Int32 StripNanAndInf(TMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len)Copies only those values from Src[SrcIndex.. SrcIndex+Len-1], which are not NAN or INF.

Overload 1: TMtxVec StripNanAndInf(TMtxVec Src)

Copies only those values from Src, which are not NAN or INF.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx

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

Indexed: TMtxVec StripNanAndInf(TMtxVec Src, Int32 SrcIndex, Int32 Len)

Copies only those values from Src[SrcIndex.. SrcIndex+Len-1], which are not NAN or INF.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2SrcIndexInt32source start index
3LenInt32element count

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

Remarks:

The length of the Self is set to match the count of matching values.

Overload 2: Int32 StripNanAndInf(TMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len)

Copies only those values from Src[SrcIndex.. SrcIndex+Len-1], which are not NAN or INF.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2SrcIndexInt32source start index
3IndexInt32start index
4LenInt32element count

Returns: Int32

Remarks:

The length of the Self is not modified. The funtion returns "Index" increased by Number of elements found. The calling vector must have enough space to hold at least Index+Len elements, or an exception will be raised.