Return an empty array with the correct number of dimensions.
Added docstring for swapaxes test.