mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 09:51:17 +08:00
327 lines
58 KiB
HTML
327 lines
58 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.13.2"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>MLX: mlx/backend/cpu/unary_ops.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { init_search(); });
|
|
/* @license-end */
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">MLX
|
|
</div>
|
|
</td>
|
|
<td> <div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </span>
|
|
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.13.2 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){initNavTree('cpu_2unary__ops_8h_source.html',''); initResizable(true); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">unary_ops.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="cpu_2unary__ops_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright © 2024 Apple Inc.</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <stdint.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <cmath></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <complex></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include "<a class="code" href="simd_8h.html">mlx/backend/cpu/simd/simd.h</a>"</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacemlx_1_1core_1_1detail.html">mlx::core::detail</a> {</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">using namespace </span>mlx::core::simd;</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="foldopen" id="foldopen00015" data-start="" data-end="">
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="cpu_2unary__ops_8h.html#a602aea95990389a45c255195f849d5de"> 15</a></span><span class="preprocessor">#define SINGLE() \</span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor"> template <typename T> \</span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor"> T operator()(T x) { \</span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor"> return (*this)(Simd<T, 1>(x)).value; \</span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor"> }</span></div>
|
|
</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="foldopen" id="foldopen00021" data-start="" data-end="">
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64"> 21</a></span><span class="preprocessor">#define DEFAULT_OP(Op, op) \</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor"> struct Op { \</span></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor"> template <int N, typename T> \</span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor"> Simd<T, N> operator()(Simd<T, N> x) { \</span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor"> return simd::op(x); \</span></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor"> } \</span></div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor"> SINGLE() \</span></div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor"> };</span></div>
|
|
</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_abs.html#acb9168d40f09d73a2243f75f13bbadc2"> 30</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_abs.html">Abs</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a4f3cc8b2493586e83fd65640df3b60ad">abs</a>)</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_arc_cos.html#a1b927a97bbef1478c768bb85cb764c94"> 31</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_arc_cos.html">ArcCos</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ae623449dfa7aab3031aa2f14c1b10a2d">acos</a>)</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_arc_cosh.html#a4436be0278ceaced10ef98eb6f30f789"> 32</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_arc_cosh.html">ArcCosh</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a4f8a64e7742fcd8f759f723a36a7c826">acosh</a>)</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_arc_sin.html#ab1ad6339c662305bd682b14f8d8afd6c"> 33</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_arc_sin.html">ArcSin</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a9c7723fc49137394fa817136a7ffb50f">asin</a>)</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_arc_sinh.html#ac6e45e41f931f556697c060a2a858816"> 34</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_arc_sinh.html">ArcSinh</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aaa76bdf1db09261d84da51d394837f5d">asinh</a>)</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_arc_tan.html#a697b7f12f30d642ee5f0c54aaf86a8ec"> 35</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_arc_tan.html">ArcTan</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aa7550a1210e50c996d0db84034b8a22e">atan</a>)</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_arc_tanh.html#a93a660ea073526e1f75b2d3c4ac6c366"> 36</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_arc_tanh.html">ArcTanh</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a18d330fd2c7360b2890a722232ba35b7">atanh</a>)</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_bitwise_invert.html#a82a68523f66008c83dc6ebea184b5fe4"> 37</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_bitwise_invert.html">BitwiseInvert</a>, operator~)</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_ceil.html#a2354e9fa1502d1743834b98cdec17653"> 38</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_ceil.html">Ceil</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ae1d5460c58c507a0104d8dfa90343f12">ceil</a>)</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_conjugate.html#a33bbfcc195781eb33df0a4efc50569ed"> 39</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_conjugate.html">Conjugate</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a660b79a51fb439f4aba91e2aea276300">conj</a>)</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_cos.html#a663065fd41e5d85e8f044e9f81070568"> 40</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_cos.html">Cos</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ab179f429e34cd6d5c37050ea7e7c54ad">cos</a>)</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_cosh.html#ae94b6da9ceb47e9d4aaf61451126f58d"> 41</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_cosh.html">Cosh</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aedc18b6fdb820cce9125c977c02833aa">cosh</a>)</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_erf.html#a4f5986391863d30e0e7b17bd1996a5f6"> 42</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_erf.html">Erf</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a60e33ebb16d9bab375a64aec8015a5c2">erf</a>)</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_erf_inv.html#a0cdd8d6e71222695d0f148b9ad048429"> 43</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_erf_inv.html">ErfInv</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a7687f3d14077b51fb421f0efb5b626db">erfinv</a>)</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_exp.html#aad7fb8de7561479c7aa3c741322a3101"> 44</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_exp.html">Exp</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a835d71dd0bb2f9494a397d9939696ec2">exp</a>)</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_expm1.html#a2c78a15f0dd01d13f3a78ac45347ed3e"> 45</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_expm1.html">Expm1</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a9407980793ecff5d5eb19c9a2cbda1eb">expm1</a>)</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_floor.html#a5c41fb72ec3da9289c24b92802e28f2e"> 46</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_floor.html">Floor</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a8e22c484298d9af10b6604c835e52052">floor</a>);</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_log.html#a0041795bfd063a9769a3747bd7a91d61"> 47</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_log.html">Log</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a8cec82f4fb15bfd31d7554c6c09ceed4">log</a>);</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_log2.html#a83258d8a3fe12e082d0b317fcfafb28b"> 48</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_log2.html">Log2</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a66426c28a4324b9f617b7018d9354ea1">log2</a>);</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_log10.html#ade464425f69e5b76bf61b5ba3da75089"> 49</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_log10.html">Log10</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a3cb6ea94836e999c07329b34c501ed85">log10</a>);</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_log1p.html#abed96d56b07c6a96666b770c9711e52e"> 50</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_log1p.html">Log1p</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ad06680bbc041e76efe2dbff4e11b9a13">log1p</a>);</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_logical_not.html#a4978cc3a63e70a1a4fee6470764ae9d9"> 51</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_logical_not.html">LogicalNot</a>, operator!)</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_negative.html#a93a1dfb47eba54aff44b2945d131c97e"> 52</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_negative.html">Negative</a>, operator-)</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_round.html#acd099ba81c8c281e9660cf8c0fed0cd1"> 53</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_round.html">Round</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a400d89d040f43d471b306a8e8bdb3974">rint</a>);</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sin.html#a07c357c49dbf6b0579b1e771c6eb5766"> 54</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_sin.html">Sin</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ab4d582d72c0a7ee313e19c906e43cef1">sin</a>)</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sinh.html#a1e299cd64bc0c7aaa1ceeac35dfe7831"> 55</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_sinh.html">Sinh</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a09a2f3f2bc999c16babf3d8d90994d6e">sinh</a>)</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sqrt.html#acac518e8e7cf3dd103f4f72f22b23221"> 56</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_sqrt.html">Sqrt</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ae39b8e1d1fff94947406eeb8ec6e0414">sqrt</a>)</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_rsqrt.html#ac6720a6270393152ab2924a77bfb17b2"> 57</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_rsqrt.html">Rsqrt</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aea75ddf8c696efc2e5e924667ed48e70">rsqrt</a>)</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_tan.html#a9c8d3570a1e4daa054bb41999043d9e9"> 58</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_tan.html">Tan</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a445ddc4ed928656df64d889942588cfd">tan</a>)</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_tanh.html#a79eeba686f3dd5dce097ff5b9b27dd7c"> 59</a></span><a class="code hl_define" href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_tanh.html">Tanh</a>, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aa244fbe7456b653aa50a473108fd6a2b">tanh</a>)</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="foldopen" id="foldopen00061" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_imag.html"> 61</a></span>struct <a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_imag.html">Imag</a> {</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> N></div>
|
|
<div class="foldopen" id="foldopen00063" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_imag.html#a070cf43bc4e30871f8f32d4b84be05c8"> 63</a></span> <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<float, N></a> <a class="code hl_function" href="structmlx_1_1core_1_1detail_1_1_imag.html#a070cf43bc4e30871f8f32d4b84be05c8">operator()</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<complex64_t, N></a> x) {</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a97c69b04852ccba242f1348fda17ca20">simd::imag</a>(x);</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_imag.html#a5bd82e2185f3779e398c179d42a3e782"> 66</a></span> <a class="code hl_define" href="cpu_2unary__ops_8h.html#a602aea95990389a45c255195f849d5de">SINGLE</a>()</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
|
<div class="foldopen" id="foldopen00069" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_real.html"> 69</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_real.html">Real</a> {</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> N></div>
|
|
<div class="foldopen" id="foldopen00071" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_real.html#a7c6c6c188d611e2084dba66b7489c21f"> 71</a></span> <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<float, N></a> <a class="code hl_function" href="structmlx_1_1core_1_1detail_1_1_real.html#a7c6c6c188d611e2084dba66b7489c21f">operator()</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<complex64_t, N></a> x) {</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#acdf822b7626bbab6a495552aea3457b5">simd::real</a>(x);</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_real.html#ae84a939fdb5916257a7731cda66d4d61"> 74</a></span> <a class="code hl_define" href="cpu_2unary__ops_8h.html#a602aea95990389a45c255195f849d5de">SINGLE</a>()</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
|
<div class="foldopen" id="foldopen00077" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sigmoid.html"> 77</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_sigmoid.html">Sigmoid</a> {</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> N, <span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00079" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sigmoid.html#a12a3d53f0fd797b5cdd9d04d048ce1a4"> 79</a></span> <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a> <a class="code hl_function" href="structmlx_1_1core_1_1detail_1_1_sigmoid.html#a12a3d53f0fd797b5cdd9d04d048ce1a4">operator()</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a> x) {</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">return</span> 1.0f / (1.0f + <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a835d71dd0bb2f9494a397d9939696ec2">simd::exp</a>(-x));</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sigmoid.html#a64b72561bfaf758632167f00648f4c89"> 82</a></span> <a class="code hl_define" href="cpu_2unary__ops_8h.html#a602aea95990389a45c255195f849d5de">SINGLE</a>()</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
|
|
<div class="foldopen" id="foldopen00085" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sign.html"> 85</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_sign.html">Sign</a> {</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> N, <span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00087" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sign.html#a913c095e25668c8a6bb6e3243e150606"> 87</a></span> <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a> <a class="code hl_function" href="structmlx_1_1core_1_1detail_1_1_sign.html#a913c095e25668c8a6bb6e3243e150606">operator()</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a> x) {</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keyword">auto</span> z = <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a>{0};</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span> (std::is_unsigned_v<T>) {</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordflow">return</span> x != z;</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span> (std::is_same_v<T, complex64_t>) {</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#afb3bcbd8d8b34128cd0c8eb677a170ef">simd::select</a>(x == z, x, <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a>(x / <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a4f3cc8b2493586e83fd65640df3b60ad">simd::abs</a>(x)));</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#afb3bcbd8d8b34128cd0c8eb677a170ef">simd::select</a>(</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> x < z, <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a>{-1}, <a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#afb3bcbd8d8b34128cd0c8eb677a170ef">simd::select</a>(x > z, <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a>{1}, z));</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> }</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_sign.html#a64ed5013cee7ff18c7fe70bc04737e7b"> 98</a></span> <a class="code hl_define" href="cpu_2unary__ops_8h.html#a602aea95990389a45c255195f849d5de">SINGLE</a>()</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
|
|
<div class="foldopen" id="foldopen00101" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_square.html"> 101</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structmlx_1_1core_1_1detail_1_1_square.html">Square</a> {</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> N, <span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00103" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_square.html#abab2378a94c4c38dffeb06a74b0f81ee"> 103</a></span> <a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a> <a class="code hl_function" href="structmlx_1_1core_1_1detail_1_1_square.html#abab2378a94c4c38dffeb06a74b0f81ee">operator()</a>(<a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_simd.html">Simd<T, N></a> x) {</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keywordflow">return</span> x * x;</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="structmlx_1_1core_1_1detail_1_1_square.html#a54e9e3c0d0896e142289e8282eab1099"> 106</a></span> <a class="code hl_define" href="cpu_2unary__ops_8h.html#a602aea95990389a45c255195f849d5de">SINGLE</a>()</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span>} <span class="comment">// namespace mlx::core::detail</span></div>
|
|
<div class="ttc" id="acpu_2unary__ops_8h_html_a602aea95990389a45c255195f849d5de"><div class="ttname"><a href="cpu_2unary__ops_8h.html#a602aea95990389a45c255195f849d5de">SINGLE</a></div><div class="ttdeci">#define SINGLE()</div><div class="ttdef"><b>Definition</b> unary_ops.h:15</div></div>
|
|
<div class="ttc" id="acpu_2unary__ops_8h_html_a83702f31e6dbd79c339a6aad67319f64"><div class="ttname"><a href="cpu_2unary__ops_8h.html#a83702f31e6dbd79c339a6aad67319f64">DEFAULT_OP</a></div><div class="ttdeci">#define DEFAULT_OP(Op, op)</div><div class="ttdef"><b>Definition</b> unary_ops.h:21</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1detail_html"><div class="ttname"><a href="namespacemlx_1_1core_1_1detail.html">mlx::core::detail</a></div><div class="ttdef"><b>Definition</b> binary_ops.h:7</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a09a2f3f2bc999c16babf3d8d90994d6e"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a09a2f3f2bc999c16babf3d8d90994d6e">mlx::core::simd::sinh</a></div><div class="ttdeci">Simd< float16_t, N > sinh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:41</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a18d330fd2c7360b2890a722232ba35b7"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a18d330fd2c7360b2890a722232ba35b7">mlx::core::simd::atanh</a></div><div class="ttdeci">Simd< float16_t, N > atanh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:34</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a3cb6ea94836e999c07329b34c501ed85"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a3cb6ea94836e999c07329b34c501ed85">mlx::core::simd::log10</a></div><div class="ttdeci">Simd< float16_t, N > log10(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:39</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a400d89d040f43d471b306a8e8bdb3974"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a400d89d040f43d471b306a8e8bdb3974">mlx::core::simd::rint</a></div><div class="ttdeci">Simd< T, N > rint(Simd< T, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_simd.h:127</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a445ddc4ed928656df64d889942588cfd"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a445ddc4ed928656df64d889942588cfd">mlx::core::simd::tan</a></div><div class="ttdeci">Simd< float16_t, N > tan(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:42</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a4f3cc8b2493586e83fd65640df3b60ad"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a4f3cc8b2493586e83fd65640df3b60ad">mlx::core::simd::abs</a></div><div class="ttdeci">Simd< T, N > abs(Simd< T, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_simd.h:112</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a4f8a64e7742fcd8f759f723a36a7c826"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a4f8a64e7742fcd8f759f723a36a7c826">mlx::core::simd::acosh</a></div><div class="ttdeci">Simd< float16_t, N > acosh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:30</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a60e33ebb16d9bab375a64aec8015a5c2"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a60e33ebb16d9bab375a64aec8015a5c2">mlx::core::simd::erf</a></div><div class="ttdeci">Simd< T, N > erf(Simd< T, N > x)</div><div class="ttdef"><b>Definition</b> math.h:137</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a660b79a51fb439f4aba91e2aea276300"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a660b79a51fb439f4aba91e2aea276300">mlx::core::simd::conj</a></div><div class="ttdeci">Simd< T, 1 > conj(Simd< T, 1 > in)</div><div class="ttdef"><b>Definition</b> base_simd.h:85</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a66426c28a4324b9f617b7018d9354ea1"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a66426c28a4324b9f617b7018d9354ea1">mlx::core::simd::log2</a></div><div class="ttdeci">Simd< float16_t, N > log2(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:38</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a7687f3d14077b51fb421f0efb5b626db"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a7687f3d14077b51fb421f0efb5b626db">mlx::core::simd::erfinv</a></div><div class="ttdeci">Simd< T, N > erfinv(Simd< T, N > a_)</div><div class="ttdef"><b>Definition</b> math.h:151</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a835d71dd0bb2f9494a397d9939696ec2"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a835d71dd0bb2f9494a397d9939696ec2">mlx::core::simd::exp</a></div><div class="ttdeci">Simd< T, N > exp(Simd< T, N > in)</div><div class="ttdoc">Compute exp(x) in an optimizer friendly way as follows:</div><div class="ttdef"><b>Definition</b> math.h:28</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a8cec82f4fb15bfd31d7554c6c09ceed4"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a8cec82f4fb15bfd31d7554c6c09ceed4">mlx::core::simd::log</a></div><div class="ttdeci">Simd< float16_t, N > log(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:37</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a8e22c484298d9af10b6604c835e52052"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a8e22c484298d9af10b6604c835e52052">mlx::core::simd::floor</a></div><div class="ttdeci">Simd< T, N > floor(Simd< T, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_simd.h:113</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a9407980793ecff5d5eb19c9a2cbda1eb"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a9407980793ecff5d5eb19c9a2cbda1eb">mlx::core::simd::expm1</a></div><div class="ttdeci">Simd< float16_t, N > expm1(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:36</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a97c69b04852ccba242f1348fda17ca20"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a97c69b04852ccba242f1348fda17ca20">mlx::core::simd::imag</a></div><div class="ttdeci">auto imag(Simd< T, 1 > in) -> Simd< decltype(std::imag(in.value)), 1 ></div><div class="ttdef"><b>Definition</b> base_simd.h:108</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a9c7723fc49137394fa817136a7ffb50f"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a9c7723fc49137394fa817136a7ffb50f">mlx::core::simd::asin</a></div><div class="ttdeci">Simd< float16_t, N > asin(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:31</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aa244fbe7456b653aa50a473108fd6a2b"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aa244fbe7456b653aa50a473108fd6a2b">mlx::core::simd::tanh</a></div><div class="ttdeci">Simd< float16_t, N > tanh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:43</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aa7550a1210e50c996d0db84034b8a22e"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aa7550a1210e50c996d0db84034b8a22e">mlx::core::simd::atan</a></div><div class="ttdeci">Simd< float16_t, N > atan(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:33</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aaa76bdf1db09261d84da51d394837f5d"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aaa76bdf1db09261d84da51d394837f5d">mlx::core::simd::asinh</a></div><div class="ttdeci">Simd< float16_t, N > asinh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:32</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ab179f429e34cd6d5c37050ea7e7c54ad"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ab179f429e34cd6d5c37050ea7e7c54ad">mlx::core::simd::cos</a></div><div class="ttdeci">Simd< T, N > cos(Simd< T, N > x)</div><div class="ttdef"><b>Definition</b> math.h:128</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ab4d582d72c0a7ee313e19c906e43cef1"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ab4d582d72c0a7ee313e19c906e43cef1">mlx::core::simd::sin</a></div><div class="ttdeci">Simd< T, N > sin(Simd< T, N > x)</div><div class="ttdef"><b>Definition</b> math.h:119</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_acdf822b7626bbab6a495552aea3457b5"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#acdf822b7626bbab6a495552aea3457b5">mlx::core::simd::real</a></div><div class="ttdeci">auto real(Simd< T, 1 > in) -> Simd< decltype(std::real(in.value)), 1 ></div><div class="ttdef"><b>Definition</b> base_simd.h:104</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ad06680bbc041e76efe2dbff4e11b9a13"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ad06680bbc041e76efe2dbff4e11b9a13">mlx::core::simd::log1p</a></div><div class="ttdeci">Simd< float16_t, N > log1p(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:40</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ae1d5460c58c507a0104d8dfa90343f12"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ae1d5460c58c507a0104d8dfa90343f12">mlx::core::simd::ceil</a></div><div class="ttdeci">Simd< T, N > ceil(Simd< T, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_simd.h:120</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ae39b8e1d1fff94947406eeb8ec6e0414"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ae39b8e1d1fff94947406eeb8ec6e0414">mlx::core::simd::sqrt</a></div><div class="ttdeci">Simd< T, N > sqrt(Simd< T, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_simd.h:129</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ae623449dfa7aab3031aa2f14c1b10a2d"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ae623449dfa7aab3031aa2f14c1b10a2d">mlx::core::simd::acos</a></div><div class="ttdeci">Simd< float16_t, N > acos(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:29</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aea75ddf8c696efc2e5e924667ed48e70"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aea75ddf8c696efc2e5e924667ed48e70">mlx::core::simd::rsqrt</a></div><div class="ttdeci">Simd< T, N > rsqrt(Simd< T, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_simd.h:130</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aedc18b6fdb820cce9125c977c02833aa"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aedc18b6fdb820cce9125c977c02833aa">mlx::core::simd::cosh</a></div><div class="ttdeci">Simd< float16_t, N > cosh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:35</div></div>
|
|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_afb3bcbd8d8b34128cd0c8eb677a170ef"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#afb3bcbd8d8b34128cd0c8eb677a170ef">mlx::core::simd::select</a></div><div class="ttdeci">Simd< T1, N > select(Simd< MaskT, N > mask, Simd< T1, N > x, Simd< T2, N > y)</div><div class="ttdef"><b>Definition</b> accelerate_simd.h:236</div></div>
|
|
<div class="ttc" id="asimd_8h_html"><div class="ttname"><a href="simd_8h.html">simd.h</a></div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_abs_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_abs.html">mlx::core::detail::Abs</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:30</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_arc_cos_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_arc_cos.html">mlx::core::detail::ArcCos</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:31</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_arc_cosh_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_arc_cosh.html">mlx::core::detail::ArcCosh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:32</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_arc_sin_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_arc_sin.html">mlx::core::detail::ArcSin</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:33</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_arc_sinh_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_arc_sinh.html">mlx::core::detail::ArcSinh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:34</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_arc_tan_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_arc_tan.html">mlx::core::detail::ArcTan</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:35</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_arc_tanh_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_arc_tanh.html">mlx::core::detail::ArcTanh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:36</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_bitwise_invert_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_bitwise_invert.html">mlx::core::detail::BitwiseInvert</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:37</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_ceil_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_ceil.html">mlx::core::detail::Ceil</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:38</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_conjugate_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_conjugate.html">mlx::core::detail::Conjugate</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:39</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_cos_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_cos.html">mlx::core::detail::Cos</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:40</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_cosh_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_cosh.html">mlx::core::detail::Cosh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:41</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_erf_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_erf.html">mlx::core::detail::Erf</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:42</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_erf_inv_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_erf_inv.html">mlx::core::detail::ErfInv</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:43</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_exp_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_exp.html">mlx::core::detail::Exp</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:44</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_expm1_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_expm1.html">mlx::core::detail::Expm1</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:45</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_floor_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_floor.html">mlx::core::detail::Floor</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:46</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_imag_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_imag.html">mlx::core::detail::Imag</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:61</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_imag_html_a070cf43bc4e30871f8f32d4b84be05c8"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_imag.html#a070cf43bc4e30871f8f32d4b84be05c8">mlx::core::detail::Imag::operator()</a></div><div class="ttdeci">Simd< float, N > operator()(Simd< complex64_t, N > x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:63</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_log10_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_log10.html">mlx::core::detail::Log10</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:49</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_log1p_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_log1p.html">mlx::core::detail::Log1p</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:50</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_log2_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_log2.html">mlx::core::detail::Log2</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:48</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_log_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_log.html">mlx::core::detail::Log</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:47</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_logical_not_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_logical_not.html">mlx::core::detail::LogicalNot</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:51</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_negative_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_negative.html">mlx::core::detail::Negative</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:52</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_real_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_real.html">mlx::core::detail::Real</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:69</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_real_html_a7c6c6c188d611e2084dba66b7489c21f"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_real.html#a7c6c6c188d611e2084dba66b7489c21f">mlx::core::detail::Real::operator()</a></div><div class="ttdeci">Simd< float, N > operator()(Simd< complex64_t, N > x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:71</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_round_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_round.html">mlx::core::detail::Round</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:53</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_rsqrt_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_rsqrt.html">mlx::core::detail::Rsqrt</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:57</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_sigmoid_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_sigmoid.html">mlx::core::detail::Sigmoid</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:77</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_sigmoid_html_a12a3d53f0fd797b5cdd9d04d048ce1a4"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_sigmoid.html#a12a3d53f0fd797b5cdd9d04d048ce1a4">mlx::core::detail::Sigmoid::operator()</a></div><div class="ttdeci">Simd< T, N > operator()(Simd< T, N > x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:79</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_sign_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_sign.html">mlx::core::detail::Sign</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:85</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_sign_html_a913c095e25668c8a6bb6e3243e150606"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_sign.html#a913c095e25668c8a6bb6e3243e150606">mlx::core::detail::Sign::operator()</a></div><div class="ttdeci">Simd< T, N > operator()(Simd< T, N > x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:87</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_sin_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_sin.html">mlx::core::detail::Sin</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:54</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_sinh_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_sinh.html">mlx::core::detail::Sinh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:55</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_sqrt_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_sqrt.html">mlx::core::detail::Sqrt</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:56</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_square_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_square.html">mlx::core::detail::Square</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:101</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_square_html_abab2378a94c4c38dffeb06a74b0f81ee"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_square.html#abab2378a94c4c38dffeb06a74b0f81ee">mlx::core::detail::Square::operator()</a></div><div class="ttdeci">Simd< T, N > operator()(Simd< T, N > x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:103</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_tan_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_tan.html">mlx::core::detail::Tan</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:58</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1detail_1_1_tanh_html"><div class="ttname"><a href="structmlx_1_1core_1_1detail_1_1_tanh.html">mlx::core::detail::Tanh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:59</div></div>
|
|
<div class="ttc" id="astructmlx_1_1core_1_1simd_1_1_simd_html"><div class="ttname"><a href="structmlx_1_1core_1_1simd_1_1_simd.html">mlx::core::simd::Simd</a></div><div class="ttdef"><b>Definition</b> accelerate_simd.h:55</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_938ab0ecf10b8b860ff766c820f665fd.html">mlx</a></li><li class="navelem"><a class="el" href="dir_1d446c9bd3c99228254c9484e0bc5c06.html">backend</a></li><li class="navelem"><a class="el" href="dir_48c8bf40aae7e42226b4fe31ea48af19.html">cpu</a></li><li class="navelem"><a class="el" href="cpu_2unary__ops_8h.html">unary_ops.h</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|