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) |
void |
setNumThreads(int k) |
public final ValueFunction fn
public ScalarOperator(ValueFunction p, double cst)
public double getConstant()
public void setNumThreads(int k)
public int getNumThreads()
public abstract ScalarOperator setConstant(double cst)
public abstract ScalarOperator setConstant(double cst, int numThreads)
public abstract double executeScalar(double in)
in
- input valueCopyright © 2021 The Apache Software Foundation. All rights reserved.