Package org.apache.sysds.lops.compile
Class Dag<N extends Lop>
- java.lang.Object
-
- org.apache.sysds.lops.compile.Dag<N>
-
-
Constructor Summary
Constructors Constructor Description Dag()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addNode(Lop node)
Method to add a node to the DAG.ArrayList<Instruction>
getJobs(StatementBlock sb, DMLConfig config)
Method to compile a dag genericallyString
getNextUniqueFilename()
static String
getNextUniqueFilenameSuffix()
static String
getNextUniqueVarname(Types.DataType dt)
-
-
-
Method Detail
-
getNextUniqueFilenameSuffix
public static String getNextUniqueFilenameSuffix()
-
getNextUniqueFilename
public String getNextUniqueFilename()
-
getNextUniqueVarname
public static String getNextUniqueVarname(Types.DataType dt)
-
addNode
public boolean addNode(Lop node)
Method to add a node to the DAG.- Parameters:
node
- low-level operator- Returns:
- true if node was not already present, false if not.
-
getJobs
public ArrayList<Instruction> getJobs(StatementBlock sb, DMLConfig config)
Method to compile a dag generically- Parameters:
sb
- statement blockconfig
- dml configuration- Returns:
- list of instructions
-
-