What I do not yet understand, is why there are two dimension parameters. If
this can indeed be used with different source and target dimensions, then I
think the documentation should explain what happens if the dimensions are
unequal, because I cannot think of a "standard" behaviour for that.