public abstract class SparsityEstimator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SparsityEstimator.OpCode |
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_PAR_THRESHOLD |
static boolean |
MULTI_THREADED_BUILD |
static boolean |
MULTI_THREADED_ESTIM |
| Constructor and Description |
|---|
SparsityEstimator() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
estim(MatrixBlock m1,
MatrixBlock m2)
Estimates the output sparsity for a single matrix multiplication.
|
abstract double |
estim(MatrixBlock m1,
MatrixBlock m2,
SparsityEstimator.OpCode op)
Estimates the output sparsity for a given binary operation.
|
abstract double |
estim(MatrixBlock m,
SparsityEstimator.OpCode op)
Estimates the output sparsity for a given unary operation.
|
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.
|
public static boolean MULTI_THREADED_BUILD
public static boolean MULTI_THREADED_ESTIM
public static final int MIN_PAR_THRESHOLD
public abstract DataCharacteristics estim(MMNode root)
root - DAG root nodepublic abstract double estim(MatrixBlock m1, MatrixBlock m2)
m1 - left-hand-side operandm2 - right-hand-side operandpublic abstract double estim(MatrixBlock m1, MatrixBlock m2, SparsityEstimator.OpCode op)
m1 - left-hand-side operandm2 - right-hand-side operandop - operator codepublic abstract double estim(MatrixBlock m, SparsityEstimator.OpCode op)
m - left-hand-side operandop - operator codeCopyright © 2021 The Apache Software Foundation. All rights reserved.