You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > Power Method > TOpenCLMtxVec.Power Method (double)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.Power Method (double)

Raises base object elements to any power.

Pascal
function Power(const Exponent: double): TOpenCLMtxVec; overload;

Raises Base calling object elements to any power. The IntPower is faster, if Exponent is an integer. Real valued power can handle only positive Exponent. IntPower can handle negative exponent also. To compute a power to the negative exponent in general case or when the base is negative, use the complex version of the function.

var a: TOpenCLVector; begin CreateIt(a); try a.CopyFromArray(TSingleArray.Create(1,2,3,4)); a.Power(1.2); finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!