public int length() {
            return iterator.length;
        }
Tests if there is exactly one reduce dimension and it is the innermost
dimension in both tensors.
vespajlib/src/main/java/com/yahoo/tensor/functions/ReduceJoin.java