TOpenCLVector::ArcCot Method

Overload List

#SignatureDescription
1TOpenCLBase *ArcCot(TOpenCLBase *X, int XIndex, int Index, int Len);
2TOpenCLMtxVec *ArcCot();Inverse cotangens.
3TOpenCLMtxVec *ArcCot(int Index, int Len);Calculate the inverse cotangens of calling object elements [Index]...[Index+Len-1] in-place.
4TOpenCLMtxVec *ArcCot(TOpenCLMtxVec *X);Calculate the inverse cotangens of all X object elements.
5TOpenCLMtxVec *ArcCot(TOpenCLMtxVec *X, int XIndex, int Index, int Len);Calculate the inverse cotangens of X object elements [XIndex]...[XIndex+Len-1].

Overload 1: TOpenCLBase *ArcCot(TOpenCLBase *X, int XIndex, int Index, int Len);

#NameTypeDescription
1XTOpenCLBase *
2XIndexint
3Indexint
4Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLMtxVec *ArcCot();

Inverse cotangens.

Remarks:

Calculate the inverse cotangens for all calling object elements in-place. The return values are expressed in radians.

Examples
#include "clMtxVec.h"
#include "Units.clMtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::ClMtxVec;

void Example()
{
    TOpenCLMatrix *A, *B;
    CreateIt(A, B);
    A->CopyCplxFromArray(2,2, DewArray<double>
        {1,0, 2,0,
            2,0, 4,1});  // 2x2, complex matrix
    B->ArcCot(A);
    FreeIt(A, B);
}
See Also: TOpenCLVector::Cot, TOpenCLVector::ArcTan
Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

Overload 3: TOpenCLMtxVec *ArcCot(int Index, int Len);

Calculate the inverse cotangens of 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::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

Overload 4: TOpenCLMtxVec *ArcCot(TOpenCLMtxVec *X);

Calculate the inverse cotangens of all X object elements.

#NameTypeDescription
1XTOpenCLMtxVec *
Remarks:

Store the results in the calling object. Size and TOpenCLBase::Complex properties of calling object are adjusted automatically.

Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

Overload 5: TOpenCLMtxVec *ArcCot(TOpenCLMtxVec *X, int XIndex, int Index, int Len);

Calculate the inverse cotangens of X object elements [XIndex]...[XIndex+Len-1].

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

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

Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler