mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 20:13:41 +02: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):
|
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)
|
return _mat_mat_op(anp.linalg.cholesky, x)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue