diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-08 17:22:57 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-05-08 17:22:57 +0200 |
commit | 75bbf9ef27e9bc41a7bd3a648e637f44b44308ac (patch) | |
tree | 4977aaa996059d7040c5bff65eb1ab3402f75e25 /vespajlib | |
parent | 1f33495b8170f41f8d4a6a53d17e4471a464a8a0 (diff) |
Parse nested arrays
Diffstat (limited to 'vespajlib')
-rw-r--r-- | vespajlib/abi-spec.json | 5 | ||||
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/vespajlib/abi-spec.json b/vespajlib/abi-spec.json index aea1c84fa76..5e6168e71f7 100644 --- a/vespajlib/abi-spec.json +++ b/vespajlib/abi-spec.json @@ -787,7 +787,10 @@ "public", "abstract" ], - "methods": [], + "methods": [ + "public com.yahoo.tensor.IndexedTensor$BoundBuilder fill(float[])", + "public com.yahoo.tensor.IndexedTensor$BoundBuilder fill(double[])" + ], "fields": [] }, "com.yahoo.tensor.IndexedTensor$Builder": { diff --git a/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java b/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java index 89eefeced56..76629a20b2f 100644 --- a/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java +++ b/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java @@ -438,7 +438,7 @@ public abstract class IndexedTensor implements Tensor { this.sizes = sizes; } - BoundBuilder fill(float[] values) { + public BoundBuilder fill(float[] values) { long index = 0; for (float value : values) { cellByDirectIndex(index++, value); @@ -446,7 +446,7 @@ public abstract class IndexedTensor implements Tensor { return this; } - BoundBuilder fill(double[] values) { + public BoundBuilder fill(double[] values) { long index = 0; for (double value : values) { cellByDirectIndex(index++, value); |