Skip to content

permute_axes is not correct #1589

Description

@shumpohl

Using ndarray==0.17.2, the following code

let mut a = Array4::<u8>::zeros((1, 2, 3, 4));
a.permute_axes([3, 0, 1, 2]);
assert_eq!(a.shape(), &[4, 1, 2, 3]);

fails with

assertion `left == right` failed
  left: [4, 3, 2, 1]
 right: [4, 1, 2, 3]

see playground.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions