summaryrefslogtreecommitdiff
path: root/numpy/random
Commit message (Collapse)AuthorAgeFilesLines
...
| * DOC: Explain spawn_key a little more.Robert Kern2022-08-121-2/+4
| |
| * DOC: Correct doc errorsKevin Sheppard2022-08-111-2/+2
| | | | | | | | Fix typos and wrap length
| * TYP: Import into random moduleKevin Sheppard2022-08-111-0/+2
| |
| * MAINT: Update typing informationKevin Sheppard2022-08-111-0/+6
| |
| * ENH: Add the capability to swap the singleton bit generatorKevin Sheppard2022-08-112-15/+171
| | | | | | | | | | | | | | Add a new version or seed that supports seeding any bit gen Add set/get_bit_generator as explicity methodds to support swapping closes #21808
| * TST: Fix spellingKevin Sheppard2022-07-192-2/+2
| |
| * BUG/ENH: ALlow bit generators to supply their own ctorKevin Sheppard2022-07-195-29/+61
| | | | | | | | | | | | | | Allow bit generators to supply their own constructors to enable Generator objects using arbitrary bit generators to be supported closes #22012
| * Merge pull request #21856 from bramton/mainCharles Harris2022-07-101-3/+7
| |\ | | | | | | DOC: Mention uniform in the np.random.Generator.random function.
| | * MAINT: Small fixupsCharles Harris2022-07-101-3/+3
| | |
| | * Links suddenly workingBram2022-07-081-2/+2
| | |
| | * Forgot backticksBram2022-06-291-1/+1
| | |
| | * Corrected reference to uniform()Bram2022-06-291-2/+2
| | |
| | * DOC: Mention uniform in the np.random.Generator.random function.Bram2022-06-271-1/+5
| | | | | | | | | Added a See also section to mention np.random.Generator.uniform.
| * | Merge pull request #21887 from matthew-brett/mingw-random-compileCharles Harris2022-07-103-3/+3
| |\ \ | | | | | | | | BLD: Allow GCC compile on mingw-w64-based systems
| | * | Allow GCC compile on mingw-w64-based systemsMatthew Brett2022-06-293-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Macro `__MINGW32__` always defined for Mingw-w64 compilers (32- or 64-bit): https://sourceforge.net/p/predef/wiki/Compilers/
| * | | MAINT: random: Annotate default_rng with cython.embedsignaturewarren2022-07-051-0/+1
| | | | | | | | | | | | | | | | Closes gh-21910
| * | | Fix lib flags for librandomMatthew Brett2022-06-291-22/+12
| |/ / | | | | | | | | | | | | Add the voltbl fix to librandom. Remove SSE flag for GCC on 32-bit Windows, it's the default.
| * | DOC: Fixed minor typo in BitGenerator reference (#21876)Bram2022-06-291-1/+1
| |/ | | | | Co-authored-by: Bram <b.t.ton@saxion.nl>
| * DOC: Replace the mathematical notation N(...) with text.warren2022-06-262-9/+17
| | | | | | | | | | | | | | | | | | The meaning of the second argument in the mathematical notation N(mu, b) for the normal distribution is not consistent. In some references it is the variance while in others it is the standard deviation. Let's avoid the ambiguity by not using the notation. Fixes #21296
| * MAINT: random: Update to disallowing complex inputs to multivariate_normal.warren2022-06-162-3/+8
| | | | | | | | | | | | | | * Disallow both mean and cov from being complex. * Raise a TypeError instead of a NotImplementedError if mean or cov is complex. * Expand and fix the unit test.
| * MAINT: random: Disallow complex covariances in multivariate_normalHameer Abbasi2022-06-162-0/+6
| | | | | | | | | | This commit disallows complex covariances in multivariate_normal as passing them can silently lead to incorrect results.
| * DOC: Correct formattingjcusick132022-06-051-1/+1
| |
| * DOC: Specify what is being broadcastedjcusick132022-06-051-5/+2
| |
| * DOC: Add note about broadcasting supportjcusick132022-06-051-0/+6
| |
| * Merge pull request #21504 from Yulv-git/typos1Ralf Gommers2022-05-252-3/+3
| |\ | | | | | | MAINT: Fix some typos.
| | * Fix some typos.Yulv-git2022-05-142-3/+3
| | |
| * | Tests/Docs: Update tests to Cython 0.29.30, mention in docsEwout ter Hoeven2022-05-201-2/+2
| | | | | | | | | | | | | | | | | | Cython 0.29.30 is required for building Numpy with Python 3.11. This commit updates that in the core/tests/test_cython.py and random/tests/test_exending.py files. It also mentions that Cython 0.29.30 is needed in the INSTALL documentation.
| * | Remove python <3.6 related thingsBrigitta Sipocz2022-05-171-7/+1
| |/
| * Merge pull request #21356 from urunsiyabend/patch-2Matti Picus2022-04-191-1/+1
| |\ | | | | | | DOC: Fix a typo in docstring of MT19937
| | * DOC: Fix a typo in docstring of MT19937Siyabend Ürün2022-04-181-1/+1
| | |
| * | doc: fix typoAndrey Andreyevich Bienkowski2022-04-181-1/+1
| | | | | | | | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
| * | Doc: Philox.jumped correct the formulaAndrey Andreyevich Bienkowski2022-04-171-1/+1
| |/ | | | | The documentation and the actual code were using different formulas
| * DOC: minor typo fix in numpy.random API docs (#21315)kennychenfs2022-04-101-1/+1
| | | | | | [ci skip]
| * Merge pull request #21291 from oscargus/spaceandcosCharles Harris2022-04-071-3/+3
| |\ | | | | | | DOC: Add space after argument name
| | * Add space after argument nameOscar Gustafsson2022-04-031-3/+3
| | |
| * | DOC: Add ref to handling axis param to permutedBhavuk kalra2022-04-041-0/+6
| | | | | | | | | Made suggested changes to also add Reference on handling of axis parameter
| * | DOC: Fixed the Incorrect outputBhavuk kalra2022-04-041-1/+1
| | |
| * | DOC: Made suggested changes.Bhavuk kalra2022-04-031-10/+15
| | | | | | | | | | | | Kept the Python code output uniform
| * | DOC: Improve "random.generator.shuffle" docs pagebhavukkalra2022-03-301-0/+16
| |/
| * MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-187-7/+7
| | | | | | | | i.e. `numpy.typing` and `numpy._typing`
| * Merge pull request #21005 from Androp0v/negative_binomial-checksCharles Harris2022-03-132-2/+58
| |\ | | | | | | BUG: Add parameter check to negative_binomial
| | * Improved negative_binomial checks documentationRaúl Montón Pinillos2022-02-211-3/+21
| | |
| | * Performance improvements for negative_binomial checksRaúl Montón Pinillos2022-02-182-6/+10
| | |
| | * Simplify check and add test for invalid combinations of p and n in ↵Raúl Montón Pinillos2022-02-172-17/+18
| | | | | | | | | | | | negative_binomial
| | * Add parameter check in negative_binomial generator to avoid infinite loop ↵Raúl Montón Pinillos2022-02-171-2/+35
| | | | | | | | | | | | for large values
| * | MAINT: Replace LooseVersion by _pep440.Charles Harris2022-02-051-4/+4
| |/ | | | | | | | | | | | | | | LooseVersion is provided by Python distutils, which is going away in 3.12. This PR vendors _pep440 from scipy and uses it as a replacement. Numpy distutils is not touched, replacing LooseVersion in that package was considered too risky, and numpy distutils will need to go away when Python distutils does.
| * Fix typo in setup.pycaioagiani2022-01-301-1/+1
| |
| * BUG: Fix the return type of random_float_fillHood Chatham2022-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | The `random_float_fill` function type is declared with return type `double` but I think this is a typo. The actual implementation of `random_float_fill` is `random_standard_uniform_fill_f` which has return type `void`: void random_standard_uniform_fill_f(bitgen_t *bitgen_state, npy_intp cnt, float *out) Also, `random_double_fill` is declared with return type `void`. This fixes the return type of `random_float_fill` to match.
| * BUG: Fix CI failure by adding symbols to be exported on CygwinMasamichi Hosoda2022-01-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two types of Cython in the Cygwin environment. One is a Cygwin package's Cython, which does not add a `__declspec(dllexport)` attribute to symbols due to its custom patch. The other is Cython, which is installed with pip and has no custom patches, so the symbols are added the `__declspec(dllexport)` attribute. Since CI uses symbols in distributions.c by cffi, we need to export them. The commit b797a0cb97a8a9e7e36962dc8c37c075967aa88b exports the symbols by adding the `__declspec(dllexport)` attribute to them. However, in the Cygwin package's Cython environment, the symbols required for import are not exported and the module cannot be imported. https://cygwin.com/pipermail/cygwin/2022-January/250481.html By the previous commit, the `__declspec(dllexport)` attribute is removed, so in the environment, the required symbols are exported and the module can be imported. However, on the other hand, in the pip-installed Cython environment, the symbols used by cffi are not exported, so CI failed. This commit exports the symbols without `__declspec(dllexport)` for use by cffi. It exports both the symbols required for import and the symbols used for cffi, regardless of which Cython environment is used.
| * DOC: Cosmetic docstring fix for numpydoc.Ross Barnowski2022-01-201-1/+1
| | | | | | | | | | | | Numpydoc 1.2 raises a UserWarning when the heading length doesn't match the heading text. This change prevents this UserWarning during sphinx-build.