Vector::Replace Method

Overload List

#SignatureDescription
1TMtxVec *Replace(double SearchValue, double ReplaceValue, double Tol = 0.0001) const;Search and replace a value.
2TMtxVec *Replace(double SearchValue, double ReplaceValue, int Index, int Len, double Tol = 0.0001) const;Replaces the SearchValue with a ReplaceValue, where the searchValue is compared with Tol to the calling object elements [Index]..[Index+Len-1].
3TMtxVec *Replace(TCplx SearchValue, TCplx ReplaceValue, double Tol = 0.0001) const;Search and replace a complex value.
4TMtxVec *Replace(TCplx SearchValue, TCplx ReplaceValue, int Index, int Len, double Tol = 0.0001) const;Replaces the SearchValue with a ReplaceValue, where the searchValue is compared with Tol to the calling object elements [Index]..[Index+Len-1].

Overload 1: TMtxVec *Replace(double SearchValue, double ReplaceValue, double Tol = 0.0001) const;

Search and replace a value.

#NameTypeDescription
1SearchValuedouble
2ReplaceValuedouble
3Tol = 0.0001double
Remarks:

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

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtxVec *Replace(double SearchValue, double ReplaceValue, int Index, int Len, double Tol = 0.0001) const;

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

#NameTypeDescription
1SearchValuedouble
2ReplaceValuedouble
3Indexint
4Lenint
5Tol = 0.0001double
Remarks:

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

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TMtxVec *Replace(TCplx SearchValue, TCplx ReplaceValue, double Tol = 0.0001) const;

Search and replace a complex value.

#NameTypeDescription
1SearchValueTCplx
2ReplaceValueTCplx
3Tol = 0.0001double
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: TMtxVec *Replace(TCplx SearchValue, TCplx ReplaceValue, int Index, int Len, double Tol = 0.0001) const;

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

#NameTypeDescription
1SearchValueTCplx
2ReplaceValueTCplx
3Indexint
4Lenint
5Tol = 0.0001double
Remarks:

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

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler