Skip to content

Add copy kwarg support to reshape #386

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

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Add copy kwarg support to reshape #386

merged 1 commit into from
Feb 16, 2022

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Feb 7, 2022

This PR

  • adds support for a copy kwarg to reshape. This has a similar specification as in asarray. The addition of a copy kwarg support helps address copy-view concerns and accommodates scenarios where returning a view is not possible. This change was discussed in the consortium meeting held on January 6, 2022.

@kgryte kgryte added API change Changes to existing functions or objects in the API. topic: Manipulation Array manipulation and transformation. API extension Adds new functions or objects to the API. and removed API change Changes to existing functions or objects in the API. labels Feb 7, 2022
Copy link
Member

@honno honno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kgryte
Copy link
Contributor Author

kgryte commented Feb 16, 2022

Thanks, @honno!

@kgryte
Copy link
Contributor Author

kgryte commented Feb 16, 2022

As this change was agreed upon during the consortium meeting held on January 6, 2022, and the change matches the semantics of asarray, will merge. Any further changes can be addressed in follow-up PRs...

@kgryte kgryte merged commit 3c241a2 into main Feb 16, 2022
@kgryte kgryte deleted the reshape-copy branch February 16, 2022 20:09
@kgryte kgryte added this to the v2021 milestone Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API extension Adds new functions or objects to the API. topic: Manipulation Array manipulation and transformation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants