diff --git a/src/main/java/org/apache/sysds/runtime/compress/colgroup/dictionary/IdentityDictionarySlice.java b/src/main/java/org/apache/sysds/runtime/compress/colgroup/dictionary/IdentityDictionarySlice.java index 6df7269961c..024a480866e 100644 --- a/src/main/java/org/apache/sysds/runtime/compress/colgroup/dictionary/IdentityDictionarySlice.java +++ b/src/main/java/org/apache/sysds/runtime/compress/colgroup/dictionary/IdentityDictionarySlice.java @@ -27,7 +27,6 @@ import org.apache.commons.lang3.NotImplementedException; import org.apache.sysds.runtime.DMLRuntimeException; -import org.apache.sysds.runtime.compress.DMLCompressionException; import org.apache.sysds.runtime.compress.colgroup.indexes.IColIndex; import org.apache.sysds.runtime.data.SparseBlock; import org.apache.sysds.runtime.functionobjects.Builtin; @@ -203,13 +202,6 @@ public IDictionary sliceOutColumnRange(int idxStart, int idxEnd, int previousNum return getMBDict().sliceOutColumnRange(idxStart, idxEnd, previousNumberOfColumns); } - @Override - public int getNumberOfValues(int ncol) { - if(ncol != u - l) - throw new DMLCompressionException("Invalid call to get Number of values assuming wrong number of columns"); - return nRowCol + (withEmpty ? 1 : 0); - } - @Override public boolean containsValue(double pattern) { return pattern == 0.0 || pattern == 1.0; diff --git a/src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/AMapToData.java b/src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/AMapToData.java index 4edcf6f3bb7..683c231709e 100644 --- a/src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/AMapToData.java +++ b/src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/AMapToData.java @@ -917,7 +917,7 @@ public void verify() { } } - protected void lmSparseMatrixRow(SparseBlock sb, final int r, DenseBlock db, final IColIndex colIndexes, + public void lmSparseMatrixRow(SparseBlock sb, final int r, DenseBlock db, final IColIndex colIndexes, final IDictionary dict) { if(sb.isEmpty(r)) return;