TOpenCLMatrix::PowerVec Method

Overload List

#SignatureDescription
1TOpenCLBase *PowerVec(TOpenCLBase *Base, TOpenCLBase *Exponent);
2TOpenCLMtxVec *PowerVec(TOpenCLMtxVec *Base, TOpenCLMtxVec *Exponent);Raises Base object elements to Exponent object elements power.

Overload 1: TOpenCLBase *PowerVec(TOpenCLBase *Base, TOpenCLBase *Exponent);

#NameTypeDescription
1BaseTOpenCLBase *
2ExponentTOpenCLBase *
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLMtxVec *PowerVec(TOpenCLMtxVec *Base, TOpenCLMtxVec *Exponent);

Raises Base object elements to Exponent object elements power.

#NameTypeDescription
1BaseTOpenCLMtxVec *
2ExponentTOpenCLMtxVec *
Remarks:

Raises Base elements to Exponent elements power. Only positive exponents can be handled if exponent object TOpenCLBase::Complex property is True.

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

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

void Example()
{
    TOpenCLVector *a, *b, *c;
    CreateIt(a, b, c);
    a->CopyCplxFromArray( DewArray<double>{1,2,3,4});
    b->CopyCplxFromArray( DewArray<double>{3,2,2,2});
    c->PowerVec(a,b);
    FreeIt(a, b, c);
}
See Also: TOpenCLMatrix::Power
Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler