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
<li><p>if one or more values are <codeclass="docutils literal notranslate"><spanclass="pre">float</span></code>s, the output data type must be the default real-valued floating-point data type.</p></li>
<p>If <codeclass="docutils literal notranslate"><spanclass="pre">dtype</span></code> is not <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>, then array conversions should obey <aclass="reference internal" href="../type_promotion.html#type-promotion"><spanclass="std std-ref">Type Promotion Rules</span></a> rules. Conversions not specified according to <aclass="reference internal" href="../type_promotion.html#type-promotion"><spanclass="std std-ref">Type Promotion Rules</span></a> rules may or may not be permitted by a conforming array library. To perform an explicit cast, use <aclass="reference internal" href="array_api.astype.html#array_api.astype" title="array_api.astype"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">array_api.astype()</span></code></a>.</p>
496
-
</div>
497
-
<divclass="admonition note">
498
-
<pclass="admonition-title">Note</p>
499
-
<p>If an input value exceeds the precision of the resolved output array data type, behavior is left unspecified and, thus, implementation-defined.</p>
500
-
</div>
501
493
</p></li>
502
494
<li><p><strong>device</strong> (<em>Optional</em><em>[</em><em>device</em><em>]</em>) – device on which to place the created array. If <codeclass="docutils literal notranslate"><spanclass="pre">device</span></code> is <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">obj</span></code> is an array, the output array device must be inferred from <codeclass="docutils literal notranslate"><spanclass="pre">obj</span></code>. Default: <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>.</p></li>
503
495
<li><p><strong>copy</strong> (<em>Optional</em><em>[</em><em>bool</em><em>]</em>) – boolean indicating whether or not to copy the input. If <codeclass="docutils literal notranslate"><spanclass="pre">True</span></code>, the function must always copy (see <aclass="reference internal" href="../../design_topics/copies_views_and_mutation.html#copy-keyword-argument"><spanclass="std std-ref">Copy keyword argument behavior</span></a>). If <codeclass="docutils literal notranslate"><spanclass="pre">False</span></code>, the function must never copy for input which supports the buffer protocol and must raise a <codeclass="docutils literal notranslate"><spanclass="pre">ValueError</span></code> in case a copy would be necessary. If <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>, the function must reuse existing memory buffer if possible and copy otherwise. Default: <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>.</p></li>
<li><p>If <codeclass="docutils literal notranslate"><spanclass="pre">obj</span></code> is a sequence with some elements being arrays, behavior is unspecified and thus implementation-defined. Conforming implementations may perform a conversion or raise an exception. To join a sequence of arrays along a new axis, see <aclass="reference internal" href="array_api.stack.html#array_api.stack" title="array_api.stack"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">stack()</span></code></a>.</p></li>
505
+
<li><p>If <codeclass="docutils literal notranslate"><spanclass="pre">dtype</span></code> is not <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>, then array conversions should obey <aclass="reference internal" href="../type_promotion.html#type-promotion"><spanclass="std std-ref">Type Promotion Rules</span></a> rules. Conversions not specified according to <aclass="reference internal" href="../type_promotion.html#type-promotion"><spanclass="std std-ref">Type Promotion Rules</span></a> rules may or may not be permitted by a conforming array library. To perform an explicit cast, use <aclass="reference internal" href="array_api.astype.html#array_api.astype" title="array_api.astype"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">array_api.astype()</span></code></a>.</p></li>
506
+
<li><p>If an input value exceeds the precision of the resolved output array data type, behavior is unspecified and thus implementation-defined.</p></li>
507
+
</ul>
511
508
<divclass="versionchanged">
512
509
<p><spanclass="versionmodified changed">Changed in version 2022.12: </span>Added complex data type support.</p>
0 commit comments