Back to Numerical Arrays (NumPy)
np.matrix_power
Raise a square matrix to the (integer) power n.
Syntax
np.matrix_power(a, n)
Description
Raise a square matrix to the (integer) power n.
Parameters
| Name | Description |
|---|---|
| a | - Square matrix |
| n | - Exponent (can be negative for inverse) |
Returns
Promise<NDArray>