Class BinaryOperator
- java.lang.Object
- 
- org.apache.sysds.runtime.matrix.operators.Operator
- 
- org.apache.sysds.runtime.matrix.operators.MultiThreadedOperator
- 
- org.apache.sysds.runtime.matrix.operators.BinaryOperator
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class BinaryOperator extends MultiThreadedOperator - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description booleancommutativeValueFunctionfn- 
Fields inherited from class org.apache.sysds.runtime.matrix.operators.OperatorsparseSafe
 
- 
 - 
Constructor SummaryConstructors Constructor Description BinaryOperator(ValueFunction p)BinaryOperator(ValueFunction p, int k)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Types.OpOp2getBinaryOperatorOpOp2()Method for getting the hop binary operator type for a given function object.booleanisCommutative()booleanisRowSafeLeft(double[] row)booleanisRowSafeRight(double[] row)StringtoString()- 
Methods inherited from class org.apache.sysds.runtime.matrix.operators.MultiThreadedOperatorgetNumThreads, setNumThreads
 
- 
 
- 
- 
- 
Field Detail- 
fnpublic final ValueFunction fn 
 - 
commutativepublic final boolean commutative 
 
- 
 - 
Constructor Detail- 
BinaryOperatorpublic BinaryOperator(ValueFunction p) 
 - 
BinaryOperatorpublic BinaryOperator(ValueFunction p, int k) 
 
- 
 - 
Method Detail- 
getBinaryOperatorOpOp2public Types.OpOp2 getBinaryOperatorOpOp2() Method for getting the hop binary operator type for a given function object. This is used in order to use a common code path for consistency between compiler and runtime.- Returns:
- binary operator type for a function object
 
 - 
isCommutativepublic boolean isCommutative() 
 - 
isRowSafeLeftpublic boolean isRowSafeLeft(double[] row) 
 - 
isRowSafeRightpublic boolean isRowSafeRight(double[] row) 
 
- 
 
-