Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | BUG: add missing c_distributions.pxd, enables cython use of random C-API ↵ | Matti Picus | 2020-03-16 | 11 | -149/+244 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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 | ||||
* | convert shebang from python to python3 (#15687) | Changqing Li | 2020-03-04 | 2 | -2/+2 |
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||||
* | BUG: fix doctest exception messages | mattip | 2020-02-28 | 1 | -1/+1 |
| | |||||
* | DOC: Document caveat in random.uniform | mattip | 2020-02-15 | 1 | -2/+9 |
| | |||||
* | Merge pull request #15465 from mwtoews/imports | Sebastian Berg | 2020-02-07 | 1 | -2/+2 |
|\ | | | | | MAINT: cleanup unused imports; avoid redefinition of imports | ||||
| * | MAINT: cleanup unused imports; avoid redefinition of imports | Mike Taves | 2020-02-06 | 1 | -2/+2 |
| | | | | | | | | | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811) | ||||
* | | Documentation updated. | przemb | 2020-02-06 | 2 | -31/+22 |
| | | |||||
* | | Changes suggested in review | przemb | 2020-02-05 | 3 | -16/+11 |
| | | |||||
* | | MAINT: Large overhead in some random functions #15460 | przemb | 2020-02-05 | 3 | -59/+53 |
|/ | | | | | | | | | | | | | | slow calls to np.dtype.name replaced with np.dtype, mtrand.pyx and _generator.pyx updated, test test_warns_byteorder updated before: %timeit rs.random(): 520 ns ± 33.1 ns per loop %timeit rg.random(): 6.36 µs ± 222 ns per loop after: %timeit rs.random(): 453 ns ± 6.95 ns per loop %timeit rg.random(): 594 ns ± 9.66 ns per loop | ||||
* | DOC: Correct get_state doc | Kevin Sheppard | 2020-01-31 | 1 | -5/+7 |
| | | | | Move flag to parameters | ||||
* | STY,MAINT: avoid 'multiple imports on one line' (flake8 E401) | Mike Taves | 2020-01-28 | 1 | -2/+3 |
| | | | | | | * PEP 8: "Imports should usually be on separate lines" * Where modified, sort imported modules alphabetically * Clean-up unused imports from these expanded lines | ||||
* | NEP: issue deprecation warning when creating ragged array (NEP 34) | Matti Picus | 2020-01-21 | 3 | -7/+10 |
| | | | | This implements NEP 34. | ||||
* | MAINT: Remove unnecessary calls to PyArray_DATA from binomial functions | Alex Henrie | 2020-01-19 | 2 | -2/+0 |
| | |||||
* | BLD: use 0.3.7 release version, add dependency on libgfortran5 | mattip | 2020-01-17 | 2 | -2/+2 |
| | |||||
* | DOC: fix typos | Brian Wignall | 2020-01-14 | 1 | -1/+1 |
| | |||||
* | MAINT: Remove implicit inheritance from object class (#15236) | Jon Dufresne | 2020-01-05 | 8 | -37/+37 |
| | | | | | | | 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. | ||||
* | MAINT: Remove unnecessary 'from __future__ import ...' statements | Jon Dufresne | 2020-01-03 | 4 | -7/+0 |
| | | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior. | ||||
* | MAINT: remove dead code from review | mattip | 2019-12-27 | 1 | -1/+0 |
| | |||||
* | MAINT: unskip test on win32 | mattip | 2019-12-27 | 2 | -3/+2 |
| | |||||
* | BUG: use tmp dir and check version for cython test (#15170) | Matti Picus | 2019-12-26 | 2 | -17/+28 |
| | | | | | | | | | | | | * BUG: use tmp dir and check version for cython test * TST, MAINT: skip on win32, fix formatting * TST: fixes from review * TST: fixes from review * TST: fixes from review | ||||
* | DOC: Remove extraneous quote | Kevin Sheppard | 2019-12-23 | 1 | -1/+1 |
| | |||||
* | DOC: Correct documentation in choice | Kevin Sheppard | 2019-12-23 | 1 | -13/+16 |
| | | | | | | Correct docstring Correct exception message and standardize Use correct type identifiers | ||||
* | DOC: Correct choice signature | Kevin Sheppard | 2019-12-20 | 1 | -1/+1 |
| | | | | Add shuffle to signature | ||||
* | Fix typos, via a Levenshtein-style corrector | Brian Wignall | 2019-12-19 | 1 | -1/+1 |
| | |||||
* | MAINT: Fix randint 0d limits and other 0d cleanups (#15126) | Nico Schlömer | 2019-12-18 | 1 | -2/+1 |
| | | | * MAINT: only treat 0d case separately in randint, simplify some tests | ||||
* | MAINT: random: Remove a few unused imports from test files. | Warren Weckesser | 2019-12-15 | 3 | -3/+0 |
| | |||||
* | Revert "DEP: issue deprecation warning when creating ragged array (NEP 34)"revert-14794-nep-0034-impl | Ralf Gommers | 2019-12-06 | 3 | -10/+7 |
| | |||||
* | API, DOC: change names to multivariate_hypergeometric, improve docs | mattip | 2019-12-04 | 3 | -12/+12 |
| | |||||
* | Merge pull request #15007 from mattip/random-c-api2 | Ralf Gommers | 2019-12-03 | 4 | -89/+94 |
|\ | | | | | DOC, API: improve the C-API/Cython documentation and interfaces for random | ||||
| * | API: revert changes to standard_t, cauchy | mattip | 2019-11-30 | 2 | -6/+6 |
| | | |||||
| * | API: rename functions in distributions.c,h | mattip | 2019-11-29 | 2 | -60/+51 |
| | | |||||
| * | DOC, TST: refactor CFFI test, add file names to documentation | mattip | 2019-11-29 | 2 | -35/+49 |
| | | |||||
* | | Merge pull request #14794 from mattip/nep-0034-impl | Ralf Gommers | 2019-12-02 | 3 | -7/+10 |
|\ \ | |/ |/| | DEP: issue deprecation warning when creating ragged array (NEP 34) | ||||
| * | MAINT: revert change to assert_array_equal, adjust tests | mattip | 2019-10-31 | 3 | -3/+6 |
| | | |||||
| * | DEP: issue deprecation warning when creating ragged array (NEP 34) | mattip | 2019-10-31 | 3 | -4/+4 |
| | | |||||
* | | Merge pull request #14954 from mattip/test-extending-cffi | Charles Harris | 2019-11-27 | 4 | -5/+97 |
|\ \ | | | | | | | TST. API: test using distributions.h via cffi | ||||
| * | | TST: skip cffi tests when PYTHONOPTIMIZE>1, pycparser fails | mattip | 2019-11-21 | 2 | -0/+12 |
| | | | |||||
| * | | API, MAINT: export symbols on MSVC, fix typos | mattip | 2019-11-21 | 1 | -3/+3 |
| | | | |||||
| * | | TST. API: test using distributions.h via cffi | mattip | 2019-11-21 | 2 | -2/+82 |
| | | | |||||
* | | | Merge pull request #14948 from mattip/document-random | Charles Harris | 2019-11-27 | 12 | -25/+315 |
|\ \ \ | | | | | | | | | DOC, API: add random.__init__.pxd and document random.* functions | ||||
| * | | | DOC: update note from review | mattip | 2019-11-21 | 1 | -84/+84 |
| | | | | |||||
| * | | | MAINT: "See also" -> "See Also" | mattip | 2019-11-21 | 1 | -23/+23 |
| | | | | |||||
| * | | | DOC, API: add numpy.random.__index__.pxd and document numpy.random.* funcs | mattip | 2019-11-21 | 12 | -25/+315 |
| | | | | |||||
* | | | | TST: skip if cython is not available | mattip | 2019-11-22 | 1 | -0/+6 |
|/ / / | |||||
* | | | DOC: Clean up examples of low-level random access | Kevin Sheppard | 2019-11-21 | 4 | -21/+37 |
|/ / | | | | | | | | | | | Test examples on Linux and Windows Correct bug in Cython example Improve building instructions for numba examples | ||||
* | | DOC, MAINT: fix documentation, remove __init__.py | mattip | 2019-11-20 | 1 | -0/+0 |
| | | |||||
* | | MAINT: move numpy/random/examples -> numpy/random/_examples | mattip | 2019-11-19 | 8 | -4/+4 |
| | | |||||
* | | DOC: Clarify return type for default rng | Kevin Sheppard | 2019-11-19 | 1 | -3/+7 |
| | | | | | | | | Ensure that default_rng has a return type to improve code completion | ||||
* | | API: restructure and document numpy.random C-API (#14604) | Matti Picus | 2019-11-19 | 18 | -298/+127 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | | Merge pull request #14878 from mattip/remove-sse2 | Warren Weckesser | 2019-11-14 | 1 | -5/+0 |
|\ \ | | | | | | | BUILD: remove SSE2 flag from numpy.random builds |