Matrix::Erfc Method

Overload List

#SignatureDescription
1TMtxVec *Erfc() const;Complementary error function of self (in-place).
2TMtxVec *Erfc(TMtxVec *Src) const;Complementary error function of Src; result stored in self.
3TMtxVec *Erfc(int Index, int Len) const;Complementary error function on self elements [Index..Index+Len-1] in-place.
4TMtxVec *Erfc(TMtxVec *Src, int SrcIndex, int Index, int Len) const;Complementary error function of Src elements [SrcIndex..SrcIndex+Len-1] stored in self elements [Index..Index+Len-1].

Overload 1: TMtxVec *Erfc() const;

Complementary 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.Erfc();
    Matrix expected;
    expected.SetIt(2, 2, false, DewArray<double>{ 1.0, 0.479500122186953, 0.157299207050285, 0.00467773498104727 });
    if (!a.IsEqual(expected, 1e-10, TCompare::cmpAbsolute))
        throw tException("Matrix.Erfc: mismatch");
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

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

Complementary 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()
{
    Matrix a;
    Matrix x;
    x.SetIt(2, 2, false, DewArray<double>{ 0.0, 0.5, 1.0, 2.0 });
    a.Erfc(x);
    Matrix expected;
    expected.SetIt(2, 2, false, DewArray<double>{ 1.0, 0.479500122186953, 0.157299207050285, 0.00467773498104727 });
    if (!a.IsEqual(expected, 1e-10, TCompare::cmpAbsolute))
        throw tException("Matrix.Erfc: mismatch");
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TMtxVec *Erfc(int Index, int Len) const;

Complementary error function on self elements [Index..Index+Len-1] in-place.

#NameTypeDescription
1Indexint
2Lenint
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: TMtxVec *Erfc(TMtxVec *Src, int SrcIndex, int Index, int Len) const;

Complementary 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::Matrix · Dew.Math/MtxExpr.h · Cross-compiler