scipy.linalg.solve

scipy.linalg.solve(a, b, sym_pos=0, lower=0, overwrite_a=0, overwrite_b=0, debug=0)

Solve the equation a x = b for x

Parameters:

a : array, shape (M, M)

b : array, shape (M,) or (M, N)

sym_pos : boolean

Assume a is symmetric and positive definite

lower : boolean

Use only data contained in the lower triangle of a, if sym_pos is true. Default is to use upper triangle.

overwrite_a : boolean

Allow overwriting data in a (may enhance performance)

overwrite_b : boolean

Allow overwriting data in b (may enhance performance)

Returns:

x : array, shape (M,) or (M, N) depending on b

Solution to the system a x = b

Raises LinAlgError if a is singular :

Previous topic

scipy.linalg.inv

Next topic

scipy.linalg.solve_banded

This Page

Quick search