mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
fix: Exception added for cholesky decomposition of complex matrices.
This commit is contained in:
parent
be0990d112
commit
d3e72ef7d4
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ def inv(x):
|
|||
|
||||
|
||||
def cholesky(x):
|
||||
"""Cholesky decomposition of Obs or CObs valued matrices."""
|
||||
"""Cholesky decomposition of Obs valued matrices."""
|
||||
if any(isinstance(o, CObs) for o in x.ravel()):
|
||||
raise Exception("Cholesky decomposition is not implemented for CObs.")
|
||||
return _mat_mat_op(anp.linalg.cholesky, x)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue