ClMtxExpr.IntPower Method

Overload List

#SignatureDescription
1clMatrix IntPower(TOpenCLMatrix Base, Int32 Exponent)Result = the integer power function
2clValue IntPower(TOpenCLValue Base, Int32 Exponent)Result = the integer power function
3clVector IntPower(TOpenCLVector Base, Int32 Exponent)Result = the integer power function

Overload 1: clMatrix IntPower(TOpenCLMatrix Base, Int32 Exponent)

Compute the integer power function.

#NameTypeDescription
1BaseTOpenCLMatrixsource TOpenCLMatrix
2ExponentInt32

Returns: clMatrix

Remarks:

Internally calls Dew.Math.clMatrix.IntPower

Overload 2: clValue IntPower(TOpenCLValue Base, Int32 Exponent)

Compute the integer power function.

#NameTypeDescription
1BaseTOpenCLValuesource TOpenCLValue
2ExponentInt32

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.

#NameTypeDescription
1BaseTOpenCLVectorsource TOpenCLVector
2ExponentInt32

Returns: clVector

Remarks:

Internally calls Dew.Math.clVector.IntPower