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 Summary
Fields Modifier and Type Field Description boolean
commutative
ValueFunction
fn
-
Fields inherited from class org.apache.sysds.runtime.matrix.operators.Operator
sparseSafe
-
-
Constructor Summary
Constructors Constructor Description BinaryOperator(ValueFunction p)
BinaryOperator(ValueFunction p, int k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Types.OpOp2
getBinaryOperatorOpOp2()
Method for getting the hop binary operator type for a given function object.boolean
isCommutative()
boolean
isRowSafeLeft(double[] row)
boolean
isRowSafeRight(double[] row)
String
toString()
-
Methods inherited from class org.apache.sysds.runtime.matrix.operators.MultiThreadedOperator
getNumThreads, setNumThreads
-
-
-
-
Field Detail
-
fn
public final ValueFunction fn
-
commutative
public final boolean commutative
-
-
Constructor Detail
-
BinaryOperator
public BinaryOperator(ValueFunction p)
-
BinaryOperator
public BinaryOperator(ValueFunction p, int k)
-
-
Method Detail
-
getBinaryOperatorOpOp2
public 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
-
isCommutative
public boolean isCommutative()
-
isRowSafeLeft
public boolean isRowSafeLeft(double[] row)
-
isRowSafeRight
public boolean isRowSafeRight(double[] row)
-
-