Class CLALibCombineGroups
java.lang.Object
org.apache.sysds.runtime.compress.lib.CLALibCombineGroups
Library functions to combine column groups inside a compressed matrix.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AColGroupCombine the column groups A and B together.combine(CompressedMatrixBlock cmb, CompressedSizeInfo csi, ExecutorService pool, int k) static AColGroupcombineN(List<AColGroup> groups, int nRows, ExecutorService pool, int k) static AColGroupcombineNMergeTree(List<AColGroup> groups, int nRows, ExecutorService pool, int k) static AColGroupcombineNSingleAtATime(List<AColGroup> groups, int nRows) static double[]findGroupsInIndex(IColIndex idx, List<AColGroup> groups)
-
Method Details
-
combine
public static List<AColGroup> combine(CompressedMatrixBlock cmb, CompressedSizeInfo csi, ExecutorService pool, int k) throws InterruptedException, ExecutionException -
findGroupsInIndex
-
combineN
public static AColGroup combineN(List<AColGroup> groups, int nRows, ExecutorService pool, int k) throws InterruptedException, ExecutionException -
combineNMergeTree
public static AColGroup combineNMergeTree(List<AColGroup> groups, int nRows, ExecutorService pool, int k) throws InterruptedException, ExecutionException -
combineNSingleAtATime
-
combine
Combine the column groups A and B together. The number of rows should be equal, and it is not verified so there will be unexpected behavior in such cases. It is assumed that this method is not called with FOR groups- Parameters:
a- The first group to combine.b- The second group to combine.nRow- The number of rows in the two groups.- Returns:
- A new column group containing the two.
-
constructDefaultTuple
-