Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
87834184
Commit
87834184
authored
Nov 06, 2019
by
Philipp Frank
Browse files
fix _TwoLogIntegrations adjoint
parent
147c85f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/correlated_fields.py
View file @
87834184
...
...
@@ -108,8 +108,8 @@ class _TwoLogIntegrations(LinearOperator):
x
[
2
:]
=
np
.
cumsum
(
x
[
2
:][::
-
1
])[::
-
1
]
res
[
0
]
+=
x
[
2
:]
x
[
2
:]
*=
self
.
_logvol
/
2.
res
[
1
:
-
1
]
+=
res
[
2
:]
x
[
1
]
+=
np
.
cumsum
(
res
[
2
:][::
-
1
])[::
-
1
]
x
[
1
:
-
1
]
+=
x
[
2
:]
res
[
1
]
+=
np
.
cumsum
(
x
[
2
:][::
-
1
])[::
-
1
]
return
from_global_data
(
self
.
_domain
,
res
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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