2024-06-07 11:28:06 +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" / >
< meta name = "generator" content = "Doxygen 1.10.0" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > MLX: mlx/backend/common/reduce.h File 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 >
< 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 >
< 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 >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
< 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" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(function() { init_search(); });
});
/* @license-end */
< / script >
< div id = "main-nav" > < / div >
<!-- 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 id = "nav-path" class = "navpath" >
< 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_f149b24a1b5be11cd70151abe517e3f8.html" > common< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Classes< / a > |
< a href = "#namespaces" > Namespaces< / a > |
2024-07-12 06:32:08 +08:00
< a href = "#enum-members" > Enumerations< / a > |
< a href = "#func-members" > Functions< / a > < / div >
2024-06-07 11:28:06 +08:00
< div class = "headertitle" > < div class = "title" > reduce.h File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include " < a class = "el" href = "backend_2common_2utils_8h_source.html" > mlx/backend/common/utils.h< / a > " < / code > < br / >
< / div >
< p > < a href = "common_2reduce_8h_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "nested-classes" name = "nested-classes" > < / a >
Classes< / h2 > < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structmlx_1_1core_1_1_reduction_plan.html" > mlx::core::ReductionPlan< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-07-12 06:32:08 +08:00
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structmlx_1_1core_1_1_default_strided_reduce.html" > mlx::core::DefaultStridedReduce< T, U, Op > < / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structmlx_1_1core_1_1_default_contiguous_reduce.html" > mlx::core::DefaultContiguousReduce< T, U, Op > < / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-06-07 11:28:06 +08:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "namespaces" name = "namespaces" > < / a >
Namespaces< / h2 > < / td > < / tr >
< tr class = "memitem:namespacemlx" id = "r_namespacemlx" > < td class = "memItemLeft" align = "right" valign = "top" > namespace   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx.html" > mlx< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:namespacemlx_1_1core" id = "r_namespacemlx_1_1core" > < td class = "memItemLeft" align = "right" valign = "top" > namespace   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html" > mlx::core< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "enum-members" name = "enum-members" > < / a >
Enumerations< / h2 > < / td > < / tr >
< tr class = "memitem:a12412984a1cabfe1189942c898f8fe65" id = "r_a12412984a1cabfe1189942c898f8fe65" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a12412984a1cabfe1189942c898f8fe65" > mlx::core::ReductionOpType< / a > { < br / >
    < a class = "el" href = "namespacemlx_1_1core.html#a12412984a1cabfe1189942c898f8fe65ae4e34c7154eb8dc47aa8503209730424" > mlx::core::ContiguousAllReduce< / a >
, < a class = "el" href = "namespacemlx_1_1core.html#a12412984a1cabfe1189942c898f8fe65ad2547f25dffe8d8936dbec25601cfc84" > mlx::core::ContiguousReduce< / a >
, < a class = "el" href = "namespacemlx_1_1core.html#a12412984a1cabfe1189942c898f8fe65ab48dac7508a2c790de1bdc33f29177ed" > mlx::core::ContiguousStridedReduce< / a >
, < a class = "el" href = "namespacemlx_1_1core.html#a12412984a1cabfe1189942c898f8fe65a540cf31fe6858115a02e789938297cdb" > mlx::core::GeneralContiguousReduce< / a >
, < br / >
    < a class = "el" href = "namespacemlx_1_1core.html#a12412984a1cabfe1189942c898f8fe65ad999b1a8ae1d7436efb5ffdfafb1dd3d" > mlx::core::GeneralStridedReduce< / a >
, < a class = "el" href = "namespacemlx_1_1core.html#a12412984a1cabfe1189942c898f8fe65a3622f95ed0ec99657f9ad8ef39ec2184" > mlx::core::GeneralReduce< / a >
< br / >
}< / td > < / tr >
< tr class = "separator:a12412984a1cabfe1189942c898f8fe65" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-07-12 06:32:08 +08:00
< / 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:a1555dc378c5254e79199421761f26f2b" id = "r_a1555dc378c5254e79199421761f26f2b" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structmlx_1_1core_1_1_reduction_plan.html" > ReductionPlan< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a1555dc378c5254e79199421761f26f2b" > mlx::core::get_reduction_plan< / a > (const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & x, const std::vector< int > axes)< / td > < / tr >
< tr class = "separator:a1555dc378c5254e79199421761f26f2b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a9a9254ce9975ec247a2718bc02d6f201" id = "r_a9a9254ce9975ec247a2718bc02d6f201" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a9a9254ce9975ec247a2718bc02d6f201" > mlx::core::nd_loop< / a > (std::function< void(int)> callback, const std::vector< int > & shape, const std::vector< size_t > & strides)< / td > < / tr >
< tr class = "separator:a9a9254ce9975ec247a2718bc02d6f201" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a44c3ea6db6553c3f6552b9ba64a69494" id = "r_a44c3ea6db6553c3f6552b9ba64a69494" > < td class = "memItemLeft" align = "right" valign = "top" > std::pair< std::vector< int > , std::vector< size_t > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a44c3ea6db6553c3f6552b9ba64a69494" > mlx::core::shapes_without_reduction_axes< / a > (const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & x, const std::vector< int > & axes)< / td > < / tr >
< tr class = "separator:a44c3ea6db6553c3f6552b9ba64a69494" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa08ffc1e8f2c58afb2d463496f827ef0" id = "r_aa08ffc1e8f2c58afb2d463496f827ef0" > < td class = "memTemplParams" colspan = "2" > template< typename T , typename U , typename OpS , typename OpC , typename Op > < / td > < / tr >
< tr class = "memitem:aa08ffc1e8f2c58afb2d463496f827ef0" > < td class = "memTemplItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#aa08ffc1e8f2c58afb2d463496f827ef0" > mlx::core::reduction_op< / a > (const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & x, < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, const std::vector< int > & axes, U init, OpS ops, OpC opc, Op < a class = "el" href = "common_2binary_8h.html#a70228731d29946574b238d21fb4b360c" > op< / a > )< / td > < / tr >
< tr class = "separator:aa08ffc1e8f2c58afb2d463496f827ef0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a064d61b6ddc9e5d1e261a7e33de71083" id = "r_a064d61b6ddc9e5d1e261a7e33de71083" > < td class = "memTemplParams" colspan = "2" > template< typename T , typename U , typename Op > < / td > < / tr >
< tr class = "memitem:a064d61b6ddc9e5d1e261a7e33de71083" > < td class = "memTemplItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a064d61b6ddc9e5d1e261a7e33de71083" > mlx::core::reduction_op< / a > (const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & x, < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, const std::vector< int > & axes, U init, Op < a class = "el" href = "common_2binary_8h.html#a70228731d29946574b238d21fb4b360c" > op< / a > )< / td > < / tr >
< tr class = "separator:a064d61b6ddc9e5d1e261a7e33de71083" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-06-07 11:28:06 +08:00
< / table >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by  < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.10.0
< / small > < / address >
< / body >
< / html >