summaryrefslogtreecommitdiff
path: root/doc/source/reference/random
Commit message (Collapse)AuthorAgeFilesLines
...
* 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 [...]"
* Merge pull request #14954 from mattip/test-extending-cffiCharles Harris2019-11-272-0/+25
|\ | | | | TST. API: test using distributions.h via cffi
| * DOC: document the CFFI examplemattip2019-11-222-0/+25
| |
* | DOC: fixes from reviewmattip2019-11-212-7/+18
| |
* | DOC, API: add numpy.random.__index__.pxd and document numpy.random.* funcsmattip2019-11-212-41/+100
|/
* DOC, MAINT: fix documentation, remove __init__.pymattip2019-11-206-8/+8
|
* API: restructure and document numpy.random C-API (#14604)Matti Picus2019-11-1911-109/+247
| | | | | | | | | | | | | | | | * API: restructure and document numpy.random C-API * DOC: fix bad reference * API: ship, document, and start to test numpy.random C-API examples * API, DOC, TST: fix tests, refactor documentation to include snippets * BUILD: move public headers to numpy/core/include/numpy/random * TST: ignore DeprecationWarnings in setuptools and numba * DOC: document the C-API as used from Cython
* MAINT: Remove uses of scalar aliasesEric Wieser2019-11-132-2/+2
| | | | Relates to gh-6103
* DOC: random: Add entry for multivariate_hypergeometric to the Generator docs.Warren Weckesser2019-10-181-0/+1
|
* TEST, DOC: fixes from reviewmattip2019-10-172-13/+13
|
* DOC: typos from reviewmattip2019-10-151-1/+1
|
* DOC: clean up for moved references, remove ISeedSequencemattip2019-10-136-48/+37
|
* API: move bit_generator and generator to be privatemattip2019-10-113-5/+5
|
* DOC: remove random.entropy from docsmattip2019-09-142-7/+0
|
* DOC: removed random.entropy from documentationmattip2019-09-141-6/+0
|
* DOC: address last comment on numpy.random doc page fixes PRRalf Gommers2019-08-311-1/+1
|
* DOC: fix doc linking, was referencing private submodules.Ralf Gommers2019-08-256-24/+14
| | | | Closes gh-14359
* Merge pull request #14062 from mattip/fixesRalf Gommers2019-07-261-1/+1
|\ | | | | DOC, BUILD: cleanups and fix (again) 'make dist'
| * DOC, BUILD: cleanups and fix (again) 'build dist'mattip2019-07-191-1/+1
| |
* | Merge pull request #14064 from kritisingh1/buildSebastian Berg2019-07-231-42/+42
|\ \ | |/ |/| DOC: Resolve bad references in Sphinx warnings
| * [DOC] Resolve bad references in Sphinx warningskritisingh12019-07-231-42/+42
| |