| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| |
| |
| |
| | |
Fix typos and wrap length
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Allow bit generators to supply their own constructors to enable Generator
objects using arbitrary bit generators to be supported
closes #22012
|
| |\
| | |
| | | |
DOC: Mention uniform in the np.random.Generator.random function.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | | |
Added a See also section to mention np.random.Generator.uniform.
|
| |\ \
| | | |
| | | | |
BLD: Allow GCC compile on mingw-w64-based systems
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Macro `__MINGW32__` always defined for Mingw-w64 compilers (32- or
64-bit):
https://sourceforge.net/p/predef/wiki/Compilers/
|
| | | |
| | | |
| | | |
| | | | |
Closes gh-21910
|
| |/ /
| | |
| | |
| | |
| | | |
Add the voltbl fix to librandom. Remove SSE flag for GCC on 32-bit
Windows, it's the default.
|
| |/
| |
| | |
Co-authored-by: Bram <b.t.ton@saxion.nl>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| | |
This commit disallows complex covariances in multivariate_normal
as passing them can silently lead to incorrect results.
|
| | |
|
| | |
|
| | |
|
| |\
| | |
| | | |
MAINT: Fix some typos.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/ |
|
| |\
| | |
| | | |
DOC: Fix a typo in docstring of MT19937
|
| | | |
|
| | |
| | |
| | | |
Co-authored-by: Matti Picus <matti.picus@gmail.com>
|
| |/
| |
| | |
The documentation and the actual code were using different formulas
|
| |
| |
| | |
[ci skip]
|
| |\
| | |
| | | |
DOC: Add space after argument name
|
| | | |
|
| | |
| | |
| | | |
Made suggested changes to also add Reference on handling of axis parameter
|
| | | |
|
| | |
| | |
| | |
| | | |
Kept the Python code output uniform
|
| |/ |
|
| |
| |
| |
| | |
i.e. `numpy.typing` and `numpy._typing`
|
| |\
| | |
| | | |
BUG: Add parameter check to negative_binomial
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
negative_binomial
|
| | |
| | |
| | |
| | | |
for large values
|
| |/
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
Numpydoc 1.2 raises a UserWarning when the heading length
doesn't match the heading text. This change prevents this
UserWarning during sphinx-build.
|