TSparseMtx::Replace Method

Overload List

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

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

Search and replace a value.

#NameTypeDescription
1SearchValueconst double
2ReplaceValueconst double
3Tol = 0.0001const double
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::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *Replace(const float SearchValue, const float ReplaceValue, const float Tol = 0.0001f);

#NameTypeDescription
1SearchValueconst float
2ReplaceValueconst float
3Tol = 0.0001fconst float
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

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

#NameTypeDescription
1SearchValueconst double
2ReplaceValueconst double
3Indexint
4Lenint
5Tol = 0.0001const double
Remarks:

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

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

#NameTypeDescription
1SearchValueconst float
2ReplaceValueconst float
3Indexint
4Lenint
5Tol = 0.0001fconst float
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

Search and replace a complex value.

#NameTypeDescription
1SearchValueconst TCplx &
2ReplaceValueconst TCplx &
3Tol = 0.0001const double
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 6: TMtxVec *Replace(const TSCplx &SearchValue, const TSCplx &ReplaceValue, const float Tol = 0.0001f);

#NameTypeDescription
1SearchValueconst TSCplx &
2ReplaceValueconst TSCplx &
3Tol = 0.0001fconst float
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

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

#NameTypeDescription
1SearchValueconst TCplx &
2ReplaceValueconst TCplx &
3Indexint
4Lenint
5Tol = 0.0001const double
Remarks:

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

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 8: TMtxVec *Replace(const TSCplx &SearchValue, const TSCplx &ReplaceValue, int Index, int Len, const float Tol = 0.0001f);

#NameTypeDescription
1SearchValueconst TSCplx &
2ReplaceValueconst TSCplx &
3Indexint
4Lenint
5Tol = 0.0001fconst float
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler