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
public class RightScalarOperator extends ScalarOperator
Scalar operator for scalar-matrix operations with scalar on the right-hand-side.- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.apache.sysds.runtime.matrix.operators.ScalarOperator
fn 
- 
Fields inherited from class org.apache.sysds.runtime.matrix.operators.Operator
sparseSafe 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RightScalarOperator(ValueFunction p, double cst)RightScalarOperator(ValueFunction p, double cst, int numThreads) 
- 
Method Summary
All 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)StringtoString()- 
Methods inherited from class org.apache.sysds.runtime.matrix.operators.ScalarOperator
getConstant 
- 
Methods inherited from class org.apache.sysds.runtime.matrix.operators.MultiThreadedOperator
getNumThreads, setNumThreads 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
RightScalarOperator
public RightScalarOperator(ValueFunction p, double cst)
 
- 
RightScalarOperator
public RightScalarOperator(ValueFunction p, double cst, int numThreads)
 
 - 
 
- 
Method Detail
- 
setConstant
public ScalarOperator setConstant(double cst)
- Specified by:
 setConstantin classScalarOperator
 
- 
setConstant
public ScalarOperator setConstant(double cst, int numThreads)
- 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
 
 
 - 
 
 -