Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
c5f0bd9d
Unverified
Commit
c5f0bd9d
authored
Oct 08, 2018
by
Robert Kimball
Committed by
GitHub
Oct 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize operator== (#1765)
parent
40ff77bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
coordinate_transform.cpp
src/ngraph/coordinate_transform.cpp
+10
-10
No files found.
src/ngraph/coordinate_transform.cpp
View file @
c5f0bd9d
...
...
@@ -456,21 +456,21 @@ bool CoordinateTransform::Iterator::operator!=(const Iterator& it)
bool
CoordinateTransform
::
Iterator
::
operator
==
(
const
Iterator
&
it
)
{
if
(
m_target_shape
!=
it
.
m_target_shape
)
if
(
it
.
m_oob
)
{
return
false
;
}
// Out-of-bounds iterators are always equal; in other words, an iterator is always equal to
// end() even if the internally stored coordinates are different.
// Out-of-bounds iterators are always equal; in other words, an iterator is always equal to
// end() even if the internally stored coordinates are different.
if
(
m_oob
&&
it
.
m_oob
)
// If one iterator is out of bounds and the other is not, they are unequal even if their
// target coordinates happen to match.
return
m_oob
;
}
else
if
(
m_oob
)
{
return
tru
e
;
return
fals
e
;
}
// If one iterator is out of bounds and the other is not, they are unequal even if their target
// coordinates happen to match.
if
(
m_oob
!=
it
.
m_oob
)
if
(
m_target_shape
!=
it
.
m_target_shape
)
{
return
false
;
}
...
...
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