private static Indexes of(DimensionSizes sourceSizes, DimensionSizes iterateSizes, List<Integer> iterateDimensions, long size) {
            return of(sourceSizes, iterateSizes, iterateDimensions, new long[iterateSizes.dimensions()], size);
        }
Create indexes from a type containing bound indexed dimensions only.

@throws IllegalStateException if the type contains dimensions which are not bound and indexed
vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java