Matrix.Erfc Method

Overload List

#SignatureDescription
1TMtxVec ErfcComplementary error function of self (in-place).
└ indexed: TMtxVec Erfc(Int32 Index, Int32 Len)
2TMtxVec Erfc(TMtxVec Src)Complementary error function of Src; result stored in self.
└ indexed: TMtxVec Erfc(TMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len)

Overload 1: TMtxVec Erfc

Complementary error function of self (in-place).

Result: stored in self (calling object), returns self for chaining

Examples
Matrix a = new Matrix();
a.SetIt(2, 2, false, new double[] { 0.0, 0.5, 1.0, 2.0 });
a.Erfc();
Matrix expected = new Matrix();
expected.SetIt(2, 2, false, new double[] { 1.0, 0.479500122186953, 0.157299207050285, 0.00467773498104727 });
if (!a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute))
    throw new Exception("Matrix.Erfc: mismatch");

Indexed: TMtxVec Erfc(Int32 Index, Int32 Len)

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

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

Result: stored in self (calling object), returns self for chaining

Overload 2: TMtxVec Erfc(TMtxVec Src)

Complementary error function of Src; result stored in self.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx

Result: stored in self (calling object), returns self for chaining

Examples
Matrix a = new Matrix();
Matrix x = new Matrix();
x.SetIt(2, 2, false, new double[] { 0.0, 0.5, 1.0, 2.0 });
a.Erfc(x);
Matrix expected = new Matrix();
expected.SetIt(2, 2, false, new double[] { 1.0, 0.479500122186953, 0.157299207050285, 0.00467773498104727 });
if (!a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute))
    throw new Exception("Matrix.Erfc: mismatch");

Indexed: TMtxVec Erfc(TMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len)

Complementary error function of Src elements [SrcIndex..SrcIndex+Len-1] stored in self elements [Index..Index+Len-1].

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2SrcIndexInt32source start index
3IndexInt32start index
4LenInt32element count

Result: stored in self (calling object), returns self for chaining