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
dfbc582a
Commit
dfbc582a
authored
Aug 16, 2018
by
Martin Reinecke
Browse files
Merge branch 'fix-sandwich-inverse-sampling' into 'NIFTy_4'
Fix Sandwich Operator Inverse sampling See merge request ift/NIFTy!274
parents
5f133b64
66089ee5
Pipeline
#36923
passed with stages
in 10 minutes and 38 seconds
Changes
1
Pipelines
38
Hide whitespace changes
Inline
Side-by-side
nifty4/operators/sandwich_operator.py
View file @
dfbc582a
...
...
@@ -76,7 +76,7 @@ class SandwichOperator(EndomorphicOperator):
def
draw_sample
(
self
,
from_inverse
=
False
,
dtype
=
np
.
float64
):
# Inverse samples from general sandwiches is not possible
if
from_inverse
:
if
self
.
_bun
.
capabilit
ies
&
self
.
_bun
.
INVERSE_TIMES
:
if
self
.
_bun
.
capabilit
y
&
self
.
_bun
.
INVERSE_TIMES
:
try
:
s
=
self
.
_cheese
.
draw_sample
(
from_inverse
,
dtype
)
return
self
.
_bun
.
inverse_times
(
s
)
...
...
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