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
ebe81678
Commit
ebe81678
authored
Feb 20, 2018
by
Martin Reinecke
Browse files
fix
parent
e953a066
Pipeline
#25201
passed with stages
in 6 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/operators/diagonal_operator.py
View file @
ebe81678
...
...
@@ -140,5 +140,5 @@ class DiagonalOperator(EndomorphicOperator):
res
=
Field
.
from_random
(
random_type
=
"normal"
,
domain
=
self
.
_domain
,
dtype
=
self
.
_diagonal
.
dtype
)
res
.
val
[()]
*=
np
.
sqrt
(
self
.
_ldiag
)
res
.
local_data
[()]
*=
np
.
sqrt
(
self
.
_ldiag
)
return
res
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