diff options
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/DirectIndexedAddress.java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/DirectIndexedAddress.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/DirectIndexedAddress.java b/vespajlib/src/main/java/com/yahoo/tensor/DirectIndexedAddress.java index 80cb545238c..37752361876 100644 --- a/vespajlib/src/main/java/com/yahoo/tensor/DirectIndexedAddress.java +++ b/vespajlib/src/main/java/com/yahoo/tensor/DirectIndexedAddress.java @@ -3,7 +3,7 @@ package com.yahoo.tensor; /** * Utility class for efficient access and iteration along dimensions in Indexed tensors. * Usage: Use setIndex to lock the indexes of the dimensions that don't change in this iteration. - * long base = addr.getIndex(); + * long base = addr.getDirectIndex(); * long stride = addr.getStride(dimension) * i = 0...size_of_dimension * double value = tensor.get(base + i * stride); @@ -30,7 +30,7 @@ public final class DirectIndexedAddress { indexes[dimension] = index; } /** Retrieve the index that can be used for direct lookup in an indexed tensor. */ - public long getIndex() { return directIndex; } + public long getDirectIndex() { return directIndex; } /** returns the stride to be used for the given dimension */ public long getStride(int dimension) { return sizes.productOfDimensionsAfter(dimension); |