public class RandSPInstruction extends UnarySPInstruction
SPInstruction.SPINSTRUCTION_TYPE
Instruction.INSTRUCTION_TYPE
input1, input2, input3, output
_optr, _requiresLabelUpdate, _sptype
beginCol, beginLine, DATATYPE_PREFIX, endCol, endLine, GPU_INST_PREFIX, instOpcode, INSTRUCTION_DELIM, instString, LITERAL_PREFIX, LOG, OPERAND_DELIM, SP_INST_PREFIX, type, VALUETYPE_PREFIX
Constructor and Description |
---|
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) |
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(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) |
Modifier and Type | Method and Description |
---|---|
long |
getCols() |
int |
getColsInBlock() |
double |
getMaxValue() |
double |
getMinValue() |
long |
getRows() |
int |
getRowsInBlock() |
double |
getSparsity() |
static RandSPInstruction |
parseInstruction(String str) |
void |
processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
This method should be used to execute the instruction.
|
void |
setCols(long cols) |
void |
setColsInBlock(int colsInBlock) |
void |
setMaxValue(double maxValue) |
void |
setMinValue(double minValue) |
void |
setRows(long rows) |
void |
setRowsInBlock(int rowsInBlock) |
void |
setSparsity(double sparsity) |
getOutputVariableName, updateBinaryOutputMatrixCharacteristics, updateUnaryAggOutputMatrixCharacteristics, updateUnaryOutputMatrixCharacteristics, updateUnaryOutputMatrixCharacteristics
getGraphString, getSPInstructionType, postprocessInstruction, preprocessInstruction, requiresLabelUpdate
getExtendedOpcode, getInstID, getLineNum, getOpcode, getType, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setType, toString, updateInstructionThreadID
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)
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)
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)
public long getRows()
public void setRows(long rows)
public long getCols()
public void setCols(long cols)
public int getRowsInBlock()
public void setRowsInBlock(int rowsInBlock)
public int getColsInBlock()
public void setColsInBlock(int colsInBlock)
public double getMinValue()
public void setMinValue(double minValue)
public double getMaxValue()
public void setMaxValue(double maxValue)
public double getSparsity()
public void setSparsity(double sparsity)
public static RandSPInstruction parseInstruction(String str) throws DMLRuntimeException
DMLRuntimeException
public void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
Instruction
processInstruction
in class SPInstruction
ec
- execution contextDMLRuntimeException
- if DMLRuntimeException occursCopyright © 2017 The Apache Software Foundation. All rights reserved.