Class TemplateOuterProduct
- java.lang.Object
- 
- org.apache.sysds.hops.codegen.template.TemplateBase
- 
- org.apache.sysds.hops.codegen.template.TemplateOuterProduct
 
 
- 
 public class TemplateOuterProduct extends TemplateBase 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.sysds.hops.codegen.template.TemplateBaseTemplateBase.CloseType, TemplateBase.TemplateType
 
- 
 - 
Constructor SummaryConstructors Constructor Description TemplateOuterProduct()TemplateOuterProduct(TemplateBase.CloseType ctype)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateBase.CloseTypeclose(Hop hop)Indicates if the template must be closed at the current hop; either due to final operations (e.g., aggregate) or unsupported operations.Pair<Hop[],CNodeTpl>constructCplan(Hop hop, CPlanMemoTable memo, boolean compileLiterals)Constructs a single cplan rooted at the given hop, according to the plan given in the memo structure for this particular hop and its recursive inputs.static CPlanMemoTable.MemoTableEntrydropAlternativePlan(CPlanMemoTable memo, CPlanMemoTable.MemoTableEntry me1, CPlanMemoTable.MemoTableEntry me2)booleanfuse(Hop hop, Hop input)Indicates if the template can be expanded to the given hop starting from an open template at the input.booleanmerge(Hop hop, Hop input)Indicates if the template at the current hop can be expanded by merging another template available for one of its other inputs which is not yet covered by the template of the current hop.booleanopen(Hop hop)Indicates if this template can be opened at the given hop, where hop represents bottom (first operation on the inputs) of the fused operator.
 
- 
- 
- 
Constructor Detail- 
TemplateOuterProductpublic TemplateOuterProduct() 
 - 
TemplateOuterProductpublic TemplateOuterProduct(TemplateBase.CloseType ctype) 
 
- 
 - 
Method Detail- 
openpublic boolean open(Hop hop) Description copied from class:TemplateBaseIndicates if this template can be opened at the given hop, where hop represents bottom (first operation on the inputs) of the fused operator.- Specified by:
- openin class- TemplateBase
- Parameters:
- hop- current hop
- Returns:
- true if template can be opened
 
 - 
fusepublic boolean fuse(Hop hop, Hop input) Description copied from class:TemplateBaseIndicates if the template can be expanded to the given hop starting from an open template at the input.- Specified by:
- fusein class- TemplateBase
- Parameters:
- hop- current hop
- input- hop with open template of same type
- Returns:
- true if the current hop can be fused into the operator.
 
 - 
mergepublic boolean merge(Hop hop, Hop input) Description copied from class:TemplateBaseIndicates if the template at the current hop can be expanded by merging another template available for one of its other inputs which is not yet covered by the template of the current hop.- Specified by:
- mergein class- TemplateBase
- Parameters:
- hop- current hop
- input- direct input of current hop with available template
- Returns:
- true if the the input hop can be fused into the current hop
 
 - 
closepublic TemplateBase.CloseType close(Hop hop) Description copied from class:TemplateBaseIndicates if the template must be closed at the current hop; either due to final operations (e.g., aggregate) or unsupported operations.- Specified by:
- closein class- TemplateBase
- Parameters:
- hop- current hop
- Returns:
- close type (closed invalid, closed valid, open)
 
 - 
constructCplanpublic Pair<Hop[],CNodeTpl> constructCplan(Hop hop, CPlanMemoTable memo, boolean compileLiterals) Description copied from class:TemplateBaseConstructs a single cplan rooted at the given hop, according to the plan given in the memo structure for this particular hop and its recursive inputs.- Specified by:
- constructCplanin class- TemplateBase
- Parameters:
- hop- root of cplan
- memo- memoization table for partial subplans
- compileLiterals- if true compile non-integer literals as constants, otherwise variables. note: integer literals are always compiled as constants.
- Returns:
- pair containing hops and code template
 
 - 
dropAlternativePlanpublic static CPlanMemoTable.MemoTableEntry dropAlternativePlan(CPlanMemoTable memo, CPlanMemoTable.MemoTableEntry me1, CPlanMemoTable.MemoTableEntry me2) 
 
- 
 
-