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