Overload List
| # | Signature | Description |
|---|---|---|
| 1 | clMatrix IntPower(TOpenCLMatrix Base, Int32 Exponent) | Result = the integer power function |
| 2 | clValue IntPower(TOpenCLValue Base, Int32 Exponent) | Result = the integer power function |
| 3 | clVector IntPower(TOpenCLVector Base, Int32 Exponent) | Result = the integer power function |
Overload 1: clMatrix IntPower(TOpenCLMatrix Base, Int32 Exponent)
Compute the integer power function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | TOpenCLMatrix | source TOpenCLMatrix |
| 2 | Exponent | Int32 |
Returns: clMatrix
Remarks:
Internally calls Dew.Math.clMatrix.IntPower
Overload 2: clValue IntPower(TOpenCLValue Base, Int32 Exponent)
Compute the integer power function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | TOpenCLValue | source TOpenCLValue |
| 2 | Exponent | Int32 |
Returns: clValue
Remarks:
Internally calls Dew.Math.clValue.IntPower
Examples
using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples
{
void Example()
{
TOpenCLValue a,b;
clMtxVec.CreateIt(out a, out b);
try
{
b.Copy(8);
a.IntPower(b,2);
}
finally
{
clMtxVec.FreeIt(ref a, ref b);
}
}
}
Overload 3: clVector IntPower(TOpenCLVector Base, Int32 Exponent)
Compute the integer power function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | TOpenCLVector | source TOpenCLVector |
| 2 | Exponent | Int32 |
Returns: clVector
Remarks:
Internally calls Dew.Math.clVector.IntPower