Skip to content

Commit

Permalink
Update copies_views_and_mutation.rst (#865)
Browse files Browse the repository at this point in the history
word order typo
  • Loading branch information
minerharry authored Dec 2, 2024
1 parent 6d205d7 commit a7bcfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/draft/design_topics/copies_views_and_mutation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Copy-view behaviour and mutability
.. admonition:: Mutating views
:class: important

Array API consumers are *strongly* advised to avoid *any* mutating operations when an array object may be either a "view" (i.e., an array whose data refers to memory that belongs to another array) or own memory of which one or more other array objects may be views. This admonition may become more strict in the future (e.g., this specification may require that view mutation be prohibited and trigger an exception). Accordingly, only perform mutation operations (e.g., in-place assignment) when absolutely confident that array data belongs to one, and only one, array object.
Array API consumers are *strongly* advised to avoid *any* mutating operations when an array object may either be a "view" (i.e., an array whose data refers to memory that belongs to another array) or own memory of which one or more other array objects may be views. This admonition may become more strict in the future (e.g., this specification may require that view mutation be prohibited and trigger an exception). Accordingly, only perform mutation operations (e.g., in-place assignment) when absolutely confident that array data belongs to one, and only one, array object.

Strided array implementations (e.g. NumPy, PyTorch, CuPy, MXNet) typically
have the concept of a "view", meaning an array containing data in memory that
Expand Down

0 comments on commit a7bcfe6

Please sign in to comment.