@Override
    public Tensor evaluate(EvaluationContext<NAMETYPE> context) {
        Tensor.Builder builder = Tensor.Builder.of(type);
        IndexedTensor.Indexes indexes = IndexedTensor.Indexes.of(dimensionSizes(type));
        GenerateEvaluationContext generateContext = new GenerateEvaluationContext(type, context);
        for (int i = 0; i < indexes.size(); i++) {
            indexes.next();
            builder.cell(generateContext.apply(indexes), indexes.indexesForReading());
        }
        return builder.build();
    }
Creates a generated tensor from a bound function

@param type the type of the tensor
@param generator the function generating values from a list of numbers specifying the indexes of the
                 tensor cell which will receive the value
@throws IllegalArgumentException if any of the tensor dimensions are not indexed bound
vespajlib/src/main/java/com/yahoo/tensor/functions/Generate.java