public TensorAddress mappedPartialAddress(TensorType mappedType, List<TensorType.Dimension> dimensions) {
        if (dimensions.size() != size())
            throw new IllegalArgumentException("Tensor type of " + this + " is not the same size as " + this);
        TensorAddress.Builder builder = new TensorAddress.Builder(mappedType);
        for (int i = 0; i < dimensions.size(); ++i) {
            TensorType.Dimension dimension = dimensions.get(i);
            if ( ! dimension.isIndexed())
                builder.add(dimension.name(), objectLabel(i));
        }
        return builder.build();
    }
Returns an address containing the mapped dimensions of this.

@param mappedType the type of the mapped subset of the type this is an address of;
                  which is also the type of the returned address
@param dimensions all the dimensions of the type this is an address of
vespajlib/src/main/java/com/yahoo/tensor/TensorAddress.java