A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://data-apis.org/array-api/latest/extensions/generated/array_api.linalg.matrix_power.html below:

matrix_power — Python array API standard 2024.12 documentation

matrix_power
matrix_power(x: array, n: int, /) array

Raises a square matrix (or a stack of square matrices) x to an integer power n.

Parameters:
  • x (array) – input array having shape (..., M, M) and whose innermost two dimensions form square matrices. Should have a floating-point data type.

  • n (int) – integer exponent.

Returns:

out (array) – if n is equal to zero, an array containing the identity matrix for each square matrix. If n is less than zero, an array containing the inverse of each square matrix raised to the absolute value of n, provided that each square matrix is invertible. If n is greater than zero, an array containing the result of raising each square matrix to the power n. The returned array must have the same shape as x and a floating-point data type determined by Type Promotion Rules.

Notes

Changed in version 2022.12: Added complex data type support.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4