Class ScalarOperator
java.lang.Object
org.apache.sysds.runtime.matrix.operators.Operator
org.apache.sysds.runtime.matrix.operators.MultiThreadedOperator
org.apache.sysds.runtime.matrix.operators.ScalarOperator
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LeftScalarOperator,RightScalarOperator
Base class for all scalar operators.
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.sysds.runtime.matrix.operators.Operator
sparseSafe -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleexecuteScalar(double in) Apply the scalar operator over a given input value.doubleabstract ScalarOperatorsetConstant(double cst) abstract ScalarOperatorsetConstant(double cst, int numThreads) Methods inherited from class org.apache.sysds.runtime.matrix.operators.MultiThreadedOperator
getNumThreads, setNumThreads
-
Field Details
-
fn
-
-
Constructor Details
-
ScalarOperator
-
-
Method Details
-
getConstant
public double getConstant() -
setConstant
-
setConstant
-
executeScalar
public abstract double executeScalar(double in) Apply the scalar operator over a given input value.- Parameters:
in- input value- Returns:
- result
-