This commit is contained in:
CircleCI Docs
2025-03-20 22:37:22 +00:00
parent a943912d4c
commit cecec56a99
858 changed files with 18494 additions and 17475 deletions

View File

@@ -110,7 +110,6 @@ $(function(){initNavTree('cpu_2binary_8h.html',''); initResizable(true); });
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;cassert&gt;</code><br />
<code>#include &quot;<a class="el" href="allocator_8h_source.html">mlx/allocator.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="array_8h_source.html">mlx/array.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="common_2binary_8h_source.html">mlx/backend/common/binary.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="backend_2common_2utils_8h_source.html">mlx/backend/common/utils.h</a>&quot;</code><br />
@@ -136,21 +135,18 @@ Namespaces</h2></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7ca09ebf776fe32db580f9038587ec31" id="r_a7ca09ebf776fe32db580f9038587ec31"><td class="memTemplParams" colspan="2">template&lt;typename T, typename U, typename Op, int D, bool Strided&gt; </td></tr>
<tr class="memitem:a7ca09ebf776fe32db580f9038587ec31"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#a7ca09ebf776fe32db580f9038587ec31">mlx::core::binary_op_dims</a> (const T *a, const T *b, U *out, Op op, const <a class="el" href="namespacemlx_1_1core.html#a694e23f2d59606643728ad443d621416">Shape</a> &amp;shape, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;a_strides, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;b_strides, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;out_strides, int axis)</td></tr>
<tr class="separator:a7ca09ebf776fe32db580f9038587ec31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66c9ee5018168b9101de52e0122d9755" id="r_a66c9ee5018168b9101de52e0122d9755"><td class="memTemplParams" colspan="2">template&lt;typename T, typename U, bool Strided, typename Op&gt; </td></tr>
<tr class="memitem:a66c9ee5018168b9101de52e0122d9755"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#a66c9ee5018168b9101de52e0122d9755">mlx::core::binary_op_dispatch_dims</a> (const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;a, const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;b, <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;out, Op op, int dim, const <a class="el" href="namespacemlx_1_1core.html#a694e23f2d59606643728ad443d621416">Shape</a> &amp;shape, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;a_strides, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;b_strides, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;out_strides)</td></tr>
<tr class="separator:a66c9ee5018168b9101de52e0122d9755"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c1c1fdf9a0840a16a4d10a8f74f761d" id="r_a9c1c1fdf9a0840a16a4d10a8f74f761d"><td class="memTemplParams" colspan="2">template&lt;typename T, typename U, typename Op&gt; </td></tr>
<tr class="memitem:a9c1c1fdf9a0840a16a4d10a8f74f761d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#a9c1c1fdf9a0840a16a4d10a8f74f761d">mlx::core::binary_op</a> (const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;a, const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;b, <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;out, Op op)</td></tr>
<tr class="separator:a9c1c1fdf9a0840a16a4d10a8f74f761d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aca3458c56605a74d07ec39876549bc" id="r_a2aca3458c56605a74d07ec39876549bc"><td class="memTemplParams" colspan="2">template&lt;typename T, typename Op&gt; </td></tr>
<tr class="memitem:a2aca3458c56605a74d07ec39876549bc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#a2aca3458c56605a74d07ec39876549bc">mlx::core::binary_op</a> (const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;a, const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;b, <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;out, Op op)</td></tr>
<tr class="separator:a2aca3458c56605a74d07ec39876549bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae374861abd45cf019c3e6be2026f3798" id="r_ae374861abd45cf019c3e6be2026f3798"><td class="memTemplParams" colspan="2">template&lt;typename Op&gt; </td></tr>
<tr class="memitem:ae374861abd45cf019c3e6be2026f3798"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#ae374861abd45cf019c3e6be2026f3798">mlx::core::binary</a> (const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;a, const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;b, <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;out, Op op)</td></tr>
<tr class="separator:ae374861abd45cf019c3e6be2026f3798"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeac6fa9529eedba76b27de9d098de963" id="r_aeac6fa9529eedba76b27de9d098de963"><td class="memTemplParams" colspan="2">template&lt;typename T, typename U, typename Op, int D, bool Strided&gt; </td></tr>
<tr class="memitem:aeac6fa9529eedba76b27de9d098de963"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#aeac6fa9529eedba76b27de9d098de963">mlx::core::binary_op_dims</a> (const T *a, const T *b, U *out, const <a class="el" href="namespacemlx_1_1core.html#a694e23f2d59606643728ad443d621416">Shape</a> &amp;shape, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;a_strides, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;b_strides, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;out_strides, int axis)</td></tr>
<tr class="separator:aeac6fa9529eedba76b27de9d098de963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1229ffbba21bdb81f63482a4651bc5a" id="r_ad1229ffbba21bdb81f63482a4651bc5a"><td class="memTemplParams" colspan="2">template&lt;typename T, typename U, bool Strided, typename Op&gt; </td></tr>
<tr class="memitem:ad1229ffbba21bdb81f63482a4651bc5a"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#ad1229ffbba21bdb81f63482a4651bc5a">mlx::core::binary_op_dispatch_dims</a> (const T *a, const T *b, U *out, int dim, int size, const <a class="el" href="namespacemlx_1_1core.html#a694e23f2d59606643728ad443d621416">Shape</a> &amp;shape, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;a_strides, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;b_strides, const <a class="el" href="namespacemlx_1_1core.html#a79939016d0972ded7db37130da2a8b5c">Strides</a> &amp;out_strides)</td></tr>
<tr class="separator:ad1229ffbba21bdb81f63482a4651bc5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0c47c0bd95bb8c44339159e04c0f604" id="r_ae0c47c0bd95bb8c44339159e04c0f604"><td class="memTemplParams" colspan="2">template&lt;typename T, typename U, typename Op&gt; </td></tr>
<tr class="memitem:ae0c47c0bd95bb8c44339159e04c0f604"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#ae0c47c0bd95bb8c44339159e04c0f604">mlx::core::binary_op</a> (const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;a, const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;b, <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;out, <a class="el" href="namespacemlx_1_1core.html#a546e3d3c8957fbf2758f9504f4a2d0b6">BinaryOpType</a> bopt)</td></tr>
<tr class="separator:ae0c47c0bd95bb8c44339159e04c0f604"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5160ef5819f58cf040c9613ecce548f1" id="r_a5160ef5819f58cf040c9613ecce548f1"><td class="memTemplParams" colspan="2">template&lt;typename T, typename Op&gt; </td></tr>
<tr class="memitem:a5160ef5819f58cf040c9613ecce548f1"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core.html#a5160ef5819f58cf040c9613ecce548f1">mlx::core::binary_op</a> (const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;a, const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;b, <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;out, <a class="el" href="namespacemlx_1_1core.html#a546e3d3c8957fbf2758f9504f4a2d0b6">BinaryOpType</a> bopt)</td></tr>
<tr class="separator:a5160ef5819f58cf040c9613ecce548f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->