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="sd"> Takes elements from an array along a given axis at given indices.</span>
830
830
@@ -837,6 +837,9 @@ <h1>Source code for dpctl.tensor._indexing_functions</h1><div class="highlight">
837
837
<spanclass="sd"> The axis along which the values will be selected.</span>
838
838
<spanclass="sd"> If ``x`` is one-dimensional, this argument is optional.</span>
839
839
<spanclass="sd"> Default: ``None``.</span>
840
+
<spanclass="sd"> out (Optional[usm_ndarray]):</span>
841
+
<spanclass="sd"> Output array to populate. Array must have the correct</span>
842
+
<spanclass="sd"> shape and the expected data type.</span>
840
843
<spanclass="sd"> mode (str, optional):</span>
841
844
<spanclass="sd"> How out-of-bounds indices will be handled. Possible values</span>
842
845
<spanclass="sd"> are:</span>
@@ -904,18 +907,53 @@ <h1>Source code for dpctl.tensor._indexing_functions</h1><div class="highlight">
904
907
<spanclass="k">raise</span><spanclass="ne">ValueError</span><spanclass="p">(</span><spanclass="s2">"`axis` must be 0 for an array of dimension 0."</span><spanclass="p">)</span>
<spanclass="sa">f</span><spanclass="s2">"output array must be of usm_ndarray type, got </span><spanclass="si">{</span><spanclass="nb">type</span><spanclass="p">(</span><spanclass="n">out</span><spanclass="p">)</span><spanclass="si">}</span><spanclass="s2">"</span>
<spanclass="k">raise</span><spanclass="ne">ValueError</span><spanclass="p">(</span><spanclass="s2">"provided `out` array is read-only"</span><spanclass="p">)</span>
<spanclass="sa">f</span><spanclass="s2">"Output array of type </span><spanclass="si">{</span><spanclass="n">dt</span><spanclass="si">}</span><spanclass="s2"> is needed, got </span><spanclass="si">{</span><spanclass="n">out</span><spanclass="o">.</span><spanclass="n">dtype</span><spanclass="si">}</span><spanclass="s2">"</span>
<li><p><strong>axis</strong> (<aclass="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.13)"><em>int</em></a><em>, </em><em>optional</em>) – The axis along which the values will be selected.
802
802
If <codeclass="docutils literal notranslate"><spanclass="pre">x</span></code> is one-dimensional, this argument is optional.
<li><p><strong>out</strong> (<em>Optional</em><em>[</em><aclass="reference internal" href="dpctl.tensor.usm_ndarray.html#dpctl.tensor.usm_ndarray" title="dpctl.tensor.usm_ndarray"><em>usm_ndarray</em></a><em>]</em>) – Output array to populate. Array must have the correct
805
+
shape and the expected data type.</p></li>
804
806
<li><p><strong>mode</strong> (<aclass="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.13)"><em>str</em></a><em>, </em><em>optional</em>) – <p>How out-of-bounds indices will be handled. Possible values
<td><p>Puts elements into an array at the one-dimensional indices specified by <codeclass="docutils literal notranslate"><spanclass="pre">indices</span></code> along a provided <codeclass="docutils literal notranslate"><spanclass="pre">axis</span></code>.</p></td>
0 commit comments