corrected style, updated version
This commit is contained in:
@@ -274,7 +274,7 @@ static void convertTrees(const map<DIST::Array*, int> &treesIn, map<int, vector<
|
||||
static DIST::Array* findBestInEqual(vector<DIST::Array*> &arrays, DIST::GraphCSR<int, double, attrType> &reducedG, DIST::Arrays<int> &allArrays)
|
||||
{
|
||||
DIST::Array *retVal = NULL;
|
||||
vector<vector<attrType>> coefsByDims;
|
||||
vector<vector<attrType>> coeffsByDims;
|
||||
for (auto &array : arrays)
|
||||
{
|
||||
vector<int> verts;
|
||||
@@ -285,7 +285,7 @@ static DIST::Array* findBestInEqual(vector<DIST::Array*> &arrays, DIST::GraphCSR
|
||||
{
|
||||
retVal = array;
|
||||
for (auto &V : verts)
|
||||
coefsByDims.push_back(reducedG.GetAllAttributes(V));
|
||||
coeffsByDims.push_back(reducedG.GetAllAttributes(V));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -294,11 +294,11 @@ static DIST::Array* findBestInEqual(vector<DIST::Array*> &arrays, DIST::GraphCSR
|
||||
toCmp.push_back(reducedG.GetAllAttributes(V));
|
||||
for (int z = 0; z < toCmp.size(); ++z)
|
||||
{
|
||||
if (toCmp[z].size() && coefsByDims[z].size())
|
||||
if (toCmp[z].size() && coeffsByDims[z].size())
|
||||
{
|
||||
if (toCmp[z].back().first.first > coefsByDims[z].back().first.first)
|
||||
if (toCmp[z].back().first.first > coeffsByDims[z].back().first.first)
|
||||
{
|
||||
coefsByDims = toCmp;
|
||||
coeffsByDims = toCmp;
|
||||
retVal = array;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user