Matrix::Mag Method

Overload List

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

Overload 1: TMtxVec *Mag() const;

Magnitude.

Remarks:

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

See Also: Matrix::Abs, Matrix::PhaseSpectrum
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

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

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

#NameTypeDescription
1Indexint
2Lenint
Remarks:

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

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

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

Calculate the magnitude for all X elements and store the results in the calling object elements.

#NameTypeDescription
1XTMtxVec *
Remarks:

Size and and Matrix::Complex properties of the calling Matrix are set implicitly to match Vec Matrix.

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

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

Calculate the magnitude for X elements [XIndex]..[XIndex+Len-1] and store the results in the calling object elements [Index]..[Index+Len-1].

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

Size and Matrix::Complex properties of the calling object must be set explicitly. An exception is raised if Matrix::ConditionCheck is True and array borders are overrun.

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler