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
Martin Reinecke
ducc
Commits
73edbd97
Commit
73edbd97
authored
Jun 11, 2020
by
Martin Reinecke
Browse files
add accumulate() function for completeness
parent
9d53de33
Pipeline
#76444
passed with stages
in 12 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ducc0/infra/simd.h
View file @
73edbd97
...
...
@@ -195,6 +195,8 @@ template<typename Op, typename T, size_t len> T reduce(const vtp<T, len> &v, Op
res
=
op
(
res
,
v
[
i
]);
return
res
;
}
template
<
typename
Op
,
typename
T
,
size_t
len
>
T
accumulate
(
const
vtp
<
T
,
len
>
&
v
,
Op
op
)
{
return
reduce
(
v
,
op
);
}
template
<
typename
T
>
class
pseudoscalar
{
private:
...
...
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