Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Replace(const SearchValue: TCplx; const ReplaceValue: TCplx; const Tol: Double): TMtxVec; | Search and replace a complex value. |
| └ indexed: function Replace(const SearchValue: TCplx; const ReplaceValue: TCplx; Index: Integer; Len: Integer; const Tol: Double): TMtxVec; | ||
| 2 | function Replace(const SearchValue: Double; const ReplaceValue: Double; const Tol: Double): TMtxVec; | Search and replace a value. |
| └ indexed: function Replace(const SearchValue: Double; const ReplaceValue: Double; Index: Integer; Len: Integer; const Tol: Double): TMtxVec; |
Overload 1: function Replace(const SearchValue: TCplx; const ReplaceValue: TCplx; const Tol: Double): TMtxVec;
Search and replace a complex value.
Result: stored in self (calling object), returns self for chaining
Indexed: function Replace(const SearchValue: TCplx; const ReplaceValue: TCplx; Index: Integer; Len: Integer; const Tol: Double): TMtxVec;
Replaces the SearchValue with a ReplaceValue, where the searchValue is compared with Tol to the calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SearchValue | TCplx | scalar |
| 2 | ReplaceValue | TCplx | scalar |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
| 5 | Tol | Double | scalar |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun/underrun.
Overload 2: function Replace(const SearchValue: Double; const ReplaceValue: Double; const Tol: Double): TMtxVec;
Search and replace a value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SearchValue | Double | scalar |
| 2 | ReplaceValue | Double | scalar |
| 3 | Tol | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Replaces the SearchValue with a ReplaceValue, where the searchValue is compared with Tol to the values of the calling object.
Indexed: function Replace(const SearchValue: Double; const ReplaceValue: Double; Index: Integer; Len: Integer; const Tol: Double): TMtxVec;
Replaces the SearchValue with a ReplaceValue, where the searchValue is compared with Tol to the calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SearchValue | Double | scalar |
| 2 | ReplaceValue | Double | scalar |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
| 5 | Tol | Double | scalar |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun/underrun.