^
Matrix power operator.
Syntax
R = x^y
Inputs
- x,y
- At most, one of the arguments can be a matrix.
Outputs
- R
- The power operation result.
Examples
Matrix to a scalar
power:
R = [3, 2; 2, 3] ^ 4
R = [Matrix] 2 x 2
313 312
312 313
Scalar to a matrix
power:
R = 2 ^ [3, 2; 2, 3]
R = [Matrix] 2 x 2
17.00000 15.00000
15.00000 17.00000
Comments
A matrix to a scalar power is only valid for a square matrix.
A scalar to a matrix power is equlvalent to e^(log(scalar)*matrix).