MCPcopy Create free account
hub / github.com/dask/dask / inv

Function inv

dask/array/linalg.py:1267–1282  ·  view source on GitHub ↗

Compute the inverse of a matrix with LU decomposition and forward / backward substitutions. Parameters ---------- a : array_like Square matrix to be inverted. Returns ------- ainv : Array Inverse of the matrix `a`.

(a)

Source from the content-addressed store, hash-verified

1265
1266
1267def inv(a):
1268 """
1269 Compute the inverse of a matrix with LU decomposition and
1270 forward / backward substitutions.
1271
1272 Parameters
1273 ----------
1274 a : array_like
1275 Square matrix to be inverted.
1276
1277 Returns
1278 -------
1279 ainv : Array
1280 Inverse of the matrix `a`.
1281 """
1282 return solve(a, eye(a.shape[0], chunks=a.chunks[0][0]))
1283
1284
1285def _cholesky_lower(a):

Callers

nothing calls this directly

Calls 2

eyeFunction · 0.90
solveFunction · 0.85

Tested by

no test coverage detected