Vector.Replace Method

Overload List

#SignatureDescription
1function Replace(SearchValue, ReplaceValue: TCplx; Tol: double = 0.0001): TMtxVec; overload;Search and replace a complex value.
└ indexed: function Replace(SearchValue, ReplaceValue: TCplx; Index, Len: integer; Tol: double = 0.0001): TMtxVec; overload;
2function Replace(SearchValue, ReplaceValue: double; Tol: double = 0.0001): TMtxVec; overload;Search and replace a value.
└ indexed: function Replace(SearchValue, ReplaceValue: double; Index, Len: integer; Tol: double = 0.0001): TMtxVec; overload;

Overload 1: function Replace(SearchValue, ReplaceValue: TCplx; Tol: double = 0.0001): TMtxVec; overload;

Search and replace a complex value.

#NameTypeDescription
1SearchValueTCplxscalar
2ReplaceValueTCplxscalar
3Toldoublescalar

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

Indexed: function Replace(SearchValue, ReplaceValue: TCplx; Index, Len: integer; Tol: double = 0.0001): TMtxVec; overload;

Replaces the SearchValue with a ReplaceValue, where the searchValue is compared with Tol to the calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1SearchValueTCplxscalar
2ReplaceValueTCplxscalar
3Indexintegerstart index
4Lenintegerelement count
5Toldoublescalar

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

Remarks:

An exception is raised if array borders are overrun/underrun.

Overload 2: function Replace(SearchValue, ReplaceValue: double; Tol: double = 0.0001): TMtxVec; overload;

Search and replace a value.

#NameTypeDescription
1SearchValuedoublescalar
2ReplaceValuedoublescalar
3Toldoublescalar

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

Remarks:

Replaces the SearchValue with a ReplaceValue, where the searchValue is compared with Tol to the values of the calling object.

Indexed: function Replace(SearchValue, ReplaceValue: double; Index, Len: integer; Tol: double = 0.0001): TMtxVec; overload;

Replaces the SearchValue with a ReplaceValue, where the searchValue is compared with Tol to the calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1SearchValuedoublescalar
2ReplaceValuedoublescalar
3Indexintegerstart index
4Lenintegerelement count
5Toldoublescalar

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

Remarks:

An exception is raised if array borders are overrun/underrun.