TMtx.Replace Method

Overload List

#SignatureDescription
1TMtxVec Replace(TCplx SearchValue, TCplx ReplaceValue, Double Tol)Search and replace a complex value.
└ indexed: TMtxVec Replace(TCplx SearchValue, TCplx ReplaceValue, Int32 Index, Int32 Len, Double Tol)
2TMtxVec Replace(Double SearchValue, Double ReplaceValue, Double Tol)Search and replace a value.
└ indexed: TMtxVec Replace(Double SearchValue, Double ReplaceValue, Int32 Index, Int32 Len, Double Tol)

Overload 1: TMtxVec Replace(TCplx SearchValue, TCplx ReplaceValue, Double Tol)

Search and replace a complex value.

#NameTypeDescription
1SearchValueTCplxscalar
2ReplaceValueTCplxscalar
3TolDoublescalar

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

Indexed: TMtxVec Replace(TCplx SearchValue, TCplx ReplaceValue, Int32 Index, Int32 Len, Double Tol)

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
3IndexInt32start index
4LenInt32element 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: TMtxVec Replace(Double SearchValue, Double ReplaceValue, Double Tol)

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: TMtxVec Replace(Double SearchValue, Double ReplaceValue, Int32 Index, Int32 Len, Double Tol)

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
3IndexInt32start index
4LenInt32element count
5TolDoublescalar

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

Remarks:

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