Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
93ec82bb
Commit
93ec82bb
authored
May 11, 2017
by
Pumpe, Daniel (dpumpe)
Browse files
update
parent
7e0aef31
Pipeline
#12303
failed with stage
in 5 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/diagonal_operator/diagonal_operator.py
View file @
93ec82bb
...
...
@@ -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
):
...
...
test/test_operators/test_diagonal_operator.py
View file @
93ec82bb
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment