TSparseMtx.Erf Method

Overload List

#SignatureDescription
1function Erf: TMtxVec; overload;Error functon of values.
└ indexed: function Erf(Index,Len: integer): TMtxVec; overload;
2function Erf(const Src: TMtxVec): TMtxVec; overload;Calculates the error function for all Src object values.
└ indexed: function Erf(const Src: TMtxVec; SrcIndex, Index, Len: integer): TMtxVec; overload;

Overload 1: function Erf: TMtxVec; overload;

Error functon of values.

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

Remarks:

Calculates the error function for all object values in-place.

Indexed: function Erf(Index,Len: integer): TMtxVec; overload;

Calculates the error function for calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1Indexintegerstart index
2Lenintegerelement count

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

Remarks:

An exception is raised if array borders are overrun or underrun.

Overload 2: function Erf(const Src: TMtxVec): TMtxVec; overload;

Calculates the error function for all Src object values.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx

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

Remarks:

Stores the result in calling object. Size and TMtxVec.Complex properties of calling object are adjusted automatically.

Indexed: function Erf(const Src: TMtxVec; SrcIndex, Index, Len: integer): TMtxVec; overload;

Calculates the error function for Src object elements [SrcIndex]..[SrcIndex+Len-1].

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2SrcIndexintegersource start index
3Indexintegerstart index
4Lenintegerelement count

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

Remarks:

Stores the result in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.