Commit f35fdf5a authored by Philipp Arras's avatar Philipp Arras
Browse files

Proper call in DiagonalOperator

parent 2ad2d650
Pipeline #88284 canceled with stages
in 9 minutes and 34 seconds
......@@ -169,7 +169,7 @@ class DiagonalOperator(EndomorphicOperator):
def get_sqrt(self):
if not np.iscomplexobj(self._ldiag) or (self._ldiag < 0).any():
raise NotImplementedError
return self._from_ldiag(None, np.sqrt(self._ldiag))
return self._from_ldiag((), np.sqrt(self._ldiag))
def __repr__(self):
return "DiagonalOperator"
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