File: xrandom.rst

package info (click to toggle)
xtensor 0.25.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,476 kB
  • sloc: cpp: 65,302; makefile: 202; python: 171; javascript: 8
file content (55 lines) | stat: -rw-r--r-- 1,800 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.. Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht

   Distributed under the terms of the BSD 3-Clause License.

   The full license is in the file LICENSE, distributed with this software.

xrandom
=======

Defined in ``xtensor/xrandom.hpp``

.. warning:: xtensor uses a lazy generator for random numbers. You need to assign them or use ``eval`` to keep the generated values consistent.

.. doxygenfunction:: xt::random::get_default_random_engine

.. doxygenfunction:: xt::random::seed

.. doxygenfunction:: xt::random::rand(const S&, T, T, E&)

.. doxygenfunction:: xt::random::randint(const S&, T, T, E&)

.. doxygenfunction:: xt::random::randn(const S&, T, T, E&)

.. doxygenfunction:: xt::random::binomial(const S&, T, D, E&)

.. doxygenfunction:: xt::random::geometric(const S&, D, E&)

.. doxygenfunction:: xt::random::negative_binomial(const S&, T, D, E&)

.. doxygenfunction:: xt::random::poisson(const S&, D, E&)

.. doxygenfunction:: xt::random::exponential(const S&, T, E&)

.. doxygenfunction:: xt::random::gamma(const S&, T, T, E&)

.. doxygenfunction:: xt::random::weibull(const S&, T, T, E&)

.. doxygenfunction:: xt::random::extreme_value(const S&, T, T, E&)

.. doxygenfunction:: xt::random::lognormal(const S&, T, T, E&)

.. doxygenfunction:: xt::random::chi_squared(const S&, T, E&)

.. doxygenfunction:: xt::random::cauchy(const S&, T, T, E&)

.. doxygenfunction:: xt::random::fisher_f(const S&, T, T, E&)

.. doxygenfunction:: xt::random::student_t(const S&, T, E&)

.. doxygenfunction:: xt::random::choice(const xexpression<T>&, std::size_t, bool, E&)
.. doxygenfunction:: xt::random::choice(const xexpression<T>&, std::size_t, const xexpression<W>&, bool, E&)

.. doxygenfunction:: xt::random::shuffle

.. doxygenfunction:: xt::random::permutation(T, E&)