docs update

This commit is contained in:
Awni Hannun
2024-07-11 15:32:08 -07:00
committed by CircleCI Docs
parent ba4eff9520
commit 0e688cbd0f
754 changed files with 24043 additions and 13535 deletions

View File

@@ -240,7 +240,7 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">const</span> std::optional&lt;array&gt;&amp; <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a> = std::nullopt,</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_typedef" href="namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58">StreamOrDevice</a> s = {}) {</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#a7289d3791aa4e8bfe28fafef4fb40e3b">randint</a>(<a class="code hl_class" href="classmlx_1_1core_1_1array.html">array</a>(low), <a class="code hl_class" href="classmlx_1_1core_1_1array.html">array</a>(high), shape, dtype, <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a>, <a class="code hl_function" href="namespacemlx_1_1core.html#a4734a596e57434492ddfe79f2cb9dbf9">to_stream</a>(s));</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>};</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>}</div>
</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1random.html#acb3f278fea2c4f06dea947d3bac2e9b7"> 154</a></span><a class="code hl_class" href="classmlx_1_1core_1_1array.html">array</a> <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acb3f278fea2c4f06dea947d3bac2e9b7">bernoulli</a>(</div>
@@ -260,7 +260,7 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keyword">const</span> std::optional&lt;array&gt;&amp; <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a> = std::nullopt,</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <a class="code hl_typedef" href="namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58">StreamOrDevice</a> s = {}) {</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acb3f278fea2c4f06dea947d3bac2e9b7">bernoulli</a>(<a class="code hl_class" href="classmlx_1_1core_1_1array.html">array</a>(p), <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a>, s);</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span>};</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span>}</div>
</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
@@ -271,7 +271,7 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="keyword">const</span> std::optional&lt;array&gt;&amp; <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a> = std::nullopt,</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <a class="code hl_typedef" href="namespacemlx_1_1core.html#a95fc1013cc48fbfee0c54310711a5e58">StreamOrDevice</a> s = {}) {</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acb3f278fea2c4f06dea947d3bac2e9b7">bernoulli</a>(<a class="code hl_class" href="classmlx_1_1core_1_1array.html">array</a>(p), shape, <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acf04b6f42de11383e86dcc7f98c67bd8">key</a>, s);</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span>};</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span>}</div>
</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1random.html#ad7eb4467e2f9d5f74a5607b29a935b6e"> 181</a></span><a class="code hl_class" href="classmlx_1_1core_1_1array.html">array</a> <a class="code hl_function" href="namespacemlx_1_1core_1_1random.html#acb3f278fea2c4f06dea947d3bac2e9b7">bernoulli</a>(</div>