Skip to content

Commit

Permalink
[InitDictPersDiagram base] correction, deleting temp2 and directly pu…
Browse files Browse the repository at this point in the history
…sh_back
  • Loading branch information
Keanu Sisouk authored and Keanu Sisouk committed Oct 20, 2023
1 parent 4fa6e61 commit 2abf2b1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ void InitDictPersistenceDiagram::execute(

int FirstId = std::min_element(tempDistsSummed.begin(), tempDistsSummed.end())
- tempDistsSummed.begin();
const auto &temp = datas[indices[FirstId]];
DictDiagrams.push_back(temp);
DictDiagrams.push_back(datas[indices[FirstId]]);
for(int i = 0; i < nbAtoms; ++i) {
if(i == FirstId) {
continue;
} else {
const auto &temp2 = datas[indices[i]];
DictDiagrams.push_back(temp2);
DictDiagrams.push_back(datas[indices[i]]);
}
}
}
Expand Down

0 comments on commit 2abf2b1

Please sign in to comment.