org.apache.sysml.runtime.instructions.spark

Class RandSPInstruction

    • Constructor Detail

      • RandSPInstruction

        public RandSPInstruction(org.apache.sysml.runtime.matrix.operators.Operator op,
                                 org.apache.sysml.hops.Hop.DataGenMethod mthd,
                                 org.apache.sysml.runtime.instructions.cp.CPOperand in,
                                 org.apache.sysml.runtime.instructions.cp.CPOperand out,
                                 long rows,
                                 long cols,
                                 int rpb,
                                 int cpb,
                                 double minValue,
                                 double maxValue,
                                 double sparsity,
                                 long seed,
                                 String dir,
                                 String probabilityDensityFunction,
                                 String pdfParams,
                                 String opcode,
                                 String istr)
      • RandSPInstruction

        public RandSPInstruction(org.apache.sysml.runtime.matrix.operators.Operator op,
                                 org.apache.sysml.hops.Hop.DataGenMethod mthd,
                                 org.apache.sysml.runtime.instructions.cp.CPOperand in,
                                 org.apache.sysml.runtime.instructions.cp.CPOperand out,
                                 long rows,
                                 long cols,
                                 int rpb,
                                 int cpb,
                                 double seqFrom,
                                 double seqTo,
                                 double seqIncr,
                                 String opcode,
                                 String istr)
      • RandSPInstruction

        public RandSPInstruction(org.apache.sysml.runtime.matrix.operators.Operator op,
                                 org.apache.sysml.hops.Hop.DataGenMethod mthd,
                                 org.apache.sysml.runtime.instructions.cp.CPOperand in,
                                 org.apache.sysml.runtime.instructions.cp.CPOperand out,
                                 long rows,
                                 long cols,
                                 int rpb,
                                 int cpb,
                                 double maxValue,
                                 boolean replace,
                                 long seed,
                                 String opcode,
                                 String istr)
    • Method Detail

      • getRows

        public long getRows()
      • setRows

        public void setRows(long rows)
      • getCols

        public long getCols()
      • setCols

        public void setCols(long cols)
      • getRowsInBlock

        public int getRowsInBlock()
      • setRowsInBlock

        public void setRowsInBlock(int rowsInBlock)
      • getColsInBlock

        public int getColsInBlock()
      • setColsInBlock

        public void setColsInBlock(int colsInBlock)
      • getMinValue

        public double getMinValue()
      • setMinValue

        public void setMinValue(double minValue)
      • getMaxValue

        public double getMaxValue()
      • setMaxValue

        public void setMaxValue(double maxValue)
      • getSparsity

        public double getSparsity()
      • setSparsity

        public void setSparsity(double sparsity)
      • processInstruction

        public void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
                                throws DMLRuntimeException
        Description copied from class: Instruction
        This method should be used to execute the instruction.
        Specified by:
        processInstruction in class SPInstruction
        Parameters:
        ec - execution context
        Throws:
        DMLRuntimeException - if DMLRuntimeException occurs

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