also allow to transform non-square matrices