Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLBase *PowerVec(TOpenCLBase *Base, TOpenCLBase *Exponent); | |
| 2 | TOpenCLMtxVec *PowerVec(TOpenCLMtxVec *Base, TOpenCLMtxVec *Exponent); | Raises Base object elements to Exponent object elements power. |
Overload 1: TOpenCLBase *PowerVec(TOpenCLBase *Base, TOpenCLBase *Exponent);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | TOpenCLBase * | |
| 2 | Exponent | TOpenCLBase * |
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | TOpenCLMtxVec * | |
| 2 | Exponent | TOpenCLMtxVec * |
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