Package com.yahoo.tensor.functions
Class XwPlusB<NAMETYPE extends Name>
java.lang.Object
com.yahoo.tensor.functions.TensorFunction<NAMETYPE>
com.yahoo.tensor.functions.CompositeTensorFunction<NAMETYPE>
com.yahoo.tensor.functions.XwPlusB<NAMETYPE>
- Author:
- bratseth
-
Constructor Summary
ConstructorsConstructorDescriptionXwPlusB(TensorFunction<NAMETYPE> x, TensorFunction<NAMETYPE> w, TensorFunction<NAMETYPE> b, String dimension) -
Method Summary
Modifier and TypeMethodDescriptionReturns the function arguments of this node in the order they are appliedinthashCode()Returns a hashcode computed from the data in thisTranslate this function - and all of its arguments recursively - to a tree of primitive functions only.toString(ToStringContext<NAMETYPE> context) Return a string representation of this context.withArguments(List<TensorFunction<NAMETYPE>> arguments) Returns a copy of this tensor function with the arguments replaced by the given list of arguments.Methods inherited from class com.yahoo.tensor.functions.CompositeTensorFunction
evaluate, typeMethods inherited from class com.yahoo.tensor.functions.TensorFunction
asScalarFunction, evaluate, toString, withTransformedFunctions
-
Constructor Details
-
XwPlusB
public XwPlusB(TensorFunction<NAMETYPE> x, TensorFunction<NAMETYPE> w, TensorFunction<NAMETYPE> b, String dimension)
-
-
Method Details
-
arguments
Description copied from class:TensorFunctionReturns the function arguments of this node in the order they are applied- Specified by:
argumentsin classTensorFunction<NAMETYPE extends Name>
-
withArguments
Description copied from class:TensorFunctionReturns a copy of this tensor function with the arguments replaced by the given list of arguments.- Specified by:
withArgumentsin classTensorFunction<NAMETYPE extends Name>
-
toPrimitive
Description copied from class:TensorFunctionTranslate this function - and all of its arguments recursively - to a tree of primitive functions only.- Specified by:
toPrimitivein classTensorFunction<NAMETYPE extends Name>- Returns:
- a tree of primitive functions implementing this
-
toString
Description copied from class:TensorFunctionReturn a string representation of this context.- Specified by:
toStringin classTensorFunction<NAMETYPE extends Name>- Parameters:
context- a context which must be passed to all nested functions when requesting the string value
-
hashCode
public int hashCode()Description copied from class:TensorFunctionReturns a hashcode computed from the data in this- Specified by:
hashCodein classTensorFunction<NAMETYPE extends Name>
-