Class LessThan
java.lang.Object
org.apache.sysds.runtime.functionobjects.FunctionObject
org.apache.sysds.runtime.functionobjects.ValueFunction
org.apache.sysds.runtime.functionobjects.ValueComparisonFunction
org.apache.sysds.runtime.functionobjects.LessThan
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(boolean in1, boolean in2) booleancompare(double in1, double in2) booleancompare(long in1, long in2) booleandoubleexecute(double in1, double in2) execute() method that returns double is required since current map-reduce runtime can only produce matrices of doubles.static LessThanbooleanisBinary()Methods inherited from class org.apache.sysds.runtime.functionobjects.ValueFunction
requiresCorrection, toString
-
Method Details
-
getLessThanFnObject
-
execute
public double execute(double in1, double in2) execute() method that returns double is required since current map-reduce runtime can only produce matrices of doubles. This method is used on MR side to perform comparisons on matrices like A<B and A<2.5- Overrides:
executein classFunctionObject
-
compare
public boolean compare(double in1, double in2) - Specified by:
comparein classValueComparisonFunction
-
compare
public boolean compare(long in1, long in2) - Specified by:
comparein classValueComparisonFunction
-
compare
public boolean compare(boolean in1, boolean in2) - Specified by:
comparein classValueComparisonFunction
-
compare
- Specified by:
comparein classValueComparisonFunction
-
isBinary
public boolean isBinary()- Overrides:
isBinaryin classValueFunction
-