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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
Neel Shah
NIFTy
Commits
9a2cc287
Commit
9a2cc287
authored
Oct 16, 2019
by
Philipp Arras
Browse files
Support complex input as well
parent
83d9e58f
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operator_spectrum.py
View file @
9a2cc287
...
...
@@ -57,7 +57,7 @@ class _DomRemover(LinearOperator):
res
=
x
.
ravel
()
if
mode
==
self
.
TIMES
else
x
.
reshape
(
self
.
_domain
.
shape
)
else
:
res
=
np
.
empty
(
self
.
target
.
shape
)
if
mode
==
self
.
TIMES
else
{}
res
=
np
.
empty
(
self
.
target
.
shape
,
dtype
=
x
.
dtype
)
if
mode
==
self
.
TIMES
else
{}
for
ii
,
(
kk
,
dd
)
in
enumerate
(
self
.
domain
.
items
()):
i0
,
i1
=
self
.
_size_array
[
ii
:
ii
+
2
]
if
mode
==
self
.
TIMES
:
...
...
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