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_gridder
Commits
17990efd
Commit
17990efd
authored
Aug 20, 2019
by
Martin Reinecke
Browse files
zero-fill the grid
parent
b36440b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty_gridder.cc
View file @
17990efd
...
...
@@ -1267,6 +1267,8 @@ template<typename T> pyarr_c<complex<T>> apply_holo(
auto
ogrid
=
res
.
mutable_data
();
{
py
::
gil_scoped_release
release
;
for
(
size_t
i
=
0
;
i
<
nu
*
nv
;
++
i
)
ogrid
[
i
]
=
T
(
0
);
T
beta
=
gconf
.
Beta
();
size_t
w
=
gconf
.
W
();
...
...
@@ -1307,7 +1309,7 @@ template<typename T> pyarr_c<complex<T>> apply_holo(
complex
<
T
>
tmp
(
r
*
ku
[
cu
]);
for
(
size_t
cv
=
0
;
cv
<
w
;
++
cv
)
wptr
[
cv
]
+=
tmp
*
kv
[
cv
];
wptr
+=
jump
;
wptr
+=
jump
;
}
}
}
...
...
Write
Preview
Supports
Markdown
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