Class ResultMerge<T extends CacheableData<?>>
java.lang.Object
org.apache.sysds.runtime.controlprogram.parfor.ResultMerge<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ResultMergeFrameLocalMemory,ResultMergeMatrix
public abstract class ResultMerge<T extends CacheableData<?>>
extends Object
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TexecuteParallelMerge(int par) Merge all given input matrices in parallel into the given output matrix.abstract TMerge all given input matrices sequentially into the given output matrix.
-
Constructor Details
-
ResultMerge
-
-
Method Details
-
executeSerialMerge
Merge all given input matrices sequentially into the given output matrix. The required space in-memory is the size of the output matrix plus the size of one input matrix at a time.- Returns:
- output (merged) matrix
-
executeParallelMerge
Merge all given input matrices in parallel into the given output matrix. The required space in-memory is the size of the output matrix plus the size of all input matrices.- Parameters:
par- degree of parallelism- Returns:
- output (merged) matrix
-