diff options
author | Jon Bratseth <bratseth@oath.com> | 2020-01-06 10:25:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 10:25:30 +0100 |
commit | b95af9b717705fff28272a1ea5e0adcf97597402 (patch) | |
tree | 254fe25f613fa3727cce888e03ffcd48bbc8ab93 /vespajlib/src/main/java/com/yahoo/tensor/TensorType.java | |
parent | 234be16d4d01656ee7b9bdc0917d31bef9772f69 (diff) | |
parent | f9f76ab6dc479dfbbaa2b7520cdb0d163be9b7dd (diff) |
Merge pull request #11637 from vespa-engine/bratseth/tensor-short-form-tostring
More tensor short forms in Tensor.toString()
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/TensorType.java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/TensorType.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java b/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java index 240681bad5a..aeed8c33093 100644 --- a/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java +++ b/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java @@ -312,6 +312,9 @@ public class TensorType { /** Returns true if this is an indexed bound or unbound type */ public boolean isIndexed() { return type() == Type.indexedBound || type() == Type.indexedUnbound; } + /** Returns true if this is of the mapped type */ + public boolean isMapped() { return type() == Type.mapped; } + /** * Returns the dimension resulting from combining two dimensions having the same name but possibly different * types: |