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: mlx/utils.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" / >
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('utils_8h.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 = "#nested-classes" > Classes< / a > |
< a href = "#namespaces" > Namespaces< / a > |
< a href = "#typedef-members" > Typedefs< / a > |
2025-01-10 05:56:20 +08:00
< a href = "#func-members" > Functions< / a > < / div >
2024-10-15 23:12:17 +08:00
< div class = "headertitle" > < div class = "title" > utils.h File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2025-01-10 05:56:20 +08:00
< div class = "textblock" > < code > #include < exception> < / code > < br / >
< code > #include < variant> < / code > < br / >
2024-10-15 23:12:17 +08:00
< code > #include " < a class = "el" href = "array_8h_source.html" > mlx/array.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "device_8h_source.html" > mlx/device.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 = "stream_8h_source.html" > mlx/stream.h< / a > " < / code > < br / >
< / div >
< p > < a href = "utils_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_stream_context.html" > mlx::core::StreamContext< / 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_print_formatter.html" > mlx::core::PrintFormatter< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +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_1finfo.html" > mlx::core::finfo< / a > < / td > < / tr >
< tr class = "memdesc:" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Holds information about floating-point types. < a href = "structmlx_1_1core_1_1finfo.html#details" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +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:" > < 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 >
2024-11-23 04:24:16 +08:00
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > namespace   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core_1_1env.html" > mlx::core::env< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +08:00
< / 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 >
< tr class = "memitem:a95fc1013cc48fbfee0c54310711a5e58" id = "r_a95fc1013cc48fbfee0c54310711a5e58" > < td class = "memItemLeft" align = "right" valign = "top" > using  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58" > mlx::core::StreamOrDevice< / a > = std::variant< std::monostate, < a class = "el" href = "structmlx_1_1core_1_1_stream.html" > Stream< / a > , < a class = "el" href = "structmlx_1_1core_1_1_device.html" > Device< / a > > < / td > < / tr >
< tr class = "separator:a95fc1013cc48fbfee0c54310711a5e58" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a4734a596e57434492ddfe79f2cb9dbf9" id = "r_a4734a596e57434492ddfe79f2cb9dbf9" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structmlx_1_1core_1_1_stream.html" > Stream< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a4734a596e57434492ddfe79f2cb9dbf9" > mlx::core::to_stream< / a > (< a class = "el" href = "namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58" > StreamOrDevice< / a > s)< / td > < / tr >
< tr class = "separator:a4734a596e57434492ddfe79f2cb9dbf9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-03-21 06:37:22 +08:00
< tr class = "memitem:a999be930e8a5b35eb33d934eefd548e8" id = "r_a999be930e8a5b35eb33d934eefd548e8" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structmlx_1_1core_1_1_stream.html" > Stream< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a999be930e8a5b35eb33d934eefd548e8" > mlx::core::to_stream< / a > (< a class = "el" href = "namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58" > StreamOrDevice< / a > s, < a class = "el" href = "structmlx_1_1core_1_1_device.html" > Device< / a > default_)< / td > < / tr >
< tr class = "separator:a999be930e8a5b35eb33d934eefd548e8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:afc71e62dc5757564486cea5ebb12500e" id = "r_afc71e62dc5757564486cea5ebb12500e" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structmlx_1_1core_1_1_print_formatter.html" > PrintFormatter< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#afc71e62dc5757564486cea5ebb12500e" > mlx::core::get_global_formatter< / a > ()< / td > < / tr >
< tr class = "separator:afc71e62dc5757564486cea5ebb12500e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae1b6e5cfd27b1526285648686898e011" id = "r_ae1b6e5cfd27b1526285648686898e011" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#ae1b6e5cfd27b1526285648686898e011" > mlx::core::abort_with_exception< / a > (const std::exception & error)< / td > < / tr >
< tr class = "memdesc:ae1b6e5cfd27b1526285648686898e011" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Print the exception and then abort. < br / > < / td > < / tr >
< tr class = "separator:ae1b6e5cfd27b1526285648686898e011" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "memitem:a8b984eef832f757e28cd262d64a49ae7" id = "r_a8b984eef832f757e28cd262d64a49ae7" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a8b984eef832f757e28cd262d64a49ae7" > mlx::core::result_type< / a > (const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & a, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & b)< / td > < / tr >
< tr class = "memdesc:a8b984eef832f757e28cd262d64a49ae7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The type from promoting the arrays' types with one another. < br / > < / td > < / tr >
< tr class = "separator:a8b984eef832f757e28cd262d64a49ae7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac457c232f956ba802acb69c5a621633d" id = "r_ac457c232f956ba802acb69c5a621633d" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#ac457c232f956ba802acb69c5a621633d" > mlx::core::result_type< / a > (const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & a, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & b, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & c)< / td > < / tr >
< tr class = "separator:ac457c232f956ba802acb69c5a621633d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aafaf24a28297428caf6d0c36c623489e" id = "r_aafaf24a28297428caf6d0c36c623489e" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#aafaf24a28297428caf6d0c36c623489e" > mlx::core::result_type< / a > (const std::vector< < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > > & arrays)< / td > < / tr >
< tr class = "separator:aafaf24a28297428caf6d0c36c623489e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:aefa6a2ec6439e9619cafd227a1dc14ab" id = "r_aefa6a2ec6439e9619cafd227a1dc14ab" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "namespacemlx_1_1core.html#a694e23f2d59606643728ad443d621416" > Shape< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#aefa6a2ec6439e9619cafd227a1dc14ab" > mlx::core::broadcast_shapes< / a > (const < a class = "el" href = "namespacemlx_1_1core.html#a694e23f2d59606643728ad443d621416" > Shape< / a > & s1, const < a class = "el" href = "namespacemlx_1_1core.html#a694e23f2d59606643728ad443d621416" > Shape< / a > & s2)< / td > < / tr >
2024-12-07 05:22:39 +08:00
< tr class = "separator:aefa6a2ec6439e9619cafd227a1dc14ab" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:a1cc130b06d9cdd03dddc74a3b1db0167" id = "r_a1cc130b06d9cdd03dddc74a3b1db0167" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a1cc130b06d9cdd03dddc74a3b1db0167" > mlx::core::normalize_axis_index< / a > (int axis, int ndim, const std::string & msg_prefix=" " )< / td > < / tr >
< tr class = "memdesc:a1cc130b06d9cdd03dddc74a3b1db0167" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the axis normalized to be in the range [0, ndim). < br / > < / td > < / tr >
< tr class = "separator:a1cc130b06d9cdd03dddc74a3b1db0167" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "memitem:a1e5c30e316afa30c14bc48b92afdb794" id = "r_a1e5c30e316afa30c14bc48b92afdb794" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a1e5c30e316afa30c14bc48b92afdb794" > mlx::core::operator< < < / a > (std::ostream & os, const < a class = "el" href = "structmlx_1_1core_1_1_device.html" > Device< / a > & d)< / td > < / tr >
< tr class = "separator:a1e5c30e316afa30c14bc48b92afdb794" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4ddd07021b36c848d6fb1dd9ac276822" id = "r_a4ddd07021b36c848d6fb1dd9ac276822" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a4ddd07021b36c848d6fb1dd9ac276822" > mlx::core::operator< < < / a > (std::ostream & os, const < a class = "el" href = "structmlx_1_1core_1_1_stream.html" > Stream< / a > & s)< / td > < / tr >
< tr class = "separator:a4ddd07021b36c848d6fb1dd9ac276822" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0023c267cf81345fad65e7a797954cd3" id = "r_a0023c267cf81345fad65e7a797954cd3" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a0023c267cf81345fad65e7a797954cd3" > mlx::core::operator< < < / a > (std::ostream & os, const < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > & d)< / td > < / tr >
< tr class = "separator:a0023c267cf81345fad65e7a797954cd3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1fd58658474fb842d648dcf8f7d9f078" id = "r_a1fd58658474fb842d648dcf8f7d9f078" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a1fd58658474fb842d648dcf8f7d9f078" > mlx::core::operator< < < / a > (std::ostream & os, const < a class = "el" href = "structmlx_1_1core_1_1_dtype.html#adb1ea8b45a0c53e04a0e73b168702715" > Dtype::Kind< / a > & k)< / td > < / tr >
< tr class = "separator:a1fd58658474fb842d648dcf8f7d9f078" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a123331f01188bd76e37623b63b6b4340" id = "r_a123331f01188bd76e37623b63b6b4340" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a123331f01188bd76e37623b63b6b4340" > mlx::core::operator< < < / a > (std::ostream & os, < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > a)< / td > < / tr >
< tr class = "separator:a123331f01188bd76e37623b63b6b4340" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:a4e733bba89760abed32393e085812b22" id = "r_a4e733bba89760abed32393e085812b22" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a4e733bba89760abed32393e085812b22" > mlx::core::operator< < < / a > (std::ostream & os, const std::vector< int > & v)< / td > < / tr >
< tr class = "separator:a4e733bba89760abed32393e085812b22" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "memitem:a5e5bd5c57b1cf19776bdb41e732861d9" id = "r_a5e5bd5c57b1cf19776bdb41e732861d9" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a5e5bd5c57b1cf19776bdb41e732861d9" > mlx::core::operator< < < / a > (std::ostream & os, const std::vector< int64_t > & v)< / td > < / tr >
< tr class = "separator:a5e5bd5c57b1cf19776bdb41e732861d9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a42a19c8442b173606e714364227e7d45" id = "r_a42a19c8442b173606e714364227e7d45" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a42a19c8442b173606e714364227e7d45" > mlx::core::operator< < < / a > (std::ostream & os, const < a class = "el" href = "structmlx_1_1core_1_1complex64__t.html" > complex64_t< / a > & v)< / td > < / tr >
< tr class = "separator:a42a19c8442b173606e714364227e7d45" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a57eb97a5eba99a846ac429795e407574" id = "r_a57eb97a5eba99a846ac429795e407574" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a57eb97a5eba99a846ac429795e407574" > mlx::core::operator< < < / a > (std::ostream & os, const < a class = "el" href = "namespacemlx_1_1core.html#afbd2769c30e721afc85a7b9fb55b8e52" > float16_t< / a > & v)< / td > < / tr >
< tr class = "separator:a57eb97a5eba99a846ac429795e407574" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:a7db909d54cf07375e89424c32c07a29c" id = "r_a7db909d54cf07375e89424c32c07a29c" > < td class = "memItemLeft" align = "right" valign = "top" > std::ostream &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a7db909d54cf07375e89424c32c07a29c" > mlx::core::operator< < < / a > (std::ostream & os, const < a class = "el" href = "namespacemlx_1_1core.html#acb5d16c9b83778c7621c38e522e0060b" > bfloat16_t< / a > & v)< / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "separator:a7db909d54cf07375e89424c32c07a29c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:adacbc4526e8964b267a8ec3eb1bc1a32" id = "r_adacbc4526e8964b267a8ec3eb1bc1a32" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#adacbc4526e8964b267a8ec3eb1bc1a32" > mlx::core::is_power_of_2< / a > (int n)< / td > < / tr >
< tr class = "separator:adacbc4526e8964b267a8ec3eb1bc1a32" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a685c0530e338aabc622325685846ce93" id = "r_a685c0530e338aabc622325685846ce93" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a685c0530e338aabc622325685846ce93" > mlx::core::next_power_of_2< / a > (int n)< / td > < / tr >
< tr class = "separator:a685c0530e338aabc622325685846ce93" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-11-23 04:24:16 +08:00
< tr class = "memitem:a0efecbf9efe695adafad12b5a4945df3" id = "r_a0efecbf9efe695adafad12b5a4945df3" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core_1_1env.html#a0efecbf9efe695adafad12b5a4945df3" > mlx::core::env::get_var< / a > (const char *name, int default_value)< / td > < / tr >
< tr class = "separator:a0efecbf9efe695adafad12b5a4945df3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac3266e1259a64c8b56bdc6c7029179f2" id = "r_ac3266e1259a64c8b56bdc6c7029179f2" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core_1_1env.html#ac3266e1259a64c8b56bdc6c7029179f2" > mlx::core::env::bfs_max_width< / a > ()< / td > < / tr >
< tr class = "separator:ac3266e1259a64c8b56bdc6c7029179f2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-02-15 05:44:39 +08:00
< tr class = "memitem:aa532471d4506e11e0da615b9d6451083" id = "r_aa532471d4506e11e0da615b9d6451083" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core_1_1env.html#aa532471d4506e11e0da615b9d6451083" > mlx::core::env::max_ops_per_buffer< / a > (int default_value)< / td > < / tr >
< tr class = "separator:aa532471d4506e11e0da615b9d6451083" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:afc55d7755889157ded85d52cde14f413" id = "r_afc55d7755889157ded85d52cde14f413" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core_1_1env.html#afc55d7755889157ded85d52cde14f413" > mlx::core::env::max_mb_per_buffer< / a > (int default_value)< / td > < / tr >
< tr class = "separator:afc55d7755889157ded85d52cde14f413" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-02-07 04:16:29 +08:00
< tr class = "memitem:afa1ecf087fe0c633d5460ddb2c31c945" id = "r_afa1ecf087fe0c633d5460ddb2c31c945" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core_1_1env.html#afa1ecf087fe0c633d5460ddb2c31c945" > mlx::core::env::metal_fast_synch< / a > ()< / td > < / tr >
< tr class = "separator:afa1ecf087fe0c633d5460ddb2c31c945" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +08:00
< / table >
< / 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 = "dir_938ab0ecf10b8b860ff766c820f665fd.html" > mlx< / a > < / li > < li class = "navelem" > < a class = "el" href = "utils_8h.html" > utils.h< / 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 >