Skip to content

Commit e618597

Browse files
author
array-api-bot
committed
Deploy: 11273e6
1 parent 45239f5 commit e618597

5 files changed

+8
-8
lines changed

draft/API_specification/generated/array_api.unique_all.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,10 @@ <h1 id="api-specification-generated-array-api-unique-all--page-root">unique_all<
487487
<dt class="field-even">Returns<span class="colon">:</span></dt>
488488
<dd class="field-even"><p><strong>out</strong> (<em>Tuple[array, array, array, array]</em>) – a namedtuple <code class="docutils literal notranslate"><span class="pre">(values,</span> <span class="pre">indices,</span> <span class="pre">inverse_indices,</span> <span class="pre">counts)</span></code> whose</p>
489489
<ul class="simple">
490-
<li><p>first element must have the field name <code class="docutils literal notranslate"><span class="pre">values</span></code> and must be an array containing the unique elements of <code class="docutils literal notranslate"><span class="pre">x</span></code>. The array must have the same data type as <code class="docutils literal notranslate"><span class="pre">x</span></code>.</p></li>
491-
<li><p>second element must have the field name <code class="docutils literal notranslate"><span class="pre">indices</span></code> and must be an array containing the indices (first occurrences) of <code class="docutils literal notranslate"><span class="pre">x</span></code> that result in <code class="docutils literal notranslate"><span class="pre">values</span></code>. The array must have the same shape as <code class="docutils literal notranslate"><span class="pre">values</span></code> and must have the default array index data type.</p></li>
490+
<li><p>first element must have the field name <code class="docutils literal notranslate"><span class="pre">values</span></code> and must be a one-dimensional array containing the unique elements of <code class="docutils literal notranslate"><span class="pre">x</span></code>. The array must have the same data type as <code class="docutils literal notranslate"><span class="pre">x</span></code>.</p></li>
491+
<li><p>second element must have the field name <code class="docutils literal notranslate"><span class="pre">indices</span></code> and must be an array containing the indices (first occurrences) of a flattened <code class="docutils literal notranslate"><span class="pre">x</span></code> that result in <code class="docutils literal notranslate"><span class="pre">values</span></code>. The array must have the same shape as <code class="docutils literal notranslate"><span class="pre">values</span></code> and must have the default array index data type.</p></li>
492492
<li><p>third element must have the field name <code class="docutils literal notranslate"><span class="pre">inverse_indices</span></code> and must be an array containing the indices of <code class="docutils literal notranslate"><span class="pre">values</span></code> that reconstruct <code class="docutils literal notranslate"><span class="pre">x</span></code>. The array must have the same shape as <code class="docutils literal notranslate"><span class="pre">x</span></code> and must have the default array index data type.</p></li>
493-
<li><p>fourth element must have the field name <code class="docutils literal notranslate"><span class="pre">counts</span></code> and must be an array containing the number of times each unique element occurs in <code class="docutils literal notranslate"><span class="pre">x</span></code>. The returned array must have same shape as <code class="docutils literal notranslate"><span class="pre">values</span></code> and must have the default array index data type.</p></li>
493+
<li><p>fourth element must have the field name <code class="docutils literal notranslate"><span class="pre">counts</span></code> and must be an array containing the number of times each unique element occurs in <code class="docutils literal notranslate"><span class="pre">x</span></code>. The order of the returned counts must match the order of <code class="docutils literal notranslate"><span class="pre">values</span></code>, such that a specific element in <code class="docutils literal notranslate"><span class="pre">counts</span></code> corresponds to the respective unique element in <code class="docutils literal notranslate"><span class="pre">values</span></code>. The returned array must have same shape as <code class="docutils literal notranslate"><span class="pre">values</span></code> and must have the default array index data type.</p></li>
494494
</ul>
495495
<div class="admonition note">
496496
<p class="admonition-title">Note</p>

