Package com.yahoo.tensor.functions
Interface ScalarFunction<NAMETYPE extends Name>
- All Superinterfaces:
Function<EvaluationContext<NAMETYPE>,
Double>
public interface ScalarFunction<NAMETYPE extends Name>
extends Function<EvaluationContext<NAMETYPE>,Double>
A function which returns a scalar
- Author:
- bratseth
-
Method Summary
Modifier and TypeMethodDescriptionapply
(EvaluationContext<NAMETYPE> context) default Optional<TensorFunction<NAMETYPE>>
Returns this as a tensor function, or empty if it cannot be represented as a tensor functiondefault String
toString
(ToStringContext<NAMETYPE> context)