jax.scipy.linalg.solve
Warning
This page was created from a pull request (#9655).
jax.scipy.linalg.solveΒΆ
- jax.scipy.linalg.solve(a, b, sym_pos=False, lower=False, overwrite_a=False, overwrite_b=False, debug=False, check_finite=True)[source]ΒΆ
Solves the linear equation set
a * x = b
for the unknownx
LAX-backend implementation of
solve()
.Original docstring below.
for square
a
matrix.If the data matrix is known to be a particular type then supplying the corresponding string to
assume_a
key chooses the dedicated solver. The available options aregeneric matrix
βgenβ
symmetric
βsymβ
hermitian
βherβ
positive definite
βposβ
If omitted,
'gen'
is the default structure.The datatype of the arrays define which solver is called regardless of the values. In other words, even when the complex array entries have precisely zero imaginary parts, the complex solver will be called based on the data type of the array.
- Parameters
a ((N, N) array_like) β Square input data
b ((N, NRHS) array_like) β Input data for the right hand side.
sym_pos (bool, optional) β Assume a is symmetric and positive definite. This key is deprecated and assume_a = βposβ keyword is recommended instead. The functionality is the same. It will be removed in the future.
lower (bool, optional) β If True, only the data contained in the lower triangle of a. Default is to use upper triangle. (ignored for
'gen'
)overwrite_a (bool, optional) β Allow overwriting data in a (may enhance performance). Default is False.
overwrite_b (bool, optional) β Allow overwriting data in b (may enhance performance). Default is False.
check_finite (bool, optional) β Whether to check that the input matrices contain only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs.
- Returns
x β The solution array.
- Return type
(N, NRHS) ndarray