TMtx.ReplaceNAN Method

TMtxVec ReplaceNAN(Double Value)

Replaces all NAN values with Value.

#NameTypeDescription
1ValueDoublescalar

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

Remarks:

The function will replace all occurences of NAN. If the vector is complex, it will replace any real/imag parts, which are NAN.

Indexed: TMtxVec ReplaceNAN(Double Value, Int32 Index, Int32 Len)

Replaces all NAN values with Value within calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1ValueDoublescalar
2IndexInt32start index
3LenInt32element count

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

Remarks:

The function will replace all occurences of NAN. If the vector is complex, it will replace any real/imag parts, which are NAN. An exception is raised, if array borders are overrun.