public long[] shape() {
        long[] result = new long[dimensionSizes.dimensions()];
        for (int i = 0; i < result.length; ++i) {
            result[i] = dimensionSizes.size(i);
        }
        return result;
    }
Returns the value at the given <i>standard value order</i> index as a float.

@param valueIndex the direct index into the underlying data.
@throws IllegalArgumentException if index is out of bounds
vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java