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
ift
NIFTy
Commits
d6cbfa26
Commit
d6cbfa26
authored
May 20, 2020
by
Philipp Arras
Browse files
Fixup
parent
edc99725
Pipeline
#75305
failed with stages
in 3 minutes and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/operators/outer_product_operator.py
View file @
d6cbfa26
...
...
@@ -11,7 +11,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright(C) 2013-20
19
Max-Planck-Society
# Copyright(C) 2013-20
20
Max-Planck-Society
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
...
...
@@ -35,7 +35,7 @@ class OuterProduct(LinearOperator):
self
.
_domain
=
DomainTuple
.
make
(
domain
)
self
.
_field
=
field
self
.
_target
=
DomainTuple
.
make
(
tuple
(
sub_d
for
sub_d
in
field
.
domain
.
_dom
+
domain
.
_dom
))
tuple
(
sub_d
for
sub_d
in
field
.
domain
.
_dom
+
self
.
_
domain
.
_dom
))
self
.
_capability
=
self
.
TIMES
|
self
.
ADJOINT_TIMES
def
apply
(
self
,
x
,
mode
):
...
...
test/test_operators/test_adjoint.py
View file @
d6cbfa26
...
...
@@ -224,12 +224,12 @@ def testRegridding(args):
ift
.
extra
.
consistency_check
(
op
)
@
pmp
(
'fdomain'
,
[(
ift
.
RGSpace
((
3
,
5
,
4
)),
ift
.
RGSpace
((
16
,),
distances
=
(
7.
,))),
ift
.
HPSpace
(
12
)])
@
pmp
(
'fdomain'
,
[(
ift
.
RGSpace
((
2
,
3
,
2
)),
ift
.
RGSpace
((
4
,),
distances
=
(
7.
,))),
ift
.
HPSpace
(
3
)])
@
pmp
(
'domain'
,
[(
ift
.
RGSpace
(
2
),
ift
.
GLSpace
(
10
)),
ift
.
RGSpace
((
10
,
12
),
distances
=
(
0.1
,
1.
))])
ift
.
RGSpace
((
4
,
3
),
distances
=
(
0.1
,
1.
))])
def
testOuter
(
fdomain
,
domain
):
f
=
ift
.
from_random
(
fdomain
,
'normal'
)
f
=
ift
.
from_random
(
ift
.
makeDomain
(
fdomain
)
,
'normal'
)
op
=
ift
.
OuterProduct
(
domain
,
f
)
ift
.
extra
.
consistency_check
(
op
)
...
...
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