TVec::Mag Method

Overload List

#SignatureDescription
1TMtxVec *Mag();Magnitude.
2TMtxVec *Mag(int Index, int Len);Calculate the magnitude for calling object elements [Index]..[Index+Len-1] in-place.
3TMtxVec *Mag(TMtxVec *X);Calculate the magnitude for all X elements.
4TMtxVec *Mag(TMtxVec *X, int XIndex, int Index, int Len);Calculate the magnitude for X elements [XIndex]..[XIndex+Len-1].

Overload 1: TMtxVec *Mag();

Magnitude.

Remarks:

Calculate the magnitude for all calling object elements in-place. This method has the same function as the TVec::Abs method.

See Also: TVec::Abs, TVec::PhaseSpectrum
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *Mag(int Index, int Len);

Calculate the magnitude for calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1Indexint
2Lenint
Remarks:

An exception is raised if TVec::ConditionCheck is True and array borders are overrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 3: TMtxVec *Mag(TMtxVec *X);

Calculate the magnitude for all X elements.

#NameTypeDescription
1XTMtxVec *
Remarks:

Store the results in the calling object elements. Size and TVec::Complex properties of the calling vector are set implicitly to match Vec vector.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 4: TMtxVec *Mag(TMtxVec *X, int XIndex, int Index, int Len);

Calculate the magnitude for X elements [XIndex]..[XIndex+Len-1].

#NameTypeDescription
1XTMtxVec *
2XIndexint
3Indexint
4Lenint
Remarks:

Store the results in the calling object elements [Index]..[Index+Len-1]. Size and TVec::Complex properties of the calling object must be set explicitly. An exception is raised if TVec::ConditionCheck is True and array borders are overrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler