Skip to content

Commit 4949e96

Browse files
Frxmsmboehm7
authored andcommitted
[MINOR] Fix consistent nnz maintenance in codegen col aggregates
Closes #2205.
1 parent 848cfcc commit 4949e96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/apache/sysds/runtime/codegen/SpoofCellwise.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject
267267
lnnz = executeDense(a.getDenseBlock(), b, scalars, out, m, n, sparseSafe, 0, m, rix);
268268
else
269269
lnnz = executeSparse(a.getSparseBlock(), b, scalars, out, m, n, sparseSafe, 0, m, rix);
270+
if(_type == CellType.COL_AGG)
271+
lnnz = out.recomputeNonZeros();
270272
}
271273
else //MULTI-THREADED
272274
{

0 commit comments

Comments
 (0)