docs update

This commit is contained in:
Awni Hannun
2024-07-25 11:59:11 -07:00
committed by CircleCI Docs
parent b95224115c
commit 6e9288a41c
512 changed files with 11657 additions and 3434 deletions

View File

@@ -86,6 +86,7 @@ $(function() {
<code>#include &lt;optional&gt;</code><br />
<code>#include &quot;<a class="el" href="array_8h_source.html">mlx/array.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="stream_8h_source.html">mlx/stream.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="utils_8h_source.html">mlx/utils.h</a>&quot;</code><br />
</div>
<p><a href="random_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
@@ -176,6 +177,15 @@ Functions</h2></td></tr>
<tr class="separator:aa7104c436b3972a2480cfeb54554855f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa336e774783543705dffe2ad5b2c49c1" id="r_aa336e774783543705dffe2ad5b2c49c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlx_1_1core_1_1array.html">array</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core_1_1random.html#aa336e774783543705dffe2ad5b2c49c1">mlx::core::random::categorical</a> (const <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &amp;logits, int axis=-1, const std::optional&lt; <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &gt; &amp;<a class="el" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a>=std::nullopt, <a class="el" href="namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58">StreamOrDevice</a> s={})</td></tr>
<tr class="separator:aa336e774783543705dffe2ad5b2c49c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad52c7cb7709542c5a464df12bfc6b0b7" id="r_ad52c7cb7709542c5a464df12bfc6b0b7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlx_1_1core_1_1array.html">array</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core_1_1random.html#ad52c7cb7709542c5a464df12bfc6b0b7">mlx::core::random::laplace</a> (const std::vector&lt; int &gt; &amp;shape, <a class="el" href="structmlx_1_1core_1_1_dtype.html">Dtype</a> dtype, const float loc, const float scale, const std::optional&lt; <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &gt; &amp;<a class="el" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a>=std::nullopt, <a class="el" href="namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58">StreamOrDevice</a> s={})</td></tr>
<tr class="memdesc:ad52c7cb7709542c5a464df12bfc6b0b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate samples from the laplace distribution. <br /></td></tr>
<tr class="separator:ad52c7cb7709542c5a464df12bfc6b0b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d0c393dd53d6fdd02e46844b3cf45d1" id="r_a0d0c393dd53d6fdd02e46844b3cf45d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlx_1_1core_1_1array.html">array</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core_1_1random.html#a0d0c393dd53d6fdd02e46844b3cf45d1">mlx::core::random::laplace</a> (const std::vector&lt; int &gt; &amp;shape, const float loc, const float scale, const std::optional&lt; <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &gt; &amp;<a class="el" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a>=std::nullopt, <a class="el" href="namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58">StreamOrDevice</a> s={})</td></tr>
<tr class="separator:a0d0c393dd53d6fdd02e46844b3cf45d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f73eb7d337529708937eef0080c0998" id="r_a0f73eb7d337529708937eef0080c0998"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlx_1_1core_1_1array.html">array</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core_1_1random.html#a0f73eb7d337529708937eef0080c0998">mlx::core::random::laplace</a> (const std::vector&lt; int &gt; &amp;shape, const <a class="el" href="structmlx_1_1core_1_1_dtype.html">Dtype</a> dtype, const std::optional&lt; <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &gt; &amp;<a class="el" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a>=std::nullopt, <a class="el" href="namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58">StreamOrDevice</a> s={})</td></tr>
<tr class="separator:a0f73eb7d337529708937eef0080c0998"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96b6f40efbee7045a35218296ba12a37" id="r_a96b6f40efbee7045a35218296ba12a37"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlx_1_1core_1_1array.html">array</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemlx_1_1core_1_1random.html#a96b6f40efbee7045a35218296ba12a37">mlx::core::random::laplace</a> (const std::vector&lt; int &gt; &amp;shape, const std::optional&lt; <a class="el" href="classmlx_1_1core_1_1array.html">array</a> &gt; &amp;<a class="el" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a>=std::nullopt, <a class="el" href="namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58">StreamOrDevice</a> s={})</td></tr>
<tr class="separator:a96b6f40efbee7045a35218296ba12a37"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->