Skip to content

Commit f82cc23

Browse files
author
array-api-bot
committed
Deploy: a7bcfe6
1 parent dd2a39e commit f82cc23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

draft/_sources/design_topics/copies_views_and_mutation.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Copy-view behaviour and mutability
66
.. admonition:: Mutating views
77
:class: important
88

9-
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.
9+
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.
1010

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

draft/design_topics/copies_views_and_mutation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402
<span id="copyview-mutability"></span><h1 id="design-topics-copies-views-and-mutation--page-root">Copy-view behaviour and mutability<a class="headerlink" href="#design-topics-copies-views-and-mutation--page-root" title="Link to this heading"></a></h1>
403403
<div class="important admonition">
404404
<p class="admonition-title">Mutating views</p>
405-
<p>Array API consumers are <em>strongly</em> advised to avoid <em>any</em> 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.</p>
405+
<p>Array API consumers are <em>strongly</em> advised to avoid <em>any</em> 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.</p>
406406
</div>
407407
<p>Strided array implementations (e.g. NumPy, PyTorch, CuPy, MXNet) typically
408408
have the concept of a “view”, meaning an array containing data in memory that

0 commit comments

Comments
 (0)