@Override
    public int compareTo(TensorAddress other) {
        // TODO: Formal issue (only): Ordering with different address sizes
        for (int i = 0; i < size(); i++) {
            int elementComparison = this.label(i).compareTo(other.label(i)); // TODO: Faster with numeric labels?
            if (elementComparison != 0) return elementComparison;
        }
        return 0;
    }
Returns the i'th label in this as a long.
Prefer this if you know that this is a numeric address, but not otherwise.

@throws IllegalArgumentException if there is no label at this index
vespajlib/src/main/java/com/yahoo/tensor/TensorAddress.java