Vector::Conj Method

Overload List

#SignatureDescription
1TMtxVec *Conj() const;Conjugate.
2TMtxVec *Conj(int Index, int Len) const;Conjugate calling object elements [Index]..[Index+Len-1] in-place.
3TMtxVec *Conj(TMtxVec *Vec) const;Conjugate each of Vec elements and store the results in the calling object.
4TMtxVec *Conj(TMtxVec *Vec, int VecIndex, int Index, int Len) const;Conjugate Vec elements Vec[VecIndex]..Vec[VecIndex+Len-1].

Overload 1: TMtxVec *Conj() const;

Conjugate.

Remarks:

Conjugate all calling object elements in-place.

Examples
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Vector c;

    c.SetIt(true, DewArray<double>{1, 2, 3, 4}); // c = [1+2i, 3+4i]
    c.Conj(); // c = [1-2i, 3-4i]
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

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

Conjugate calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1Indexint
2Lenint
Remarks:

An exception is raised if Vector::ConditionCheck is true and array borders are overrun.

Examples
#include "MtxExpr.h"
#include "Units.Math387.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;

void Example()
{
    Vector c;

    c = {Cplx(1, 2), Cplx(3, 4)}; // c = [1+2i, 3+4i]
    c.Conj(); // c = [1-2i, 3-4i]
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TMtxVec *Conj(TMtxVec *Vec) const;

Conjugate each of Vec elements and store the results in the calling object.

#NameTypeDescription
1VecTMtxVec *
Remarks:

The Size and Vector::Complex properties of the calling object are set implicitly to match Vec vector.

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

Overload 4: TMtxVec *Conj(TMtxVec *Vec, int VecIndex, int Index, int Len) const;

Conjugate Vec elements Vec[VecIndex]..Vec[VecIndex+Len-1].

#NameTypeDescription
1VecTMtxVec *
2VecIndexint
3Indexint
4Lenint
Remarks:

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

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