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
77152507
Commit
77152507
authored
Mar 01, 2021
by
Jakob Knollmüller
Browse files
more indices
parent
56fc35c0
Pipeline
#94616
failed with stages
in 5 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/library/variational_models.py
View file @
77152507
...
...
@@ -114,7 +114,7 @@ class DiagonalSelector(LinearOperator):
def
apply
(
self
,
x
,
mode
):
self
.
_check_mode
(
mode
)
if
mode
==
self
.
TIMES
:
result
=
np
.
diag
(
x
.
val
[
0
]
)
result
=
np
.
diag
(
x
.
val
)
return
makeField
(
self
.
_target
,
result
)
return
makeField
(
self
.
_domain
,
np
.
diag
(
x
.
val
).
reshape
(
self
.
_domain
.
shape
))
...
...
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