public static DirectIndexedAddress of(DimensionSizes sizes) {
        return new DirectIndexedAddress(sizes);
    }
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.getDirectIndex();
       long stride = addr.getStride(dimension)
       i = 0...size_of_dimension
           double value = tensor.get(base + i * stride);

@author baldersheim
vespajlib/src/main/java/com/yahoo/tensor/DirectIndexedAddress.java