Package org.apache.sysds.hops.estim
Class SparsityEstimator
- java.lang.Object
 - 
- org.apache.sysds.hops.estim.SparsityEstimator
 
 
- 
- Direct Known Subclasses:
 EstimatorBasicAvg,EstimatorBasicWorst,EstimatorBitsetMM,EstimatorDensityMap,EstimatorLayeredGraph,EstimatorMatrixHistogram,EstimatorSample,EstimatorSampleRa
public abstract class SparsityEstimator extends Object
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSparsityEstimator.OpCode 
- 
Field Summary
Fields Modifier and Type Field Description static intMIN_PAR_THRESHOLDstatic booleanMULTI_THREADED_BUILDstatic booleanMULTI_THREADED_ESTIM 
- 
Constructor Summary
Constructors Constructor Description SparsityEstimator() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract DataCharacteristicsestim(MMNode root)Estimates the output sparsity of a DAG of matrix multiplications for the given operator graph of a single root node.abstract doubleestim(MatrixBlock m, SparsityEstimator.OpCode op)Estimates the output sparsity for a given unary operation.abstract doubleestim(MatrixBlock m1, MatrixBlock m2)Estimates the output sparsity for a single matrix multiplication.abstract doubleestim(MatrixBlock m1, MatrixBlock m2, SparsityEstimator.OpCode op)Estimates the output sparsity for a given binary operation. 
 - 
 
- 
- 
Field Detail
- 
MULTI_THREADED_BUILD
public static boolean MULTI_THREADED_BUILD
 
- 
MULTI_THREADED_ESTIM
public static boolean MULTI_THREADED_ESTIM
 
- 
MIN_PAR_THRESHOLD
public static final int MIN_PAR_THRESHOLD
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
estim
public abstract DataCharacteristics estim(MMNode root)
Estimates the output sparsity of a DAG of matrix multiplications for the given operator graph of a single root node.- Parameters:
 root- DAG root node- Returns:
 - output data characteristics
 
 
- 
estim
public abstract double estim(MatrixBlock m1, MatrixBlock m2)
Estimates the output sparsity for a single matrix multiplication.- Parameters:
 m1- left-hand-side operandm2- right-hand-side operand- Returns:
 - sparsity
 
 
- 
estim
public abstract double estim(MatrixBlock m1, MatrixBlock m2, SparsityEstimator.OpCode op)
Estimates the output sparsity for a given binary operation.- Parameters:
 m1- left-hand-side operandm2- right-hand-side operandop- operator code- Returns:
 - sparsity
 
 
- 
estim
public abstract double estim(MatrixBlock m, SparsityEstimator.OpCode op)
Estimates the output sparsity for a given unary operation.- Parameters:
 m- left-hand-side operandop- operator code- Returns:
 - sparsity
 
 
 - 
 
 -