Skip to content

Commit 66a3836

Browse files
committed
fixed the compression error
1 parent 90777aa commit 66a3836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/sysds/runtime/compress/colgroup/ColGroupFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ private static AColGroup compressLinearFunctional(IColIndex colIndexes, MatrixBl
10951095
public static AColGroup compressPiecewiseLinearFunctionalSuccessive(IColIndex colIndexes, MatrixBlock in,
10961096
CompressionSettings cs) {
10971097

1098-
final int numRows = in.getNumRows();
1098+
final int numRows = cs.transposed ? in.getNumColumns() : in.getNumRows();
10991099
final int numCols = colIndexes.size();
11001100
int[][] breakpointsPerCol = new int[numCols][];
11011101
double[][] slopesPerCol = new double[numCols][];

0 commit comments

Comments
 (0)