public void removeEntries(SparseMatrix redundant) { for (int r : redundant.getRows()) { Counter row = redundant.getRow(r); for (int c : row.keySet()) { this.remove(r, c); } } }