diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-01-18 21:36:56 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-01-18 21:36:56 +0100 |
commit | 2a66025fe93b39f8d87201ceafe48345f7a4dc3f (patch) | |
tree | 9db3169e523ed9812b8047e00f5ce0f8ce4a753c /vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java | |
parent | 254862ddf5d55923232abef00e6c2fff32bf463b (diff) |
Construct array right away instead of going via a single element list and the java stream api.
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java b/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java index 6a879fa533b..b7ced9258b7 100644 --- a/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java +++ b/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java @@ -90,7 +90,7 @@ public abstract class IndexedTensor implements Tensor { * @throws IllegalArgumentException if any of the indexes are out of bound or a wrong number of indexes are given */ public double get(long ... indexes) { - return get((int)toValueIndex(indexes, dimensionSizes)); + return get(toValueIndex(indexes, dimensionSizes)); } /** |