scipy.linalg.solve_triangular

scipy.linalg.solve_triangular(a, b, trans=0, lower=False, unit_diagonal=False, overwrite_b=False, debug=False)

Solve the equation a x = b for x, assuming a is a triangular matrix.

Parameters :

a : array, shape (M, M)

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

lower : boolean

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

trans : {0, 1, 2, ‘N’, ‘T’, ‘C’}

Type of system to solve:

trans

system

0 or ‘N’

a x = b

1 or ‘T’

a^T x = b

2 or ‘C’

a^H x = b

unit_diagonal : boolean

If True, diagonal elements of A are assumed to be 1 and will not be referenced.

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.solveh_banded

Next topic

scipy.linalg.det

This Page