The source array, all subscript arrays, and the mask array, if defined, must have the same shape (see section 4.4).