matrix_power

matrix_power(x, n)[source]

Raises a square matrix to the n-th power.

Parameters:
  • x (int, float, numpy.ndarray, cas.MS, cas.SX or cas.DM) – Number or array of which the n-th power should be computed.

  • n (int or float) – Number defining the exponent.