ndarray icon indicating copy to clipboard operation
ndarray copied to clipboard

Reversing and permuting axes do not require consuming an array

Open akern40 opened this issue 1 year ago • 0 comments

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?

akern40 avatar Oct 20 '24 04:10 akern40