This commit is contained in:
conrad
2023-08-07 22:59:37 +10:00
parent 22e5e903aa
commit a44e7fddc5
+11 -10
View File
@@ -549,13 +549,14 @@ Conrad Sanderson and Ryan Curtin.
<tbody>
<tr style="background-color: #F5F5F5;"><td><a href="#constants">constants</a></td><td>&nbsp;</td><td>pi, inf, NaN, eps, speed of light, ...</td></tr>
<tr style="background-color: #F5F5F5;"><td><a href="#wall_clock">wall_clock</a></td><td>&nbsp;</td><td>timer for measuring number of elapsed seconds</td></tr>
<tr style="background-color: #F5F5F5;"><td><a href="#output_streams">output&nbsp;streams</a></td><td>&nbsp;</td><td>streams for printing warnings and errors</td></tr>
<tr style="background-color: #F5F5F5;"><td><a href="#rng_seed">RNG&nbsp;seed&nbsp;setting</a></td><td>&nbsp;</td><td>functions for changing RNG seeds</td></tr>
<tr><td><a href="#output_streams">output&nbsp;streams</a></td><td>&nbsp;</td><td>streams for printing warnings and errors</td></tr>
<tr><td><a href="#uword">uword&nbsp;/&nbsp;sword</a></td><td>&nbsp;</td><td>shorthand for unsigned and signed integers</td></tr>
<tr><td><a href="#cx_double">cx_double&nbsp;/&nbsp;cx_float</a></td><td>&nbsp;</td><td>shorthand for std::complex&lt;double&gt; and std::complex&lt;float&gt;</td></tr>
<tr><td><a href="#syntax">Matlab/Armadillo&nbsp;syntax&nbsp;differences</a></td><td>&nbsp;</td><td>examples of Matlab syntax and conceptually corresponding Armadillo syntax</td></tr>
<tr style="background-color: #F5F5F5;"><td><a href="#syntax">Matlab/Armadillo&nbsp;syntax&nbsp;differences</a></td><td>&nbsp;</td><td>examples of Matlab syntax and conceptually corresponding Armadillo syntax</td></tr>
<tr style="background-color: #F5F5F5;"><td><a href="#example_prog">example&nbsp;program</a></td><td>&nbsp;</td><td>short example program</td></tr>
<tr style="background-color: #F5F5F5;"><td><a href="#config_hpp">config.hpp</a></td><td>&nbsp;</td><td>configuration options</td></tr>
<tr style="background-color: #F5F5F5;"><td><a href="#changelog">API&nbsp;additions</a></td><td>&nbsp;</td><td>API stability and list of API additions</td></tr>
<tr><td><a href="#changelog">API&nbsp;additions</a></td><td>&nbsp;</td><td>API stability and list of API additions</td></tr>
<!--<tr><td><a href="#log_add">log_add</a></td><td>&nbsp;</td><td>TODO</td></tr>-->
<!--<tr><td><a href="#catching_exceptions">catching exceptions</a></td><td>&nbsp;</td><td>TODO</td></tr>-->
</tbody>
@@ -18030,7 +18031,7 @@ There are two functions to change the seed used by the random number generator (
<tbody>
<tr>
<td style="vertical-align: top;">
<b><code>arma_rng::set_seed(value)</code></b>
<b><code>arma_rng::set_seed(&thinsp;value&thinsp;)</code></b>
</td>
<td style="vertical-align: top;">&nbsp;<br>
</td>
@@ -18060,7 +18061,7 @@ Since Armadillo 12.6.2, the default RNG on all systems is the 64-bit version of
</li>
<br>
<li>
<b>Caveat:</b> when using a framework such as OpenMP for multi-threading and the underlying system properly supports <a href="https://en.cppreference.com/w/cpp/language/storage_duration">thread_local</a>,
<b>Caveat:</b> when using a framework such as OpenMP for multi-threading and the underlying system supports the <a href="https://en.cppreference.com/w/cpp/language/storage_duration">thread_local</a> storage specifier,
the above functions change the seed only within the thread they are running on
</li>
<br>
@@ -18099,11 +18100,11 @@ See also:
<a href="#shuffle">shuffle()</a>,
<a href="#randperm">randperm()</a>
</li>
<li><a href="https://en.wikipedia.org/wiki/Pseudorandom_number_generator">Pseudo-random number generator in Wikipedia</a></li>
<li><a href="https://en.wikipedia.org/wiki/Mersenne_Twister">Mersenne Twister in Wikipedia</a></li>
<li><a href="https://en.wikipedia.org/wiki//dev/random">/dev/random in Wikipedia</a></li>
<li><a href="https://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine">std::mersenne_twister_engine in cppreference.com</a></li>
<li><a href="https://en.cppreference.com/w/cpp/numeric/random/random_device">std::random_device in cppreference.com</a></li>
<li><a href="https://en.wikipedia.org/wiki/Pseudorandom_number_generator">Pseudo-random number generator</a> in Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Mersenne_Twister">Mersenne Twister</a> in Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki//dev/random">/dev/random</a> in Wikipedia</li>
<li><a href="https://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine">std::mersenne_twister_engine</a> in cppreference.com</li>
<li><a href="https://en.cppreference.com/w/cpp/numeric/random/random_device">std::random_device</a> in cppreference.com</li>
</ul>
</li>
</ul>