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
-
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.tensor.Tensor
int
hashCode()
com.yahoo.tensor.functions.PrimitiveTensorFunction<Reference>
toString()
com.yahoo.tensor.TensorType
com.yahoo.tensor.functions.TensorFunction<Reference>
withArguments
(List<com.yahoo.tensor.functions.TensorFunction<Reference>> arguments) Methods inherited from class com.yahoo.tensor.functions.TensorFunction
evaluate
-
Constructor Details
-
ExpressionTensorFunction
-
-
Method Details
-
arguments
- Specified by:
arguments
in 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:
withArguments
in classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
toPrimitive
- Specified by:
toPrimitive
in classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
type
- Specified by:
type
in classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
asScalarFunction
- Overrides:
asScalarFunction
in classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
evaluate
public com.yahoo.tensor.Tensor evaluate(com.yahoo.tensor.evaluation.EvaluationContext<Reference> context) - Specified by:
evaluate
in classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
toString
- Overrides:
toString
in classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
hashCode
public int hashCode()- Specified by:
hashCode
in classcom.yahoo.tensor.functions.TensorFunction<Reference>
-
toString
- Specified by:
toString
in classcom.yahoo.tensor.functions.TensorFunction<Reference>
-