You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="sig-prename descclassname"><spanclass="pre">array_api_compat.</span></span><spanclass="sig-name descname"><spanclass="pre">is_writeable_array</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">x</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">bool</span></span></span><aclass="headerlink" href="#array_api_compat.is_writeable_array" title="Link to this definition">¶</a></dt>
503
+
<dd><p>Return False if <codeclass="docutils literal notranslate"><spanclass="pre">x.__setitem__</span></code> is expected to raise; True otherwise.</p>
504
+
<divclass="admonition warning">
505
+
<pclass="admonition-title">Warning</p>
506
+
<p>As there is no standard way to check if an array is writeable without actually
507
+
writing to it, this function blindly returns True for all unknown array types.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">array_api_compat.</span></span><spanclass="sig-name descname"><spanclass="pre">is_numpy_namespace</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">xp</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">bool</span></span></span><aclass="headerlink" href="#array_api_compat.is_numpy_namespace" title="Link to this definition">¶</a></dt>
0 commit comments