Commit ba4daa84 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

remove unused attribute

parent 78a6d9e8
Pipeline #18579 passed with stage
in 4 minutes and 9 seconds
......@@ -107,17 +107,6 @@ class DiagonalOperator(EndomorphicOperator):
"""
return self._diagonal.copy() if copy else self._diagonal
def inverse_diagonal(self):
""" Returns the inverse-diagonal of the operator.
Returns
-------
out : Field
The inverse of the diagonal of the Operator.
"""
return 1./self._diagonal
# ---Mandatory properties and methods---
@property
......
......@@ -84,10 +84,3 @@ class DiagonalOperator_Tests(unittest.TestCase):
D = DiagonalOperator(diag, copy=copy)
diag_op = D.diagonal()
assert_allclose(diag.val, diag_op.val)
@expand(product(spaces, [True, False]))
def test_inverse(self, space, copy):
diag = Field.from_random('normal', domain=space)
D = DiagonalOperator(diag, copy=copy)
diag_op = D.inverse_diagonal()
assert_allclose(1./diag.val, diag_op.val)
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