cupy.linalg.matrix_power#
- cupy.linalg.matrix_power(M, n)[source]#
Raise a square matrix to the (integer) power n.
- Parameters:
M (ndarray) – Matrix to raise by power n.
n (~int) – Power to raise matrix to.
- Returns:
Output array.
- Return type:
..seealso::
numpy.linalg.matrix_power()