You are here: Symbol Reference > clMtxExpr Namespace > Classes > clMatrix Record > public > clMatrix.PowerVec Method
MtxVec VCL
ContentsIndex
PreviousUpNext
clMatrix.PowerVec Method

Raises Base object elements to Exponent object elements power.

Pascal
function PowerVec(const Base: TOpenCLMtxVec; const Exponent: TOpenCLMtxVec): TOpenCLMtxVec;

Raises Base elements to Exponent elements power. Only positive exponents can be handled if exponent object Complex property is True.

var a,b,c: clMatrix; begin a.CopyFromArray(2,2,TSingleArray.Create(1,2,3,4)); b.CopyFromArray(2,2,TSingleArray.Create(3,3,2,2)); c.PowerVec(a,b); // c = [1,8,9,16] end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!