Skip to content

Conversation

nbidler
Copy link

@nbidler nbidler commented Sep 2, 2025

See issue 28247. Made explicit that 'C' and 'F' can copy input to ensure output format, 'A' does not ensure contiguous output. Kept 'K' the same because all the stride analysis/flag-handling behavior should be extraneous to the end user. See PR 29606. Member melissawm approved initially, then Member @seberg requested "can you see which other places have the identical comment, we should change them all (where applicable" so additional changes were made to the 'order' parameter of asanyarray and asarray_chkfinite because their descriptions were identical to asarray and behavior was very similar to asarray. This is a new PR that includes initial changes and the requested additions.

nbidler and others added 11 commits August 14, 2025 23:39
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.
See 28247. To differentiate between 'A' and 'K', made explicit
that 'A' will not ensure the output is contiguous. 'K' has more
complex behavior related to flags and stride detection, but will
try to keep the output as close as possible to the input.
See 28247. Made explicit that 'C' and 'F' can copy input to output,
'A' does not ensure contiguous output.
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