Package org.apache.sysds.hops.estim
Class EstimatorRowWise
java.lang.Object
org.apache.sysds.hops.estim.SparsityEstimator
org.apache.sysds.hops.estim.EstimatorRowWise
This estimator implements an approach based on row-wise sparsity estimation,
introduced in
Lin, Chunxu, Wensheng Luo, Yixiang Fang, Chenhao Ma, Xilin Liu and Yuchi Ma:
On Efficient Large Sparse Matrix Chain Multiplication.
Proceedings of the ACM on Management of Data 2 (2024): 1 - 27.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sysds.hops.estim.SparsityEstimator
SparsityEstimator.OpCode -
Field Summary
Fields inherited from class org.apache.sysds.hops.estim.SparsityEstimator
MIN_PAR_THRESHOLD, MULTI_THREADED_BUILD, MULTI_THREADED_ESTIM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataCharacteristicsderiveOutputCharacteristics(MMNode node, double spOut) Estimates the output sparsity of a DAG of matrix multiplications for the given operator graph of a single root node.doubleestim(MatrixBlock m1, SparsityEstimator.OpCode op) Estimates the output sparsity for a given unary operation.doubleestim(MatrixBlock m1, MatrixBlock m2) Estimates the output sparsity for a single matrix multiplication.doubleestim(MatrixBlock m1, MatrixBlock m2, SparsityEstimator.OpCode op) Estimates the output sparsity for a given binary operation.
-
Constructor Details
-
EstimatorRowWise
public EstimatorRowWise()
-
-
Method Details
-
estim
Description copied from class:SparsityEstimatorEstimates the output sparsity of a DAG of matrix multiplications for the given operator graph of a single root node.- Specified by:
estimin classSparsityEstimator- Parameters:
root- DAG root node- Returns:
- output data characteristics
-
estim
Description copied from class:SparsityEstimatorEstimates the output sparsity for a single matrix multiplication.- Specified by:
estimin classSparsityEstimator- Parameters:
m1- left-hand-side operandm2- right-hand-side operand- Returns:
- sparsity
-
estim
Description copied from class:SparsityEstimatorEstimates the output sparsity for a given binary operation.- Specified by:
estimin classSparsityEstimator- Parameters:
m1- left-hand-side operandm2- right-hand-side operandop- operator code- Returns:
- sparsity
-
estim
Description copied from class:SparsityEstimatorEstimates the output sparsity for a given unary operation.- Specified by:
estimin classSparsityEstimator- Parameters:
m1- left-hand-side operandop- operator code- Returns:
- sparsity
-
deriveOutputCharacteristics
-