Using the number of padded DMs for the first dimension.