Class LeftScalarOperator
- 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.LeftScalarOperator
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class LeftScalarOperator extends ScalarOperator Scalar operator for scalar-matrix operations with scalar on the left-hand-side.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.sysds.runtime.matrix.operators.ScalarOperatorfn
 - 
Fields inherited from class org.apache.sysds.runtime.matrix.operators.OperatorsparseSafe
 
- 
 - 
Constructor SummaryConstructors Constructor Description LeftScalarOperator(ValueFunction p, double cst)LeftScalarOperator(ValueFunction p, double cst, int numThreads)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleexecuteScalar(double in)Apply the scalar operator over a given input value.ScalarOperatorsetConstant(double cst)ScalarOperatorsetConstant(double cst, int numThreads)- 
Methods inherited from class org.apache.sysds.runtime.matrix.operators.ScalarOperatorgetConstant
 - 
Methods inherited from class org.apache.sysds.runtime.matrix.operators.MultiThreadedOperatorgetNumThreads, setNumThreads
 
- 
 
- 
- 
- 
Constructor Detail- 
LeftScalarOperatorpublic LeftScalarOperator(ValueFunction p, double cst) 
 - 
LeftScalarOperatorpublic LeftScalarOperator(ValueFunction p, double cst, int numThreads) 
 
- 
 - 
Method Detail- 
setConstantpublic ScalarOperator setConstant(double cst, int numThreads) - Specified by:
- setConstantin class- ScalarOperator
 
 - 
setConstantpublic ScalarOperator setConstant(double cst) - Specified by:
- setConstantin class- ScalarOperator
 
 - 
executeScalarpublic double executeScalar(double in) Description copied from class:ScalarOperatorApply the scalar operator over a given input value.- Specified by:
- executeScalarin class- ScalarOperator
- Parameters:
- in- input value
- Returns:
- result
 
 
- 
 
-