clVector::Mag Method

Overload List

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

Overload 1: TOpenCLMtxVec *Mag() const;

Magnitude.

Remarks:

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

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

Overload 2: TOpenCLMtxVec *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 array borders are overrun.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

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

Calculate the magnitude for all X elements.

#NameTypeDescription
1XTOpenCLMtxVec *
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

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

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

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

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler