You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.IntPower Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.IntPower Method

Power (integer exponent).

Syntax
C#
Visual Basic
public TOpenCLValue IntPower(TOpenCLValue Base, int Exponent);

Calculate the power Base^(Exponent). For non-integer exponents, the Power method can be used.

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); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!