clMatrix::Expj Method

Overload List

#SignatureDescription
1TOpenCLMtxVec *Expj() const;A complex exponential e^(j*Omega)).
2TOpenCLMtxVec *Expj(TOpenCLMtxVec *Omega) const;Calculate the e^(j*Omega), a complex exponential.
3TOpenCLMtxVec *Expj(TOpenCLMtxVec *Omega, int OmegaIndex, int Index, int Len) const;Calculate the complex exponential for Omega elements [OmegaIndex]..[OmegaIndex+Len-1].

Overload 1: TOpenCLMtxVec *Expj() const;

A complex exponential e^(j*Omega)).

Remarks:

Calculate the calling object complex exponential in-place. An exception is raised if calling object is complex. If object is complex, you should use the clMatrix::Exp method instead.

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clMatrix a;

    a.CopyFromArray(2, 2, DewArray<float>{1, 2, 3, 4});
    a.Expj(); // a = [e^i, e^2i, e^3i, e^4i]
}
See Also: clMatrix::Exp
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: TOpenCLMtxVec *Expj(TOpenCLMtxVec *Omega) const;

Calculate the e^(j*Omega), a complex exponential.

#NameTypeDescription
1OmegaTOpenCLMtxVec *
Remarks:

Omega must be a real object. If omega is complex, then use the clMatrix::Exp method.

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

Overload 3: TOpenCLMtxVec *Expj(TOpenCLMtxVec *Omega, int OmegaIndex, int Index, int Len) const;

Calculate the complex exponential for Omega elements [OmegaIndex]..[OmegaIndex+Len-1].

#NameTypeDescription
1OmegaTOpenCLMtxVec *
2OmegaIndexint
3Indexint
4Lenint
Remarks:

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

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