Solve a linear system of equations.
This solves a (batched) linear system of equations a @ x = b for x given a and b. If a is singular, this will return nan or inf values.
a @ x = b
x
a
b
nan
inf
Coefficient matrix of shape (..., N, N).
(..., N, N)
Values of shape (N,) or (..., N, M).
(N,)
(..., N, M)
Solution x of shape (..., N) or (..., N, M).
(..., N)
Solve a linear system of equations.
This solves a (batched) linear system of equations
a @ x = bforxgivenaandb. Ifais singular, this will returnnanorinfvalues.