Skip to content

Commit 24e6da7

Browse files
committed
[MINOR] minor cleanups and optimizations to CLA MM primitives
1 parent 6a4b3d8 commit 24e6da7

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/main/java/org/apache/sysds/runtime/compress/lib/CLALibRightMultBy.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -195,28 +195,7 @@ private static CompressedMatrixBlock RMMOverlapping(CompressedMatrixBlock m1, Ma
195195
}
196196

197197
private static void addConstant(MatrixBlock constantRow, List<AColGroup> out) {
198-
// it is fairly safe to add the constant row to a column group.
199-
// but it is not necessary the fastest.
200-
201-
// final int nCol = constantRow.getNumColumns();
202-
// int bestCandidate = -1;
203-
// int bestCandidateValuesSize = Integer.MAX_VALUE;
204-
// for(int i = 0; i < out.size(); i++) {
205-
// AColGroup g = out.get(i);
206-
// if(g instanceof ColGroupDDC && g.getNumCols() == nCol && g.getNumValues() < bestCandidateValuesSize)
207-
// bestCandidate = i;
208-
// }
209-
210198
constantRow.sparseToDense();
211-
212-
// if(bestCandidate != -1) {
213-
// AColGroup bc = out.get(bestCandidate);
214-
// out.remove(bestCandidate);
215-
// AColGroup ng = bc.binaryRowOpRight(new BinaryOperator(Plus.getPlusFnObject(), 1),
216-
// constantRow.getDenseBlockValues(), true);
217-
// out.add(ng);
218-
// }
219-
// else
220199
out.add(ColGroupConst.create(constantRow.getDenseBlockValues()));
221200
}
222201

0 commit comments

Comments
 (0)