Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
a0834903
Commit
a0834903
authored
Jan 06, 2016
by
Jan Möbius
Browse files
Merge branch 'const-iterator-fixes' into 'master'
fix some uses of const begin and end iterators See merge request
!43
parents
011fdc97
f4046e4d
Pipeline
#682
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Geometry/Vector11T.hh
View file @
a0834903
...
...
@@ -473,7 +473,7 @@ class VectorT {
/// compute L1 (Manhattan) norm
Scalar
l1_norm
()
const
{
return
std
::
accumulate
(
values_
.
cbegin
()
+
1
,
values_
.
end
(),
values_
[
0
]);
values_
.
cbegin
()
+
1
,
values_
.
c
end
(),
values_
[
0
]);
}
/// compute l8_norm
...
...
@@ -523,7 +523,7 @@ class VectorT {
/// return absolute arithmetic mean
Scalar
mean_abs
()
const
{
return
std
::
accumulate
(
values_
.
cbegin
()
+
1
,
values_
.
end
(),
return
std
::
accumulate
(
values_
.
cbegin
()
+
1
,
values_
.
c
end
(),
std
::
abs
(
values_
[
0
]),
[](
const
Scalar
&
l
,
const
Scalar
&
r
)
{
return
l
+
std
::
abs
(
r
);
...
...
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