function ReplaceNAN(const Value: double): TMtxVec; overload;
Replaces all NAN values with Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | double | scalar |
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: function ReplaceNAN(const Value: double; Index, Len: integer): TMtxVec; overload;
Replaces all NAN values with Value within calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | double | scalar |
| 2 | Index | integer | start index |
| 3 | Len | integer | element 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.