Skip to content
Snippets Groups Projects
Commit 66b0ce2d authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Simplify vector comparison

parent 8f18ae4a
No related branches found
No related tags found
1 merge request!104Add Communication Hiding to GPU version
......@@ -135,11 +135,7 @@ void initParameterClass(std::shared_ptr<Parameter> &para)
bool vectorsAreEqual(std::vector<uint> vector1, std::vector<uint> vectorExpected)
{
for (uint i = 0; i < (uint)vectorExpected.size(); i++) {
if (vector1[i] != vectorExpected[i])
return false;
}
return true;
return vector1 == vectorExpected;
}
bool vectorsAreEqual(uint *vector1, std::vector<uint> vectorExpected)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment