Class RightScalarOperator
java.lang.Object
org.apache.sysds.runtime.matrix.operators.Operator
org.apache.sysds.runtime.matrix.operators.MultiThreadedOperator
org.apache.sysds.runtime.matrix.operators.ScalarOperator
org.apache.sysds.runtime.matrix.operators.RightScalarOperator
- All Implemented Interfaces:
Serializable
Scalar operator for scalar-matrix operations with scalar
on the right-hand-side.
- See Also:
-
Field Summary
Fields inherited from class org.apache.sysds.runtime.matrix.operators.ScalarOperator
fnFields inherited from class org.apache.sysds.runtime.matrix.operators.Operator
sparseSafe -
Constructor Summary
ConstructorsConstructorDescriptionRightScalarOperator(ValueFunction p, double cst) RightScalarOperator(ValueFunction p, double cst, int numThreads) -
Method Summary
Modifier and TypeMethodDescriptiondoubleexecuteScalar(double in) Apply the scalar operator over a given input value.setConstant(double cst) setConstant(double cst, int numThreads) toString()Methods inherited from class org.apache.sysds.runtime.matrix.operators.ScalarOperator
getConstantMethods inherited from class org.apache.sysds.runtime.matrix.operators.MultiThreadedOperator
getNumThreads, setNumThreads
-
Constructor Details
-
RightScalarOperator
-
RightScalarOperator
-
-
Method Details
-
setConstant
- Specified by:
setConstantin classScalarOperator
-
setConstant
- Specified by:
setConstantin classScalarOperator
-
executeScalar
public double executeScalar(double in) Description copied from class:ScalarOperatorApply the scalar operator over a given input value.- Specified by:
executeScalarin classScalarOperator- Parameters:
in- input value- Returns:
- result
-
toString
-