private void assertCellTypeResult(TensorType.Value valueType, String type1, String type2) {
        Tensor t1 = Tensor.from("tensor<" + type1 + ">(x[1]):[3] }");
        Tensor t2 = Tensor.from("tensor<" + type2 + ">(x[1]):[5] }");
        assertEquals(valueType, t1.multiply(t2).type().valueType());
        assertEquals(valueType, t2.multiply(t1).type().valueType());
    }
Test the same computation made in various ways which are implemented with special-case optimizations
vespajlib/src/test/java/com/yahoo/tensor/TensorTestCase.java