TVec::StripNanAndInf Method

Overload List

#SignatureDescription
1int StripNanAndInf(TMtxVec *Src, TMtxVec *Dst, int SrcIdx, int DstIdx, int Len);
2TMtxVec *StripNanAndInf(TMtxVec *Src);Copies only those values from Src, which are not NAN or INF.
3TMtxVec *StripNanAndInf(TMtxVec *Src, int SrcIndex, int Len);Copies only those values from Src[SrcIndex.. SrcIndex+Len-1], which are not NAN or INF.
4int StripNanAndInf(TMtxVec *Src, int SrcIndex, int Index, int Len);Copies only those values from Src[SrcIndex.. SrcIndex+Len-1], which are not NAN or INF.

Overload 1: int StripNanAndInf(TMtxVec *Src, TMtxVec *Dst, int SrcIdx, int DstIdx, int Len);

#NameTypeDescription
1SrcTMtxVec *
2DstTMtxVec *
3SrcIdxint
4DstIdxint
5Lenint
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *StripNanAndInf(TMtxVec *Src);

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

#NameTypeDescription
1SrcTMtxVec *
Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 3: TMtxVec *StripNanAndInf(TMtxVec *Src, int SrcIndex, int Len);

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

#NameTypeDescription
1SrcTMtxVec *
2SrcIndexint
3Lenint
Remarks:

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

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 4: int StripNanAndInf(TMtxVec *Src, int SrcIndex, int Index, int Len);

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

#NameTypeDescription
1SrcTMtxVec *
2SrcIndexint
3Indexint
4Lenint
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.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler