-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes setting of writable flag for views and writing to read-only arr…
…ays with `out` keyword (#1527) * Fixes bugs with `writable` flag setting `writable` flag was not being set correctly for indexing, real views, imaginary views, tranposes, and where shape is set directly Also fixes cases where flag could be overridden by functions with `out` kwarg * Adds a test for writable flag view behavior * Removes assumption that new array is writable Now flags are set based on input regardless of whether a new array is writable per review feedback * Adds _copy_writable for copying the writable flag between arrays * Correct typos in _copy_writable * Fixes clip writing to read-only out arrays when min and max are none
- Loading branch information
1 parent
e25a32a
commit 194dee2
Showing
5 changed files
with
54 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters