Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
683f6c22
Commit
683f6c22
authored
Mar 24, 2020
by
David Fairbrother
Browse files
Apply Clang-formatting
parent
3fbdbd9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Framework/Algorithms/src/Minus.cpp
View file @
683f6c22
...
...
@@ -37,9 +37,8 @@ void Minus::performBinaryOperation(const HistogramData::Histogram &lhs,
// Only do E if non-zero, otherwise just copy
if
(
rhsE
!=
0
)
{
double
rhsE2
=
rhsE
*
rhsE
;
std
::
transform
(
lhs
.
e
().
begin
(),
lhs
.
e
().
end
(),
EOut
.
begin
(),
[
rhsE2
](
double
l
)
{
return
std
::
sqrt
(
l
*
l
+
rhsE2
);
});
std
::
transform
(
lhs
.
e
().
begin
(),
lhs
.
e
().
end
(),
EOut
.
begin
(),
[
rhsE2
](
double
l
)
{
return
std
::
sqrt
(
l
*
l
+
rhsE2
);
});
}
else
EOut
=
lhs
.
e
();
}
...
...
Framework/Algorithms/src/Plus.cpp
View file @
683f6c22
...
...
@@ -41,9 +41,8 @@ void Plus::performBinaryOperation(const HistogramData::Histogram &lhs,
if
(
rhsE
!=
0.
)
{
double
rhsE2
=
rhsE
*
rhsE
;
std
::
transform
(
lhs
.
e
().
begin
(),
lhs
.
e
().
end
(),
EOut
.
begin
(),
[
rhsE2
](
double
l
)
{
return
std
::
sqrt
(
l
*
l
+
rhsE2
);
});
std
::
transform
(
lhs
.
e
().
begin
(),
lhs
.
e
().
end
(),
EOut
.
begin
(),
[
rhsE2
](
double
l
)
{
return
std
::
sqrt
(
l
*
l
+
rhsE2
);
});
}
else
EOut
=
lhs
.
e
();
}
...
...
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