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 SummaryNested Classes Modifier and Type Class Description static classSparsityEstimator.OpCode
 - 
Field SummaryFields Modifier and Type Field Description static intMIN_PAR_THRESHOLDstatic booleanMULTI_THREADED_BUILDstatic booleanMULTI_THREADED_ESTIM
 - 
Constructor SummaryConstructors Constructor Description SparsityEstimator()
 - 
Method SummaryAll 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_BUILDpublic static boolean MULTI_THREADED_BUILD 
 - 
MULTI_THREADED_ESTIMpublic static boolean MULTI_THREADED_ESTIM 
 - 
MIN_PAR_THRESHOLDpublic static final int MIN_PAR_THRESHOLD - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
estimpublic 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
 
 - 
estimpublic abstract double estim(MatrixBlock m1, MatrixBlock m2) Estimates the output sparsity for a single matrix multiplication.- Parameters:
- m1- left-hand-side operand
- m2- right-hand-side operand
- Returns:
- sparsity
 
 - 
estimpublic abstract double estim(MatrixBlock m1, MatrixBlock m2, SparsityEstimator.OpCode op) Estimates the output sparsity for a given binary operation.- Parameters:
- m1- left-hand-side operand
- m2- right-hand-side operand
- op- operator code
- Returns:
- sparsity
 
 - 
estimpublic abstract double estim(MatrixBlock m, SparsityEstimator.OpCode op) Estimates the output sparsity for a given unary operation.- Parameters:
- m- left-hand-side operand
- op- operator code
- Returns:
- sparsity
 
 
- 
 
-