scipy.linalg.lapack.chesv#
- scipy.linalg.lapack.chesv(a, b, lwork=max(n, 1), lower=0, overwrite_a=0, overwrite_b=0) = <flapack function chesv>#
Solve
a @ x = bfor a Hermitian indefiniteaby Bunch-Kaufman factorization (LAPACKchesv).- Parameters:
- andarray
Hermitian matrix of shape
(n, n).- bndarray
Right-hand side(s) of shape
(n, nrhs).- lworkint, optional
Size of the workspace. Default is
max(n, 1). Usechesv_lworkfor the optimal value.- lowerint, optional
If nonzero, the lower triangle of a is referenced; otherwise the upper. Default is 0.
- overwrite_aint, optional
If nonzero, a may be overwritten in place. Default is 0.
- overwrite_bint, optional
If nonzero, b may be overwritten in place. Default is 0.
- Returns:
- uduhndarray
The block diagonal
Dand the multipliers, packed into the triangle.- ipivndarray
Pivot indices describing the interchanges and the 1x1 / 2x2 block structure, 1-based. Pass them on to
sytrs/sytri/syconunchanged.- xndarray
Solution of the system.
- infoint
0 on success; if negative, the
-info-th argument had an illegal value; if positive,d[info-1, info-1]is exactly zero and the solve failed.