summaryrefslogtreecommitdiff
path: root/doc/source/reference/random
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Typos found by codespellDimitri Papadopoulos2021-09-211-1/+1
|
* DOC: Use versionadded tag instead of inline comment to specify minimum ↵zoj2021-05-171-1/+3
| | | | version needed for random c-api
* DOC: Clarify minimum numpy version needed to use random c-apizoj2021-05-171-1/+1
|
* DOC: Update performance for new PRNGKevin Sheppard2021-05-111-65/+64
| | | | Add performance benchmarks for PCG64DXSM
* DOC: refine wording for clarityRobert Kern2021-05-041-4/+4
|
* DOC: fixes in response to comments.Robert Kern2021-05-042-21/+20
|
* STY: Add spaces after commas.Charles Harris2021-05-041-1/+1
|
* DOC: Add PCG64DXSM to performance-measuring script.Robert Kern2021-05-041-3/+3
|
* DOC: nuance recommendations for PCG64.Robert Kern2021-05-042-6/+12
|
* DOC: math formatting.Robert Kern2021-05-041-3/+3
|
* DOC: Document PCG64DXSM.Robert Kern2021-05-044-4/+197
|
* Fix typo in random docsChristina Hedges2021-04-221-1/+1
| | | | | DOC Fix typo in random docs `Randomstate` -> `RandomState`
* DOC: Update random c-api documentationzoj2021-04-171-3/+7
|
* Merge pull request #18579 from mwtoews/refactor-dictRalf Gommers2021-03-211-5/+4
|\ | | | | MAINT: OrderedDict is no longer necessary from Python 3.7
| * MAINT: OrderedDict is no longer necessary from Python 3.7Mike Taves2021-03-081-5/+4
| |
* | MAINT: Fix missed replacement of rg by rng.Charles Harris2021-03-151-1/+1
| |
* | DOC: Consistently use rng as variable name for random generatorsTim Hoffmann2021-03-153-29/+29
|/
* MAINT: Fix typo SeepSequenceCharles Harris2020-12-191-1/+1
|
* DOC: random: add some examples for SeedSequenceEvgeni Burovski2020-12-171-0/+38
| | | | | Based on https://mail.python.org/pipermail/numpy-discussion/2020-December/081323.html
* DOC: Fix for buildling with sphinx 3takanori-pskq2020-11-066-6/+12
|
* Update doc/source/reference/random/c-api.rstTakanori H2020-10-241-2/+1
| | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* DOC: Fix some referencestakanori-pskq2020-10-241-1/+1
|
* DOC: Fix the link to the quick-start in the old API functionsSebastian Berg2020-09-031-1/+1
|
* ENH: random: Add the method `permuted` to Generator. (#15121)Warren Weckesser2020-09-021-0/+94
| | | | | | | | | | | * ENH: random: Make _shuffle_raw and _shuffle_int standalone functions. * ENH: random: Add the method `permuted` to Generator. The method permuted(x, axis=None, out=None) shuffles an array. Unlike the existing shuffle method, it shuffles the slices along the given axis independently. Closes gh-5173.
* Update doc/source/reference/random/index.rstCharles Harris2020-07-131-2/+1
| | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
* DOC: use print() instead of str() for generator object to pass circleci testsLaurie2020-07-121-9/+9
|
* DOC: updates based on mattip's suggestions, add seed to all default_rng so ↵Laurie2020-07-121-24/+22
| | | | tests will pass, get rid of directly printing generator object
* DOC: add examples to random number generator pagesLaurie2020-07-121-20/+59
|
* DOC: reword random c-api introduction, cython is documented in Extending ↵Matti Picus2020-07-021-13/+7
| | | | | (#16731) DOC: reword random c-api introduction, cython is documented in Extending
* DOC: Fixes for 18 broken links (#16472)bjnath2020-06-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Fixes for 18 broken links This, with PR #16465, should fix nearly all the remaining broken links on the site. 4 or 5 others should be easy to fix and just need attention from someone more knowledgeable -- will open an issue. For release notes with dead links, I could usually find links on archive.org for roughly contemporary versions. * DOC: Update to "Fixes for 18 broken links #16472" * Obsolete links, previously commented out, now deleted: https://github.com/numpy/numpy/pull/16472#discussion_r433928958 * Semantic markup for reference to Python class: https://github.com/numpy/numpy/pull/16472#discussion_r433553928 * Missing :ref: in internal link: https://github.com/numpy/numpy/pull/16472#discussion_r433554484 Not included: Resolution on using external/internal doc link in .py: https://github.com/numpy/numpy/pull/16472#discussion_r433554824 * DOC: Add internal link for 'Fixes for 18 broken links' PR #16472 Making reference [1] an internal link in function_base.py => numpy.vectorize.html * DOC: Redirect 2 link fixes in PR #16472 * governance.rst link reverted * ununcs.rst `overridden` link goes where it was meant to per https://github.com/numpy/numpy/pull/16472#pullrequestreview-424666070
* DOC: Fix typos and cosmetic issuesMartin Michlmayr2020-05-171-2/+2
|
* Merge pull request #16078 from rossbar/doc/axis_to_new_or_differentMatti Picus2020-05-072-0/+15
|\ | | | | DOC: Add axis to random module "new or different" docs
| * DOC: Added `permutation` to methods with axis kwarg.Ross Barnowski2020-04-252-6/+7
| | | | | | | | | | Added `permutation` to `choice` and `shuffle` in the list of highlighted methods with an `axis` kwarg.
| * DOC: Added bullet about axis kwarg to rng overview docs.Ross Barnowski2020-04-252-0/+14
| | | | | | | | | | | | | | | | | | Modified the introductory/overview documentation for the random module to highlight the addition of the `axis` kwarg to methods like `shuffle` and `choice` for dealing with multi-dimensional arrays. Related to gh-16075
* | DOC: Moved timeit examples under relevant bullet point.Ross Barnowski2020-04-251-11/+12
| |
* | DOC,BLD: Limit timeit iterations in random docs.Ross Barnowski2020-04-251-6/+6
|/ | | | | | | | | | Limiting the number of loops performed in the %timeit evaluation results in a ~20% speedup in the time it takes to build the documentation. The results of the "benchmarking" are less accurate from the limited number of evaluations, but the relationship between the timing between the legacy and Generator sampling methods is preserved.
* BUG: add missing c_distributions.pxd, enables cython use of random C-API ↵Matti Picus2020-03-161-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gh-15463) xref gh-14778 As pointed out in the comment by @jamesthomasgriffin, we did not include a pxd file to expose the distribution functions documented in the random c-api. This PR adds a c_distributions.pxd file that exposes them. Squashed commits: * BUG: add missing c_distributions.pxd to enable cython use of random C-API * ENH, TST: add npyrandom library like npymath, test cython use of it * BUG: actually prefix f-string with f * MAINT: fixes from review, add _bit_generato_bit_generator.pxd * STY: fixes from review * BLD: don't use nprandom library for mtrand legacy build * TST: WindowsPath cannot be used in subprocess's list2cmdline * MAINT, API: move _bit_generator to bit_generator * DOC: add release note about moving bit_generator * DOC, MAINT: fixes from review * MAINT: redo dtype determination from review
* DOC: Fix Multithreaded Generation example docs (gh-15367)Fabio Zeiser2020-01-241-29/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old code examples did not actually run correctly and had a bug. They were also never updated to use SeedSequence correctly. This fixes both. * DOC, BUG: Fixes Multithreaded Generation docs Working on #15365 The code runs now, but I get quite different runtimes than in the example. May need some more work * DOC: changes after PR review * DOC: Changing input/output lines to sphinx standard For ipython example: Adding `Out[i]` where i is the input cell number and correcting vissual multiline inputs * MAINT: Replace `jumped` by `SeedSequence` in multithreading snippet After PR review, decided to replace `jumped` by `SeedSequence` as it is a more general method. Adopted the introduction to reflect this. Also added a section on the reproducibility for different machines and number of threads + an example. * MAINT: Changes after PR review - Switch back to default_rng() instead of the Generator(BitGenerator)) syntax pursuant @rkern 's explanation in #15391 - small fixes * MAINT: Delete unneccesary reference to PCG64 * MAINT: Added newline finxing codeblock error in docs Trying to see whether this fixes circleci error * MAINT: Clean up in imports of code snippet
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-1/+1
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* Fix typos, via a Levenshtein-style correctorBrian Wignall2019-12-191-1/+1
|
* DOC: Remove reference to basic RNGKevin Sheppard2019-12-181-5/+5
| | | | Remove reference to outdated basic RNG
* DOC: change to link (from review)mattip2019-12-052-2/+4
|
* API, DOC: change names to multivariate_hypergeometric, improve docsmattip2019-12-042-18/+8
|
* DOC: fixes from reviewmattip2019-12-034-15/+7
|
* DOC: sphinx does not like breaking function declarations over linesmattip2019-11-291-17/+5
|
* API: rename functions in distributions.c,hmattip2019-11-291-10/+2
|
* DOC, TST: refactor CFFI test, add file names to documentationmattip2019-11-293-0/+6
|
* DOC: improve the C-API/Cython documentation for randommattip2019-11-292-50/+99
|
* MAINT: Change Congruent to Congruential in PCGCharles Harris2019-11-281-2/+2
| | | [skip ci]
* DOC: Fix abbreviation of PCG64Martin Thoma2019-11-281-1/+1
| | | | | | | See publication by O'Neill (reference 2): "The name for the family, PCG, stands for permuted congruential generator [...]"