draft/API_specification/generated/array_api.unique_counts.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ <h1 id="api-specification-generated-array-api-unique-counts--page-root">unique_c
486486
<dt class="field-even">Returns<span class="colon">:</span></dt>
487487
<dd class="field-even"><p><strong>out</strong> (<em>Tuple[array, array]</em>) – a namedtuple <code class="code docutils literal notranslate"><span class="pre">(values,</span> <span class="pre">counts)</span></code> whose</p>
488488
<ul class="simple">
489-
<li><p>first element must have the field name <code class="docutils literal notranslate"><span class="pre">values</span></code> and must be an array containing the unique elements of <code class="docutils literal notranslate"><span class="pre">x</span></code>. The array must have the same data type as <code class="docutils literal notranslate"><span class="pre">x</span></code>.</p></li>
490-
<li><p>second element must have the field name <code class="code docutils literal notranslate"><span class="pre">counts</span></code> and must be an array containing the number of times each unique element occurs in <code class="docutils literal notranslate"><span class="pre">x</span></code>. The returned array must have same shape as <code class="docutils literal notranslate"><span class="pre">values</span></code> and must have the default array index data type.</p></li>
489+
<li><p>first element must have the field name <code class="docutils literal notranslate"><span class="pre">values</span></code> and must be a one-dimensional array containing the unique elements of <code class="docutils literal notranslate"><span class="pre">x</span></code>. The array must have the same data type as <code class="docutils literal notranslate"><span class="pre">x</span></code>.</p></li>
490+
<li><p>second element must have the field name <code class="code docutils literal notranslate"><span class="pre">counts</span></code> and must be an array containing the number of times each unique element occurs in <code class="docutils literal notranslate"><span class="pre">x</span></code>. The order of the returned counts must match the order of <code class="docutils literal notranslate"><span class="pre">values</span></code>, such that a specific element in <code class="docutils literal notranslate"><span class="pre">counts</span></code> corresponds to the respective unique element in <code class="docutils literal notranslate"><span class="pre">values</span></code>. The returned array must have same shape as <code class="docutils literal notranslate"><span class="pre">values</span></code> and must have the default array index data type.</p></li>
491491
</ul>
492492
<div class="admonition note">
493493
<p class="admonition-title">Note</p>

draft/API_specification/generated/array_api.unique_inverse.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ <h1 id="api-specification-generated-array-api-unique-inverse--page-root">unique_
486486
<dt class="field-even">Returns<span class="colon">:</span></dt>
487487
<dd class="field-even"><p><strong>out</strong> (<em>Tuple[array, array]</em>) – a namedtuple <code class="docutils literal notranslate"><span class="pre">(values,</span> <span class="pre">inverse_indices)</span></code> whose</p>
488488
<ul class="simple">
489-
<li><p>first element must have the field name <code class="docutils literal notranslate"><span class="pre">values</span></code> and must be an array containing the unique elements of <code class="docutils literal notranslate"><span class="pre">x</span></code>. The array must have the same data type as <code class="docutils literal notranslate"><span class="pre">x</span></code>.</p></li>
489+
<li><p>first element must have the field name <code class="docutils literal notranslate"><span class="pre">values</span></code> and must be a one-dimensional array containing the unique elements of <code class="docutils literal notranslate"><span class="pre">x</span></code>. The array must have the same data type as <code class="docutils literal notranslate"><span class="pre">x</span></code>.</p></li>
490490
<li><p>second element must have the field name <code class="docutils literal notranslate"><span class="pre">inverse_indices</span></code> and must be an array containing the indices of <code class="docutils literal notranslate"><span class="pre">values</span></code> that reconstruct <code class="docutils literal notranslate"><span class="pre">x</span></code>. The array must have the same shape as <code class="docutils literal notranslate"><span class="pre">x</span></code> and have the default array index data type.</p></li>
491491
</ul>
492492
<div class="admonition note">

draft/API_specification/generated/array_api.unique_values.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ <h1 id="api-specification-generated-array-api-unique-values--page-root">unique_v
483483
<dd class="field-odd"><p><strong>x</strong> (<em>array</em>) – input array. If <code class="docutils literal notranslate"><span class="pre">x</span></code> has more than one dimension, the function must flatten <code class="docutils literal notranslate"><span class="pre">x</span></code> and return the unique elements of the flattened array.</p>
484484
</dd>
485485
<dt class="field-even">Returns<span class="colon">:</span></dt>
486-
<dd class="field-even"><p><strong>out</strong> (<em>array</em>) – an array containing the set of unique elements in <code class="docutils literal notranslate"><span class="pre">x</span></code>. The returned array must have the same data type as <code class="docutils literal notranslate"><span class="pre">x</span></code>.</p>
486+
<dd class="field-even"><p><strong>out</strong> (<em>array</em>) – a one-dimensional array containing the set of unique elements in <code class="docutils literal notranslate"><span class="pre">x</span></code>. The returned array must have the same data type as <code class="docutils literal notranslate"><span class="pre">x</span></code>.</p>
487487
<div class="admonition note">
488488
<p class="admonition-title">Note</p>
489489
<p>The order of unique elements is not specified and may vary between implementations.</p>

draft/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)