2024-10-15 23:12:17 +08:00
<!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" / >
2025-02-07 04:16:29 +08:00
< meta name = "generator" content = "Doxygen 1.13.2" / >
2024-10-15 23:12:17 +08:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > MLX: Power Struct Reference< / 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" / >
2025-01-10 05:56:20 +08:00
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
2024-10-15 23:12:17 +08:00
< 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 >
2025-01-10 05:56:20 +08:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() { init_search(); });
/* @license-end */
< / script >
2024-10-15 23:12:17 +08:00
< 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 >
2025-01-10 05:56:20 +08:00
< 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 >
2024-10-15 23:12:17 +08:00
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2025-02-07 04:16:29 +08:00
<!-- Generated by Doxygen 1.13.2 -->
2024-10-15 23:12:17 +08:00
< 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 >
2025-01-10 05:56:20 +08:00
< / 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 >
2024-10-15 23:12:17 +08:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2025-01-10 05:56:20 +08:00
$(function(){initNavTree('struct_power.html',''); initResizable(true); });
2024-10-15 23:12:17 +08:00
/* @license-end */
< / script >
2025-01-10 05:56:20 +08:00
< div id = "doc-content" >
2024-10-15 23:12:17 +08:00
<!-- 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 = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "struct_power-members.html" > List of all members< / a > < / div >
< div class = "headertitle" > < div class = "title" > Power Struct Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2025-02-07 04:16:29 +08:00
< p > < code > #include < < a class = "el" href = "metal_2kernels_2binary__ops_8h_source.html" > binary_ops.h< / a > > < / code > < / p >
2024-10-15 23:12:17 +08:00
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "pub-methods" name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:a2b6df2a9e48155ff9734caca8504a79f" id = "r_a2b6df2a9e48155ff9734caca8504a79f" > < td class = "memTemplParams" colspan = "2" > template< typename T> < / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "memitem:a2b6df2a9e48155ff9734caca8504a79f" > < td class = "memTemplItemLeft" align = "right" valign = "top" > metal::enable_if_t< !metal::is_integral_v< T > , T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "#a2b6df2a9e48155ff9734caca8504a79f" > operator()< / a > (T base, T exp)< / td > < / tr >
< tr class = "separator:a2b6df2a9e48155ff9734caca8504a79f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:a36829163d42973034a1f8a7ecc57a1de" id = "r_a36829163d42973034a1f8a7ecc57a1de" > < td class = "memTemplParams" colspan = "2" > template< typename T> < / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "memitem:a36829163d42973034a1f8a7ecc57a1de" > < td class = "memTemplItemLeft" align = "right" valign = "top" > metal::enable_if_t< metal::is_integral_v< T > , T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "#a36829163d42973034a1f8a7ecc57a1de" > operator()< / a > (T base, T exp)< / td > < / tr >
< tr class = "separator:a36829163d42973034a1f8a7ecc57a1de" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a27cdfb313c4e82b63bdcdaee923cbbef" id = "r_a27cdfb313c4e82b63bdcdaee923cbbef" > < td class = "memItemLeft" align = "right" valign = "top" > template< > < / td > < / tr >
< tr class = "memitem:a27cdfb313c4e82b63bdcdaee923cbbef" > < td class = "memTemplItemLeft" align = "right" valign = "top" > < a class = "el" href = "structcomplex64__t.html" > complex64_t< / a >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "#a27cdfb313c4e82b63bdcdaee923cbbef" > operator()< / a > (< a class = "el" href = "structcomplex64__t.html" > complex64_t< / a > x, < a class = "el" href = "structcomplex64__t.html" > complex64_t< / a > y)< / td > < / tr >
< tr class = "separator:a27cdfb313c4e82b63bdcdaee923cbbef" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "a27cdfb313c4e82b63bdcdaee923cbbef" name = "a27cdfb313c4e82b63bdcdaee923cbbef" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a27cdfb313c4e82b63bdcdaee923cbbef" > ◆   < / a > < / span > operator()() < span class = "overload" > [1/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< > < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "structcomplex64__t.html" > complex64_t< / a > Power::operator() < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "structcomplex64__t.html" > complex64_t< / a > < / td > < td class = "paramname" > < span class = "paramname" > < em > x< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "structcomplex64__t.html" > complex64_t< / a > < / td > < td class = "paramname" > < span class = "paramname" > < em > y< / em > < / span >   )< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2025-01-10 05:56:20 +08:00
< span class = "mlabels" > < span class = "mlabel inline" > inline< / span > < / span > < / td >
2024-10-15 23:12:17 +08:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a2b6df2a9e48155ff9734caca8504a79f" name = "a2b6df2a9e48155ff9734caca8504a79f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a2b6df2a9e48155ff9734caca8504a79f" > ◆   < / a > < / span > operator()() < span class = "overload" > [2/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
2025-01-10 05:56:20 +08:00
template< typename T> < / div >
2024-10-15 23:12:17 +08:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > metal::enable_if_t< !metal::is_integral_v< T > , T > Power::operator() < / td >
< td > (< / td >
< td class = "paramtype" > T< / td > < td class = "paramname" > < span class = "paramname" > < em > base< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T< / td > < td class = "paramname" > < span class = "paramname" > < em > exp< / em > < / span >   )< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2025-01-10 05:56:20 +08:00
< span class = "mlabels" > < span class = "mlabel inline" > inline< / span > < / span > < / td >
2024-10-15 23:12:17 +08:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a36829163d42973034a1f8a7ecc57a1de" name = "a36829163d42973034a1f8a7ecc57a1de" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a36829163d42973034a1f8a7ecc57a1de" > ◆   < / a > < / span > operator()() < span class = "overload" > [3/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
2025-01-10 05:56:20 +08:00
template< typename T> < / div >
2024-10-15 23:12:17 +08:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > metal::enable_if_t< metal::is_integral_v< T > , T > Power::operator() < / td >
< td > (< / td >
< td class = "paramtype" > T< / td > < td class = "paramname" > < span class = "paramname" > < em > base< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T< / td > < td class = "paramname" > < span class = "paramname" > < em > exp< / em > < / span >   )< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2025-01-10 05:56:20 +08:00
< span class = "mlabels" > < span class = "mlabel inline" > inline< / span > < / span > < / td >
2024-10-15 23:12:17 +08:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< hr / > The documentation for this struct was generated from the following file:< ul >
2025-02-07 04:16:29 +08:00
< li > mlx/backend/metal/kernels/< a class = "el" href = "metal_2kernels_2binary__ops_8h_source.html" > binary_ops.h< / a > < / li >
2024-10-15 23:12:17 +08:00
< / ul >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
2025-01-10 05:56:20 +08:00
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "struct_power.html" > Power< / a > < / li >
2025-02-07 04:16:29 +08:00
< 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 >
2025-01-10 05:56:20 +08:00
< / ul >
< / div >
2024-10-15 23:12:17 +08:00
< / body >
< / html >