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" / >
< meta name = "generator" content = "Doxygen 1.12.0" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > MLX: mlx/array.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 >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< 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 >
< 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.12.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" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @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',false);
$(function() { init_search(); });
});
/* @license-end */
< / script >
< div id = "main-nav" > < / div >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
< / script >
<!-- 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 > < / ul >
< / div >
< / div > <!-- top -->
< div id = "doc-content" >
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Classes< / a > |
< a href = "#namespaces" > Namespaces< / a > |
< a href = "#typedef-members" > Typedefs< / a > |
< a href = "#var-members" > Variables< / a > < / div >
< div class = "headertitle" > < div class = "title" > array.h File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include < algorithm> < / code > < br / >
< code > #include < cstdint> < / code > < br / >
< code > #include < functional> < / code > < br / >
< code > #include < memory> < / code > < br / >
< code > #include < vector> < / code > < br / >
< code > #include " < a class = "el" href = "allocator_8h_source.html" > mlx/allocator.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "dtype_8h_source.html" > mlx/dtype.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "event_8h_source.html" > mlx/event.h< / a > " < / code > < br / >
< / div >
< p > < a href = "array_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" > class   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classmlx_1_1core_1_1array.html" > mlx::core::array< / 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_1array_1_1_array_iterator.html" > mlx::core::array::ArrayIterator< / 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_1array_1_1_data.html" > mlx::core::array::Data< / 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_1array_1_1_flags.html" > mlx::core::array::Flags< / 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 = "namespaces" name = "namespaces" > < / a >
Namespaces< / h2 > < / td > < / tr >
< tr class = "memitem:" > < 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:" > < 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 = "typedef-members" name = "typedef-members" > < / a >
Typedefs< / h2 > < / td > < / tr >
2024-12-07 05:22:39 +08:00
< tr class = "memitem:af834c1e18d6f11c4f233a2e1ce814a4b" id = "r_af834c1e18d6f11c4f233a2e1ce814a4b" > < td class = "memItemLeft" align = "right" valign = "top" > using  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#af834c1e18d6f11c4f233a2e1ce814a4b" > mlx::core::Deleter< / a > = std::function< void(< a class = "el" href = "classmlx_1_1core_1_1allocator_1_1_buffer.html" > allocator::Buffer< / a > )> < / td > < / tr >
< tr class = "separator:af834c1e18d6f11c4f233a2e1ce814a4b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a9be5b57d393e66169279cf521813af9b" id = "r_a9be5b57d393e66169279cf521813af9b" > < td class = "memItemLeft" align = "right" valign = "top" > using  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a9be5b57d393e66169279cf521813af9b" > mlx::core::Shape< / a > = std::vector< int32_t> < / td > < / tr >
< tr class = "separator:a9be5b57d393e66169279cf521813af9b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aca6e505f52ea1464d9c2c09f9f445d62" id = "r_aca6e505f52ea1464d9c2c09f9f445d62" > < td class = "memItemLeft" align = "right" valign = "top" > using  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#aca6e505f52ea1464d9c2c09f9f445d62" > mlx::core::Strides< / a > = std::vector< size_t> < / td > < / tr >
< tr class = "separator:aca6e505f52ea1464d9c2c09f9f445d62" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "memitem:af89751d79339f3e4d9318ea97d64d114" id = "r_af89751d79339f3e4d9318ea97d64d114" > < td class = "memTemplParams" colspan = "2" > template< typename... T> < / td > < / tr >
< tr class = "memitem:af89751d79339f3e4d9318ea97d64d114" > < td class = "memTemplItemLeft" align = "right" valign = "top" > using  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#af89751d79339f3e4d9318ea97d64d114" > mlx::core::enable_for_arrays_t< / a > = typename std::enable_if_t< < a class = "el" href = "namespacemlx_1_1core.html#a94c1057929b390e5613304afa16dfbda" > is_arrays_v< / a > < T...> > < / td > < / tr >
< tr class = "separator:af89751d79339f3e4d9318ea97d64d114" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "var-members" name = "var-members" > < / a >
Variables< / h2 > < / td > < / tr >
< tr class = "memitem:a01b0d64a75dfa2e95d6c7b5c53d708af" id = "r_a01b0d64a75dfa2e95d6c7b5c53d708af" > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
< tr class = "memitem:a01b0d64a75dfa2e95d6c7b5c53d708af" > < td class = "memTemplItemLeft" align = "right" valign = "top" > constexpr bool  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a01b0d64a75dfa2e95d6c7b5c53d708af" > mlx::core::is_array_v< / a > < / td > < / tr >
< tr class = "separator:a01b0d64a75dfa2e95d6c7b5c53d708af" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a94c1057929b390e5613304afa16dfbda" id = "r_a94c1057929b390e5613304afa16dfbda" > < td class = "memTemplParams" colspan = "2" > template< typename... T> < / td > < / tr >
< tr class = "memitem:a94c1057929b390e5613304afa16dfbda" > < td class = "memTemplItemLeft" align = "right" valign = "top" > constexpr bool  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a94c1057929b390e5613304afa16dfbda" > mlx::core::is_arrays_v< / a > = (< a class = "el" href = "namespacemlx_1_1core.html#a01b0d64a75dfa2e95d6c7b5c53d708af" > is_array_v< / a > < T> & & ...)< / td > < / tr >
< tr class = "separator:a94c1057929b390e5613304afa16dfbda" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / 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.12.0
< / small > < / address >
< / div > <!-- doc - content -->
< / body >
< / html >