Class FunctionProgramBlock
java.lang.Object
org.apache.sysds.runtime.controlprogram.ProgramBlock
org.apache.sysds.runtime.controlprogram.FunctionProgramBlock
- All Implemented Interfaces:
Types.FunctionBlock,ParseInfo
-
Field Summary
FieldsFields inherited from class org.apache.sysds.runtime.controlprogram.ProgramBlock
_beginColumn, _beginLine, _endColumn, _endLine, _filename, _text, CHECK_MATRIX_PROPERTIES, PRED_VAR -
Constructor Summary
ConstructorsConstructorDescriptionFunctionProgramBlock(Program prog, List<DataIdentifier> inputParams, List<DataIdentifier> outputParams) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgramBlock(ProgramBlock childBlock) voidExecutes this program block (incl recompilation if required).Get the list of child program blocks if nested; otherwise this method returns null.getInputParam(String name) booleanisNested()Indicates if the program block is nested, i.e., if it contains other program blocks (e.g., loops).booleanbooleanvoidvoidsetNondeterministic(boolean flag) voidsetRecompileOnce(boolean flag) Methods inherited from class org.apache.sysds.runtime.controlprogram.ProgramBlock
executePredicate, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getExitInstruction, getFilename, getProgram, getStatementBlock, getText, getThreadID, hasThreadID, isThreadID, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setExitInstruction, setFilename, setParseInfo, setStatementBlock, setText, setThreadID
-
Field Details
-
_functionName
-
_namespace
-
-
Constructor Details
-
FunctionProgramBlock
public FunctionProgramBlock(Program prog, List<DataIdentifier> inputParams, List<DataIdentifier> outputParams)
-
-
Method Details
-
getInputParam
-
getInputParamNames
-
getOutputParamNames
-
getInputParams
-
getOutputParams
-
addProgramBlock
-
setChildBlocks
-
getChildBlocks
Description copied from class:ProgramBlockGet the list of child program blocks if nested; otherwise this method returns null.- Specified by:
getChildBlocksin classProgramBlock- Returns:
- list of program blocks
-
isNested
public boolean isNested()Description copied from class:ProgramBlockIndicates if the program block is nested, i.e., if it contains other program blocks (e.g., loops).- Specified by:
isNestedin classProgramBlock- Returns:
- true if nested
-
execute
Description copied from class:ProgramBlockExecutes this program block (incl recompilation if required).- Specified by:
executein classProgramBlock- Parameters:
ec- execution context
-
setRecompileOnce
public void setRecompileOnce(boolean flag) -
isRecompileOnce
public boolean isRecompileOnce() -
setNondeterministic
public void setNondeterministic(boolean flag) -
isNondeterministic
public boolean isNondeterministic() -
cloneFunctionBlock
- Specified by:
cloneFunctionBlockin interfaceTypes.FunctionBlock
-
printBlockErrorLocation
- Overrides:
printBlockErrorLocationin classProgramBlock
-