Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Baunsgaard committed Sep 24, 2024
1 parent 92c1382 commit c0f7c0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,6 @@ public double[] productAllRowsToDoubleWithReference(double[] reference) {
public void colSum(double[] c, int[] counts, IColIndex colIndexes) {
for(int i = 0; i < colIndexes.size(); i++)
c[colIndexes.get(i)] += counts[i];
<<<<<<< HEAD
=======

>>>>>>> cb91b16977 ([DO NOT MERGE] JAVA 17 BWARE COMMIT)
}

@Override
Expand Down Expand Up @@ -434,18 +430,8 @@ public long getNumberNonZerosWithReference(int[] counts, double[] reference, int
}

@Override
<<<<<<< HEAD
public final void addToEntry(final double[] v, final int fr, final int to, final int nCol) {
addToEntry(v, fr, to, nCol, 1);
=======

public void addToEntry(final double[] v, final int fr, final int to, final int nCol) {
// getMBDict().addToEntry(v, fr, to, nCol);
if(!withEmpty)
v[to * nCol + fr] += 1;
else if(fr < nRowCol)
v[to * nCol + fr] += 1;
>>>>>>> cb91b16977 ([DO NOT MERGE] JAVA 17 BWARE COMMIT)
}

@Override
Expand Down Expand Up @@ -675,13 +661,8 @@ public void MMDictDense(double[] left, IColIndex rowsLeft, IColIndex colsRight,
final int colsOut = result.getNumColumns();
final int commonDim = Math.min(left.length / leftSide, nRowCol);
final double[] resV = result.getDenseBlockValues();
<<<<<<< HEAD
for(int i = 0; i < leftSide; i++) { // rows in left side
final int offOut = rowsLeft.get(i) * colsOut;
=======
for(int i = 0; i < leftSide; i++) {// rows in left side
final int offOut = rowsLeft.get(i) * resCols;
>>>>>>> cb91b16977 ([DO NOT MERGE] JAVA 17 BWARE COMMIT)
final int leftOff = i;
for(int j = 0; j < commonDim; j++) { // cols in left side skipping empty from identity
resV[offOut + colsRight.get(j)] += left[leftOff + j * leftSide];
Expand Down Expand Up @@ -752,15 +733,10 @@ public void TSMMToUpperTriangleSparseScaling(SparseBlock left, IColIndex rowsLef

@Override
public boolean equals(IDictionary o) {
<<<<<<< HEAD
if(o instanceof IdentityDictionary && //
((IdentityDictionary) o).nRowCol == nRowCol && //
((IdentityDictionary) o).withEmpty == withEmpty)
return true;
=======
if(o instanceof IdentityDictionary)
return ((IdentityDictionary) o).nRowCol == nRowCol && ((IdentityDictionary) o).withEmpty == withEmpty;
>>>>>>> cb91b16977 ([DO NOT MERGE] JAVA 17 BWARE COMMIT)
return getMBDict().equals(o);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ private static boolean isValidForParallelProcessing(CompressedMatrixBlock m1, Ag
}

private static void aggregateInParallel(CompressedMatrixBlock m1, MatrixBlock ret, AggregateUnaryOperator op,
int k) {
int k) throws Exception {
final ExecutorService pool = CommonThreadPool.get(k);
try {
final ArrayList<UnaryAggregateTask> tasks = new ArrayList<>();
Expand Down

0 comments on commit c0f7c0c

Please sign in to comment.