Currently, reversed_axes and permuted_axes take mut self and self, respectively. However, neither of them "consume" the array, since they are just modifying the shape and strides. Can these be changed to alter the arrays in-place? For a transition, perhaps we could provide reverse_axes and permute_axes as inplace variants, and either keep or deprecate these two methods?
Currently,
reversed_axesandpermuted_axestakemut selfandself, respectively. However, neither of them "consume" the array, since they are just modifying the shape and strides. Can these be changed to alter the arrays in-place? For a transition, perhaps we could providereverse_axesandpermute_axesas inplace variants, and either keep or deprecate these two methods?