Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLMtxVec IntPower(TOpenCLMtxVec aBase, Int32 Exponent) | Calculate the power Base^(Exponent) for all Base object elements. |
| 2 | TOpenCLMtxVec IntPower(Int32 Exponent) | Power (integer exponent). |
Overload 1: TOpenCLMtxVec IntPower(TOpenCLMtxVec aBase, Int32 Exponent)
Calculate the power Base^(Exponent) for all Base object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aBase | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Exponent | Int32 |
Result: stored in self (calling object), returns self for chaining
Remarks:
Calclation uses the integer Exponent value and stores the results in calling object. Size and Dew.Math.TOpenCLBase.Complex properties of calling object are adjusted automatically.
Overload 2: TOpenCLMtxVec IntPower(Int32 Exponent)
Power (integer exponent).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Exponent | Int32 |
Result: stored in self (calling object), returns self for chaining
Remarks:
Calculate the power ^(Exponent) for all caling object elements using the integer parameter Exponent. For non integer exponents, the Dew.Math.TOpenCLMtxVec.Power and Dew.Math.TOpenCLMtxVec.PowerVec methods can be used.
Examples
clVector a;
a.CopyFromArray(TSingleArray.Create(1,2,3,4));
a.IntPower(3);