Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *Erf() const; | Error function of self (in-place). |
| 2 | TMtxVec *Erf(TMtxVec *Src) const; | Error function of Src; result stored in self. |
| 3 | TMtxVec *Erf(int Index, int Len) const; | Error function on self elements [Index..Index+Len-1] in-place. |
| 4 | TMtxVec *Erf(TMtxVec *Src, int SrcIndex, int Index, int Len) const; | Error function of Src elements [SrcIndex..SrcIndex+Len-1] stored in self elements [Index..Index+Len-1]. |
Overload 1: TMtxVec *Erf() const;
Error function of self (in-place).
Examples
#include "Math387.h"
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Matrix a;
a.SetIt(2, 2, false, DewArray<double>{ 0.0, 0.5, 1.0, 2.0 });
a.Erf();
Matrix expected;
expected.SetIt(2, 2, false, DewArray<double>{ 0.0, 0.520499877813047, 0.842700792949715, 0.995322265018953 });
if (!a.IsEqual(expected, 1e-10, TCompare::cmpAbsolute))
throw tException("Matrix.Erf: mismatch");
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: TMtxVec *Erf(TMtxVec *Src) const;
Error function of Src; result stored in self.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * |
Examples
#include "Math387.h"
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Matrix a;
Matrix x;
x.SetIt(2, 2, false, DewArray<double>{ 0.0, 0.5, 1.0, 2.0 });
a.Erf(x);
Matrix expected;
expected.SetIt(2, 2, false, DewArray<double>{ 0.0, 0.520499877813047, 0.842700792949715, 0.995322265018953 });
if (!a.IsEqual(expected, 1e-10, TCompare::cmpAbsolute))
throw tException("Matrix.Erf: mismatch");
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 3: TMtxVec *Erf(int Index, int Len) const;
Error function on self elements [Index..Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 4: TMtxVec *Erf(TMtxVec *Src, int SrcIndex, int Index, int Len) const;
Error function of Src elements [SrcIndex..SrcIndex+Len-1] stored in self elements [Index..Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler