Class EstimationUtils

java.lang.Object
org.apache.sysds.hops.estim.EstimationUtils

public abstract class EstimationUtils extends Object
  • Constructor Details

    • EstimationUtils

      public EstimationUtils()
  • Method Details

    • getSelfProductOutputNnz

      public static long getSelfProductOutputNnz(MatrixBlock m1)
      This utility function computes the exact output nnz of a self matrix product without need to materialize the output.
      Parameters:
      m1 - dense or sparse input matrix
      Returns:
      exact output number of non-zeros.
    • getSparseProductOutputNnz

      public static long getSparseProductOutputNnz(MatrixBlock m1, MatrixBlock m2)