private static boolean hasSingleIndexedDimension(Tensor tensor) {
        return tensor.type().dimensions().size() == 1 && tensor.type().dimensions().get(0).isIndexed();
    }
Returns the type resulting from applying Merge to the two given types
vespajlib/src/main/java/com/yahoo/tensor/functions/Merge.java