scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef
cho_solve_banded(cb_and_lower, b, overwrite_b=False, check_finite=True)

Notes

versionadded

Parameters

(cb, lower) : tuple, (ndarray, bool)

:None:None:`cb` is the Cholesky factorization of A, as given by cholesky_banded. :None:None:`lower` must be the same value that was given to cholesky_banded.

b : array_like

Right-hand side

overwrite_b : bool, optional

If True, the function will overwrite the values in b.

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 : array

The solution to the system A x = b

Solve the linear equations A x = b , given the Cholesky factorization of the banded Hermitian A .

See Also

cholesky_banded

Cholesky factorization of a banded matrix

Examples

>>> from scipy.linalg import cholesky_banded, cho_solve_banded
... Ab = np.array([[0, 0, 1j, 2, 3j], [0, -1, -2, 3, 4], [9, 8, 7, 6, 9]])
... A = np.diag(Ab[0,2:], k=2) + np.diag(Ab[1,1:], k=1)
... A = A + A.conj().T + np.diag(Ab[2, :])
... c = cholesky_banded(Ab)
... x = cho_solve_banded((c, False), np.ones(5))
... np.allclose(A @ x - np.ones(5), np.zeros(5)) True
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.linalg._decomp_cholesky.cholesky_banded scipy.linalg._decomp_cholesky.cho_solve_banded

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/linalg/_decomp_cholesky.py#288
type: <class 'function'>
Commit: