ndarray
ndarray copied to clipboard
Reversing and permuting axes do not require consuming an array
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?