private String asString(List<Tensor.Cell> cells, TensorType type) {
        return cells.stream().map(cell -> cell.toString(type)).collect(Collectors.joining(", "));
    }
Test the same computation made in various ways which are implemented with special-case optimizations
vespajlib/src/test/java/com/yahoo/tensor/TensorTestCase.java