Commit 93ec82bb authored by Pumpe, Daniel (dpumpe)'s avatar Pumpe, Daniel (dpumpe)
Browse files

update

parent 7e0aef31
Pipeline #12303 failed with stage
in 5 minutes and 6 seconds
......@@ -197,7 +197,6 @@ class DiagonalOperator(EndomorphicOperator):
See Also
--------
"""
return self.inverse_diagonal(bare=bare, copy=False).sum()
return self.inverse_diagonal(bare=bare).sum()
def trace_log(self):
......
......@@ -110,7 +110,7 @@ class DiagonalOperator_Tests(unittest.TestCase):
diag = Field.from_random('normal', domain=space)
D = DiagonalOperator(space, diagonal=diag, bare=bare, copy=copy)
trace_log = D.trace_log()
assert_allclose(trace_log, np.log(np.sum(diag)))
assert_allclose(trace_log, np.log(np.sum(diag.val.get_full_data())))
@expand(product(spaces, [True, False], [True, False]))
def test_determinant(self, space, bare, copy):
......
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