Package lib :: Package linear_algebra :: Module matrix_power
[hide private]
[frames] | no frames]

Module matrix_power

source code

Module for matrix power operations.

Functions [hide private]
numpy rank-2 array
square_matrix_power(x, y)
Compute x raised to the power y when x is a square matrix and y is a scalar.
source code
Variables [hide private]
  __package__ = 'lib.linear_algebra'

Imports: diag, dot, eye, eig, inv, RelaxError


Function Details [hide private]

square_matrix_power(x, y)

source code 

Compute x raised to the power y when x is a square matrix and y is a scalar.

Parameters:
  • x (numpy rank-2 array) - The square matrix.
  • y (float) - The power.
Returns: numpy rank-2 array
The matrix power of x.