Compute the inverse of a square matrix.
This function supports arrays with at least 2 dimensions. When the input
has more than two dimensions, the inverse is computed for each matrix
in the last two dimensions of a.
- 參數:
a (array) -- Input array.
stream (Stream, optional) -- Stream or device. Defaults to None
in which case the default stream of the default device is used.
- 回傳:
ainv such that dot(a, ainv) = dot(ainv, a) = eye(a.shape[0])
- 回傳型別:
array