Skip to content

Commit

Permalink
multirow indentity preaggregate dense
Browse files Browse the repository at this point in the history
  • Loading branch information
Baunsgaard committed Jan 17, 2025
1 parent cf17891 commit 44b9e43
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -945,12 +945,12 @@ private void leftMMIdentityPreAggregateDenseSingleRow(double[] values, int pos,
for(int rc = cl; rc < cu; rc++, pos++) {
final int idx = _data.getIndex(rc);
if(idx != nVal)
values2[_colIndexes.get(idx)] += values[pos];
values2[pos2 + _colIndexes.get(idx)] += values[pos];
}
}
else {
for(int rc = cl; rc < cu; rc++, pos++)
values2[_colIndexes.get(_data.getIndex(rc))] += values[pos];
values2[pos2 + _colIndexes.get(_data.getIndex(rc))] += values[pos];
}
}
}
Expand All @@ -959,7 +959,7 @@ private void leftMMIdentityPreAggregateDenseSingleRowRangeIndex(double[] values,
int cl, int cu) {
IdentityDictionary a = (IdentityDictionary) _dict;

final int firstCol = _colIndexes.get(0);
final int firstCol = pos2 + _colIndexes.get(0);
pos += cl; // left side matrix position offset.
if(a.withEmpty()) {
final int nVal = _dict.getNumberOfValues(_colIndexes.size()) - 1;
Expand Down

0 comments on commit 44b9e43

Please sign in to comment.