Skip to content

Reversing and permuting axes do not require consuming an array #1443

Closed
@akern40

Description

@akern40

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions