Class TensorFunctionNode.ExpressionTensorFunction
java.lang.Object
com.yahoo.tensor.functions.TensorFunction<NAMETYPE>
com.yahoo.tensor.functions.PrimitiveTensorFunction<Reference>
com.yahoo.searchlib.rankingexpression.rule.TensorFunctionNode.ExpressionTensorFunction
- Enclosing class:
- TensorFunctionNode
public static class TensorFunctionNode.ExpressionTensorFunction
extends com.yahoo.tensor.functions.PrimitiveTensorFunction<Reference>
A tensor function implemented by an expression.
This allows us to pass expressions as tensor function arguments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.tensor.TensorinthashCode()com.yahoo.tensor.functions.PrimitiveTensorFunction<Reference>toString()com.yahoo.tensor.TensorTypecom.yahoo.tensor.functions.TensorFunction<Reference>withArguments(List<com.yahoo.tensor.functions.TensorFunction<Reference>> arguments) Methods inherited from class com.yahoo.tensor.functions.TensorFunction
evaluate, withTransformedFunctions
-
Constructor Details
-
ExpressionTensorFunction
-
-
Method Details
-
wrappedExpression
-
arguments
- Specified by:
argumentsin classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
withArguments
public com.yahoo.tensor.functions.TensorFunction<Reference> withArguments(List<com.yahoo.tensor.functions.TensorFunction<Reference>> arguments) - Specified by:
withArgumentsin classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
toPrimitive
- Specified by:
toPrimitivein classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
type
- Specified by:
typein classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
asScalarFunction
- Overrides:
asScalarFunctionin classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
evaluate
public com.yahoo.tensor.Tensor evaluate(com.yahoo.tensor.evaluation.EvaluationContext<Reference> context) - Specified by:
evaluatein classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
toString
- Overrides:
toStringin classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
hashCode
public int hashCode()- Specified by:
hashCodein classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
toString
- Specified by:
toStringin classcom.yahoo.tensor.functions.TensorFunction<Reference>
-