Compute the Cholesky decomposition of a matrix, to use in cho_solve
Returns a matrix containing the Cholesky decomposition, A = L L* or A = U* U of a Hermitian positive-definite matrix a. The return value can be directly used as the first parameter to cho_solve.
Warning
The returned matrix also contains random data in the entries not used by the Cholesky decomposition. If you need to zero these entries, use the function cholesky instead.
Parameters: | a : array, shape (M, M)
lower : boolean
overwrite_a : boolean
|
---|---|
Returns: | c : array, shape (M, M)
lower : boolean
|
Raises: | LinAlgError :
|