private TensorAddress remaining(TensorType subspaceType, TensorAddress address, TensorType type) {
        TensorAddress.Builder b = new TensorAddress.Builder(subspaceType);
        for (int i = 0; i < address.size(); i++) {
            String dimension = type.dimensions().get(i).name();
            if (subspaceType.dimension(type.dimensions().get(i).name()).isPresent())
                b.add(dimension, address.objectLabel(i));
        }
        return b.build();
    }
Returns the subset of the given address which is present in the subspace type
vespajlib/src/main/java/com/yahoo/tensor/functions/Slice.java