numpy.linalg.solve()

numpy.linalg.solve

numpy.linalg.solve(a, b) [source]

Solve a linear matrix equation, or system of linear scalar equations.

Computes the “exact” solution, x, of the well-determined, i.e., full rank, linear matrix equation ax = b.

登录查看完整内容
Parameters:

a : (..., M, M) array_like

Coefficient matrix.

b : {(..., M,), (..., M, K)}, array_like

Ordinate or “dependent variable” values.