Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
46d78a0f
Unverified
Commit
46d78a0f
authored
Jun 30, 2023
by
Umang Yadav
Committed by
GitHub
Jun 30, 2023
Browse files
Remove reduce (#1907)
parent
ad618aa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/program.cpp
src/program.cpp
+1
-1
No files found.
src/program.cpp
View file @
46d78a0f
...
@@ -366,7 +366,7 @@ void print_statistics(std::ostream& os, const argument& a)
...
@@ -366,7 +366,7 @@ void print_statistics(std::ostream& os, const argument& a)
os
<<
"Min value: "
<<
*
std
::
min_element
(
t
.
begin
(),
t
.
end
())
<<
", "
;
os
<<
"Min value: "
<<
*
std
::
min_element
(
t
.
begin
(),
t
.
end
())
<<
", "
;
os
<<
"Max value: "
<<
*
std
::
max_element
(
t
.
begin
(),
t
.
end
())
<<
", "
;
os
<<
"Max value: "
<<
*
std
::
max_element
(
t
.
begin
(),
t
.
end
())
<<
", "
;
double
num_elements
=
t
.
size
();
double
num_elements
=
t
.
size
();
auto
mean
=
std
::
reduc
e
(
t
.
begin
(),
t
.
end
(),
0.0
)
/
num_elements
;
auto
mean
=
std
::
accumulat
e
(
t
.
begin
(),
t
.
end
(),
0.0
)
/
num_elements
;
auto
stddev
=
std
::
sqrt
(
auto
stddev
=
std
::
sqrt
(
std
::
accumulate
(
t
.
begin
(),
std
::
accumulate
(
t
.
begin
(),
t
.
end
(),
t
.
end
(),
...
...
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