cupy.linalg.inv#
- cupy.linalg.inv(a)[source]#
Computes the inverse of a matrix.
This function computes matrix
a_inv
from n-dimensional regular matrixa
such thatdot(a, a_inv) == eye(n)
.- Parameters:
a (cupy.ndarray) – The regular matrix
- Returns:
The inverse of a matrix.
- Return type:
Warning
This function calls one or more cuSOLVER routine(s) which may yield invalid results if input conditions are not met. To detect these invalid results, you can set the linalg configuration to a value that is not ignore in
cupyx.errstate()
orcupyx.seterr()
.See also