Vector::Erf Method

Overload List

#SignatureDescription
1TMtxVec *Erf() const;Error function of self (in-place).
2TMtxVec *Erf(TMtxVec *Src) const;Error function of Src; result stored in self.
3TMtxVec *Erf(int Index, int Len) const;Error function on self elements [Index..Index+Len-1] in-place.
4TMtxVec *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()
{
    Vector a;
    a.SetIt(DewArray<double>{ 0.0, 0.5, 1.0, 2.0 });
    a.Erf();
    Vector expected;
    expected.SetIt(DewArray<double>{ 0.0, 0.520499877813047, 0.842700792949715, 0.995322265018953 });
    if (!a.IsEqual(expected, 1e-10, TCompare::cmpAbsolute))
        throw tException("Vector.Erf: mismatch");
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtxVec *Erf(TMtxVec *Src) const;

Error function of Src; result stored in self.

#NameTypeDescription
1SrcTMtxVec *
Examples
#include "Math387.h"
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Vector a;
    Vector x;
    x.SetIt(DewArray<double>{ 0.0, 0.5, 1.0, 2.0 });
    a.Erf(x);
    Vector expected;
    expected.SetIt(DewArray<double>{ 0.0, 0.520499877813047, 0.842700792949715, 0.995322265018953 });
    if (!a.IsEqual(expected, 1e-10, TCompare::cmpAbsolute))
        throw tException("Vector.Erf: mismatch");
}
Declared in Dew::Math::Vector · 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.

#NameTypeDescription
1Indexint
2Lenint
Declared in Dew::Math::Vector · 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].

#NameTypeDescription
1SrcTMtxVec *
2SrcIndexint
3Indexint
4Lenint
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler