public class RightScalarOperator extends ScalarOperator
fn
sparseSafe
Constructor and Description |
---|
RightScalarOperator(ValueFunction p,
double cst) |
RightScalarOperator(ValueFunction p,
double cst,
int numThreads) |
Modifier and Type | Method and Description |
---|---|
double |
executeScalar(double in)
Apply the scalar operator over a given input value.
|
ScalarOperator |
setConstant(double cst) |
ScalarOperator |
setConstant(double cst,
int numThreads) |
getConstant, getNumThreads
public RightScalarOperator(ValueFunction p, double cst)
public RightScalarOperator(ValueFunction p, double cst, int numThreads)
public ScalarOperator setConstant(double cst)
setConstant
in class ScalarOperator
public ScalarOperator setConstant(double cst, int numThreads)
setConstant
in class ScalarOperator
public double executeScalar(double in)
ScalarOperator
executeScalar
in class ScalarOperator
in
- input valueCopyright © 2020 The Apache Software Foundation. All rights reserved.