Class SparsityEstimator

    • Field Detail

      • MULTI_THREADED_BUILD

        public static boolean MULTI_THREADED_BUILD
      • MULTI_THREADED_ESTIM

        public static boolean MULTI_THREADED_ESTIM
    • Constructor Detail

      • SparsityEstimator

        public SparsityEstimator()
    • 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 operand
        m2 - 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 operand
        m2 - right-hand-side operand
        op - 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 operand
        op - operator code
        Returns:
        sparsity