Skip to content

DOC: clarify numpy.asarray parameter 'order' meanings #29571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nbidler
Copy link

@nbidler nbidler commented Aug 15, 2025

See 28247. Changed description of options for parameter order - made explicit that 'C' and 'F' give contiguous results, and 'A' will give results equivalent to 'F' if the input is Fortran-contiguous OR non-contiguous, but if the desired output is non-contiguous Fortran-style then the user also needs to set copy to True.

Changed description to make explicit that setting 'A' requires
user to set 'copy' to 'True' to get the described behavior.
Made explicit that 'A' has two cases where it acts as
equivalent to setting 'F'. See 28247.
See 28247. Changed description of 'order' to make
the behavior of 'A' more explicit and how to cause it to
preserve non-contiguous Fortran-order. Changed description
of 'C' and 'F' to clarify that output will be contiguous.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant