aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/tensor/functions
Commit message (Collapse)AuthorAgeFilesLines
* Minor cleanupJon Bratseth2024-01-282-6/+6
|
* Make tensor addresses integer based instead of as strings.Henning Baldersheim2024-01-254-41/+31
| | | | | Positive numbers are direct indexes, while strings that does not represent numbers are enumerated and represented with negative integers.
* - Replace usage of putIfAbsent and manual optimizes get-if-not-put with ↵Henning Baldersheim2024-01-222-8/+5
| | | | computeIfAbsent.
* Extract label once.Henning Baldersheim2024-01-221-2/+3
|
* - Add and use getAsDouble method returning a Double object. It behaves ↵Henning Baldersheim2024-01-212-8/+11
| | | | | | | similar to Map.get(key). null indicates no value present. Then you avoid 2 lookups to first check if a value is present, and then to fetch that value. This does wonders when it is backed by a map and hashCode/equals are relatively expensive.
* - Avoid expensive iteration with hash lookups just for sanity checking in ↵Henning Baldersheim2024-01-211-3/+5
| | | | | | private MixedTensor constructor. - Refactor so there is less need for sanity checks, and do them in the buiulder instead.
* Cache size of intersected sets, as they are recomputed every time.Henning Baldersheim2024-01-211-5/+7
|
* Make the TensorType.hasXX public and use them other places too.Henning Baldersheim2024-01-213-7/+7
|
* Skip copying of array when there is no reuse possible.Henning Baldersheim2024-01-183-7/+10
|
* - Make an tensor.impl package that can be used from other tensor packages ↵Henning Baldersheim2024-01-181-1/+2
| | | | | | | | | allowing bypass of defensive strategies in the public interfaces. - Move private static inner classes TensorAddress.NumericTensorAddress and TensorAddress.StringTensorAddress to tensor.impl package. - Use the StringTensorAddress.of from Reduce to avoid defensive array copy.
* - Add sizeAsInt to allow for safe cast from long to int of the size of a tensor.Henning Baldersheim2024-01-181-1/+1
|
* Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java Henning Baldersheim2024-01-181-1/+1
| | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com>
* Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java Henning Baldersheim2024-01-181-1/+1
| | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com>
* Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java Henning Baldersheim2024-01-181-1/+1
| | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com>
* Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java Henning Baldersheim2024-01-181-1/+1
| | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com>
* Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java Henning Baldersheim2024-01-181-1/+1
| | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com>
* Reverse the problem from indexes-to-remove to indexes-to-keep. Then you ↵Henning Baldersheim2024-01-171-13/+19
| | | | avoid hash lookup in inner loop.
* Create set of indexes to remove once.Henning Baldersheim2024-01-171-4/+9
|
* Allocate a larger hashtable to avoid expensive resize and associated ↵Henning Baldersheim2024-01-171-1/+1
| | | | equals/hash method calls.
* Add string indicators for dimensions with spaces in slice tostringLester Solbakken2023-12-151-3/+4
|
* fix toString() and dimensionNames()Arne Juul2023-11-022-3/+3
|
* add reference implementation of MapSubspacesArne Juul2023-11-023-1/+202
|
* Update copyrightJon Bratseth2023-10-0932-32/+32
|
* - Use equals when comparing Optional<Long>Henning Baldersheim2023-09-133-3/+0
| | | | - Minor cleanup
* fix dimension size comparisonArne Juul2023-09-132-2/+2
|
* override type resolving to do some sanity checkingArne Juul2023-06-262-2/+62
|
* add cosine_similarityArne Juul2023-06-261-0/+63
|
* add class comment and test expansionArne Juul2023-06-261-0/+2
|
* add euclidean_distanceArne Juul2023-06-261-0/+57
|
* Build with jdk20Jon Bratseth2023-04-171-1/+1
|
* add withTransformedFunctions() to TensorFunction APIArne Juul2023-03-203-0/+47
|
* expose embedded expressions from DynamicTensorArne Juul2023-03-171-0/+19
|
* * make InputRecorder handle slice with embedded expressionsArne Juul2023-03-161-0/+9
| | | | * special handling for Generate and Slice in BindingExtractor
* join dimensions must equal common dimensions for optimizationArne Juul2023-03-161-0/+2
|
* Revert "Revert collect(Collectors.toList())"Henning Baldersheim2022-12-044-5/+5
|
* Revert collect(Collectors.toList())Henning Baldersheim2022-12-044-5/+5
|
* collect(Collectors.toList()) -> toList()Henning Baldersheim2022-12-024-5/+5
|
* Reduce the simple usage of guava where java has caught upHenning Baldersheim2022-11-3013-91/+49
|
* Return X-Vespa-Ignored-Fields if fields were ignoredJon Bratseth2022-10-061-2/+2
|
* Compute hash without serializing to stringJon Bratseth2022-03-0125-213/+427
|
* Merge pull request #21459 from vespa-engine/bratseth/slice-type-resolvingJon Bratseth2022-02-281-1/+1
|\ | | | | Pass type context
| * Pass type contextJon Bratseth2022-02-281-1/+1
| |
* | Nicer error messageJon Bratseth2022-02-281-5/+9
|/
* Resolve slice dimensionJon Bratseth2022-02-1626-50/+79
|
* Allow quoted string slice labelsJon Bratseth2022-02-151-2/+3
|
* Add custom `@Beta` annotationBjørn Christian Seime2021-12-031-1/+1
| | | | Replace use of Guava's `com.google.common.annotations.Beta` with custom annotation.
* Update 2020 Oath copyrights.gjoranv2021-10-271-1/+1
|
* Update 2019 Oath copyrights.gjoranv2021-10-273-3/+3
|
* Update Verizon Media copyright notices.gjoranv2021-10-071-1/+1
|
* Update 2018 copyright notices.gjoranv2021-10-071-1/+1
|