Complete the broadcasting compatibility rule: align from the right; dims are compatible when equal or when one is 1.