Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double NormL2(TDenseMtxVec *Vec, bool RelativeError = false) const; | The L2-norm. |
| 2 | double NormL2(TDenseMtxVec *Vec, int VecIndex, int Index, int Len, bool RelativeError = false) const; | Calculates the L2 norm ||V-Vec|| between Vec elements [VecIndex]..[VecIndex+Len-1] and calling vector elements [Index]..[Index+Len-1]. |
| 3 | double NormL2() const; | Calculate the L2-norm of the calling vector. |
| 4 | double NormL2(int Index, int Len) const; | Calculates the L2 norm from calling vector elements [Index]..[Index+Len-1]. |
Overload 1: double NormL2(TDenseMtxVec *Vec, bool RelativeError = false) const;
The L2-norm.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TDenseMtxVec * | |
| 2 | RelativeError = false | bool |
Remarks:
Calculates the L2 norm : ||V-Vec||, where V is calling vector. If the NormL2 is called without any parameters, the NormL2 calculates the norm of calling vector. The L2 norm of ||V-Vec|| is defined by the formula:
If RelativeError is true then the computed norm is divided by the norm of V, and the function returns the "relative error":
See Also: Vector::NormC, Vector::NormL1
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: double NormL2(TDenseMtxVec *Vec, int VecIndex, int Index, int Len, bool RelativeError = false) const;
Calculates the L2 norm ||V-Vec|| between Vec elements [VecIndex]..[VecIndex+Len-1] and calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TDenseMtxVec * | |
| 2 | VecIndex | int | |
| 3 | Index | int | |
| 4 | Len | int | |
| 5 | RelativeError = false | bool |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 3: double NormL2() const;
Calculate the L2-norm of the calling vector.
Remarks:
NormL2 = ( sum | a[i] |^2 )^(0.5), 0 < i < Length-1
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 4: double NormL2(int Index, int Len) const;
Calculates the L2 norm from calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler