Commit 0f7e847e authored by Philipp Arras's avatar Philipp Arras
Browse files


parent 3f47aec4
Pipeline #88481 passed with stages
in 11 minutes and 21 seconds
......@@ -167,7 +167,7 @@ class DiagonalOperator(EndomorphicOperator):
return self.process_sample(res, from_inverse)
def get_sqrt(self):
if not np.iscomplexobj(self._ldiag) or (self._ldiag < 0).any():
if np.iscomplexobj(self._ldiag) or (self._ldiag < 0).any():
raise ValueError("get_sqrt() works only for positive definite operators.")
return self._from_ldiag((), np.sqrt(self._ldiag))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment