If the rth subscript array is defined it must be rank-1 and its extent must be M, where M is the extent of the destination array in its rth dimension.
If the rth subscript array is undefined (because subs [r] is null) the destination and source arrays must have the same extent in their rth dimensions.
The mask array must have the same shape as the destination array (see section 4.4).