Skip to content

Commit

Permalink
Merge pull request #486 from stkaplan/index-compare
Browse files Browse the repository at this point in the history
Don't check tensor when comparing IndexSets
  • Loading branch information
rohany authored Aug 5, 2021
2 parents ef99f8d + 4e01734 commit 0ede002
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/index_notation/index_notation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,20 @@ struct Isomorphic : public IndexNotationVisitorStrict {
}
}
if (anode->isAccessingStructure != bnode->isAccessingStructure ||
anode->windowedModes != bnode->windowedModes ||
anode->indexSetModes != bnode->indexSetModes) {
anode->windowedModes != bnode->windowedModes) {
eq = false;
return;
}
if (anode->indexSetModes.size() != bnode->indexSetModes.size()) {
eq = false;
return;
}
for (auto aset = anode->indexSetModes.begin(), bset = bnode->indexSetModes.begin(); aset != anode->indexSetModes.end(); ++aset, ++bset) {
if (aset->first != bset->first || *aset->second.set != *bset->second.set) {
eq = false;
return;
}
}
eq = true;
}

Expand Down

0 comments on commit 0ede002

Please sign in to comment.