blob: 7e74da1a9a12252ace18cd0e91348a42bf225e19 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package com.yahoo.tensor.functions;
import com.google.common.annotations.Beta;
import com.yahoo.tensor.Tensor;
import com.yahoo.tensor.evaluation.EvaluationContext;
/**
* A composite tensor function is a tensor function which can be expressed (less tersely)
* as a tree of primitive tensor functions.
*
* @author bratseth
*/
@Beta
public abstract class CompositeTensorFunction extends TensorFunction {
/** Evaluates this by first converting it to a primitive function */
@Override
public final Tensor evaluate(EvaluationContext context) { return toPrimitive().evaluate(context); }
}
|