org.apache.sysml.runtime.matrix.data

Class RandomMatrixGenerator



  • public class RandomMatrixGenerator
    extends Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      RandomMatrixGenerator() 
      RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf, int r, int c, int rpb, int cpb, double sp)
      Instantiates a Random number generator
      RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf, int r, int c, int rpb, int cpb, double sp, double min, double max)
      Instantiates a Random number generator
      RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf, int r, int c, int rpb, int cpb, double sp, double min, double max, double mean)
      Instantiates a Random number generator with a specific poisson mean
      RandomMatrixGenerator(String pdfStr, int r, int c, int rpb, int cpb, double sp, double min, double max)
      Instantiates a Random number generator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void init(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf, int r, int c, int rpb, int cpb, double sp, double min, double max)
      Initializes internal data structures.
      void init(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf, int r, int c, int rpb, int cpb, double sp, double min, double max, double mean)
      Instantiates a Random number generator with a specific poisson mean
      protected void setupValuePRNG() 
    • Constructor Detail

      • RandomMatrixGenerator

        public RandomMatrixGenerator()
      • RandomMatrixGenerator

        public RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
                                     int r,
                                     int c,
                                     int rpb,
                                     int cpb,
                                     double sp)
                              throws DMLRuntimeException
        Instantiates a Random number generator
        Parameters:
        pdf - probability density function
        r - number of rows
        c - number of columns
        rpb - rows per block
        cpb - columns per block
        sp - sparsity (0 = completely sparse, 1 = completely dense)
        Throws:
        DMLRuntimeException - if error
      • RandomMatrixGenerator

        public RandomMatrixGenerator(String pdfStr,
                                     int r,
                                     int c,
                                     int rpb,
                                     int cpb,
                                     double sp,
                                     double min,
                                     double max)
                              throws DMLRuntimeException
        Instantiates a Random number generator
        Parameters:
        pdfStr - probability density function
        r - number of rows
        c - number of columns
        rpb - rows per block
        cpb - columns per block
        sp - sparsity (0 = completely sparse, 1 = completely dense)
        min - minimum of range of random numbers
        max - maximum of range of random numbers
        Throws:
        DMLRuntimeException - if error
      • RandomMatrixGenerator

        public RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
                                     int r,
                                     int c,
                                     int rpb,
                                     int cpb,
                                     double sp,
                                     double min,
                                     double max)
                              throws DMLRuntimeException
        Instantiates a Random number generator
        Parameters:
        pdf - probability density function
        r - number of rows
        c - number of columns
        rpb - rows per block
        cpb - columns per block
        sp - sparsity (0 = completely sparse, 1 = completely dense)
        min - minimum of range of random numbers
        max - maximum of range of random numbers
        Throws:
        DMLRuntimeException - if error
      • RandomMatrixGenerator

        public RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
                                     int r,
                                     int c,
                                     int rpb,
                                     int cpb,
                                     double sp,
                                     double min,
                                     double max,
                                     double mean)
                              throws DMLRuntimeException
        Instantiates a Random number generator with a specific poisson mean
        Parameters:
        pdf - probability density function
        r - number of rows
        c - number of columns
        rpb - rows per block
        cpb - columns per block
        sp - sparsity (0 = completely sparse, 1 = completely dense)
        min - minimum of range of random numbers
        max - maximum of range of random numbers
        mean - the poisson mean
        Throws:
        DMLRuntimeException - if error
    • Method Detail

      • init

        public void init(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
                         int r,
                         int c,
                         int rpb,
                         int cpb,
                         double sp,
                         double min,
                         double max)
                  throws DMLRuntimeException
        Initializes internal data structures. Called by Constructor
        Parameters:
        pdf - probability density function
        r - number of rows
        c - number of columns
        rpb - rows per block
        cpb - columns per block
        sp - sparsity (0 = completely sparse, 1 = completely dense)
        min - minimum of range of random numbers
        max - maximum of range of random numbers
        Throws:
        DMLRuntimeException - if error
      • init

        public void init(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
                         int r,
                         int c,
                         int rpb,
                         int cpb,
                         double sp,
                         double min,
                         double max,
                         double mean)
                  throws DMLRuntimeException
        Instantiates a Random number generator with a specific poisson mean
        Parameters:
        pdf - probability density function
        r - number of rows
        c - number of columns
        rpb - rows per block
        cpb - columns per block
        sp - sparsity (0 = completely sparse, 1 = completely dense)
        min - minimum of range of random numbers
        max - maximum of range of random numbers
        mean - the poisson mean
        Throws:
        DMLRuntimeException - if error

Copyright © 2017 The Apache Software Foundation. All rights reserved.