Class ResultMergeFrameLocalMemory
java.lang.Object
org.apache.sysds.runtime.controlprogram.parfor.ResultMerge<FrameObject>
org.apache.sysds.runtime.controlprogram.parfor.ResultMergeFrameLocalMemory
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResultMergeFrameLocalMemory(FrameObject out, FrameObject[] in, String outputFilename, boolean accum) -
Method Summary
Modifier and TypeMethodDescriptionexecuteParallelMerge(int par) Merge all given input matrices in parallel into the given output matrix.Merge all given input matrices sequentially into the given output matrix.
-
Constructor Details
-
ResultMergeFrameLocalMemory
public ResultMergeFrameLocalMemory(FrameObject out, FrameObject[] in, String outputFilename, boolean accum)
-
-
Method Details
-
executeSerialMerge
Description copied from class:ResultMergeMerge 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.- Specified by:
executeSerialMergein classResultMerge<FrameObject>- Returns:
- output (merged) matrix
-
executeParallelMerge
Description copied from class:ResultMergeMerge 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.- Specified by:
executeParallelMergein classResultMerge<FrameObject>- Parameters:
par- degree of parallelism- Returns:
- output (merged) matrix
-