public BoundBuilder fill(float[] values) {
            long index = 0;
            for (float value : values) {
                cellByDirectIndex(index++, value);
            }
            return this;
        }
A bound builder can create the double array directly
vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java