diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-11-22 10:46:03 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-11-22 10:46:03 +0100 |
commit | 0303d397a8b00c48a576a5b0f011c2d6986b571c (patch) | |
tree | cb21ccab57a215bf1405c465f6ff924d4f98c3e2 /vespajlib/src/main/java/com/yahoo/tensor/functions/CompositeTensorFunction.java | |
parent | db153836b44fefb04bfa3c32ec5e0499c7141e37 (diff) |
More functions
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/functions/CompositeTensorFunction.java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/functions/CompositeTensorFunction.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/functions/CompositeTensorFunction.java b/vespajlib/src/main/java/com/yahoo/tensor/functions/CompositeTensorFunction.java index e1188f5f0cd..e564e1d6f25 100644 --- a/vespajlib/src/main/java/com/yahoo/tensor/functions/CompositeTensorFunction.java +++ b/vespajlib/src/main/java/com/yahoo/tensor/functions/CompositeTensorFunction.java @@ -1,5 +1,7 @@ package com.yahoo.tensor.functions; +import com.yahoo.tensor.Tensor; + /** * A composite tensor function is a tensor function which can be expressed (less tersely) * as a tree of primitive tensor functions. @@ -7,4 +9,9 @@ package com.yahoo.tensor.functions; * @author bratseth */ public abstract class CompositeTensorFunction extends TensorFunction { + + /** Executes this by first converting it to a primitive function */ + @Override + public final Tensor execute() { return toPrimitive().execute(); } + } |