Class NaivePlanEncode
java.lang.Object
org.apache.sysds.runtime.compress.plan.NaivePlanEncode
- All Implemented Interfaces:
IPlanEncode
Naive implementation of encoding based on a plan. This does not reuse plans across groups, and does not smartly
extract encodings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode(MatrixBlock in) Encode a given matrix block subject to the plan given, while erroring out in case of breaking compressionvoidGiven a block expand the plan to enable encoding of the given block.voidvoidfinal StringtoString()
-
Constructor Details
-
NaivePlanEncode
-
-
Method Details
-
encode
Description copied from interface:IPlanEncodeEncode a given matrix block subject to the plan given, while erroring out in case of breaking compression- Specified by:
encodein interfaceIPlanEncode- Parameters:
in- The matrix block to encode- Returns:
- A Compressed Matrix block with the safe scheme applied.
-
expandPlan
Description copied from interface:IPlanEncodeGiven a block expand the plan to enable encoding of the given block.- Specified by:
expandPlanin interfaceIPlanEncode- Parameters:
in- The bock
-
expandPlanSingleThread
-
expandPlanMultiThread
- Throws:
Exception
-
toString
-