You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > Matrix.PowerMtx Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.PowerMtx Method

Raises matrix elements to any power.

Syntax
C#
Visual Basic
public TMtx PowerMtx(TMtx Base, TMtx Exponent);

Raises Base matrix elements to the Exponent matrix elements power and stores the results in the calling matrix. The Rows, Cols and Complex properties of the calling matrix are adjusted automatically. The Rows, Cols and Complex properties of Base and Exponent matrices must match otherwise an exception is raised. 

Note Only positive exponents can be handled if Exponent matrix is not complex.

var A,B,C: Matrix; begin A.SetIt(2,2,False,[1,2, 2,4]); B.SetIt(2,2,False,[1,2, 2,4]); C.Power(A,B); // or C := Power(A,B); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!