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
@@ -358,15 +358,19 @@ <h1>array-api-extra<a class="headerlink" href="#array-api-extra" title="Link to
358
358
<divclass="admonition note">
359
359
<pclass="admonition-title">Note</p>
360
360
<p>Functions in this library assume input arrays <em>are arrays</em> (not “array-likes”) and that
361
-
the namespace passed as <codeclass="docutils literal notranslate"><spanclass="pre">xp</span></code> is compatible with the standard. This means that
362
-
the namespace you pass as <codeclass="docutils literal notranslate"><spanclass="pre">xp</span></code> should come from array-api-compat’s <codeclass="docutils literal notranslate"><spanclass="pre">array_namespace</span></code>,
361
+
the namespace passed as <codeclass="docutils literal notranslate"><spanclass="pre">xp</span></code>(if given) is compatible with the standard -
362
+
this means that it should come from array-api-compat’s <codeclass="docutils literal notranslate"><spanclass="pre">array_namespace</span></code>,
363
363
or otherwise be compatible with the standard.</p>
364
+
<p>Calling functions without providing an <codeclass="docutils literal notranslate"><spanclass="pre">xp</span></code> argument means that <codeclass="docutils literal notranslate"><spanclass="pre">array_namespace</span></code>
365
+
is called internally to determine the namespace.</p>
364
366
</div>
365
367
<p>In the examples shown in the docstrings of functions from this library,
366
368
<aclass="reference external" href="https://data-apis.org/array-api-strict/"><codeclass="docutils literal notranslate"><spanclass="pre">array-api-strict</span></code></a> is used as the
367
369
array namespace <codeclass="docutils literal notranslate"><spanclass="pre">xp</span></code>. In reality, code using this library will be written to
368
370
work with any compatible array namespace as <codeclass="docutils literal notranslate"><spanclass="pre">xp</span></code>, not any particular
369
371
implementation.</p>
372
+
<p>Some functions may only work with array libraries supported by array-api-compat.
373
+
This will be clearly indicated in the docs.</p>
370
374
</section>
371
375
<sectionid="scope">
372
376
<spanid="id4"></span><h2>Scope<aclass="headerlink" href="#scope" title="Link to this heading">¶</a></h2>
@@ -376,11 +380,14 @@ <h1>array-api-extra<a class="headerlink" href="#array-api-extra" title="Link to
376
380
standard.</p></li>
377
381
<li><p>Implement functionality which may be generally useful across various
378
382
libraries.</p></li>
379
-
<li><p>Be implemented purely in terms of the array API standard.</p></li>
0 commit comments