| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
| |
Tests using MD5 algorithms fail in FIPS Mode because MD5 is not FIPS
compliant.
Replace MD5 with SHA256 to overcome that.
Signed-off-by: Nikola Forró <nforro@redhat.com>
|
| | |
|
| | |
|
| | |
|
| |\
| |
| | |
ENH: Add placeholder stubs for all sub-modules
|
| | | |
|
| | | |
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| | |
|
| |
|
|
|
|
| |
Check that size is not being broadcast
closes #16833
|
| | |
|
| |
|
|
| |
tests will pass, get rid of directly printing generator object
|
| | |
|
| |
|
|
|
|
|
|
| |
One of the header line was not long enough, make it the same length as
the title.
The section "Arguments" is usually called "Parameters". Update for
consistency.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes #16539
The implicit 0-padding that is done to small entropy inputs to make them the
size of the internal pool conflicts with the spawn keys, which start with an
appended 0.
In order to maintain stream compatibility with unspawned `SeedSequence`s, we
explicitly 0-pad short inputs out to the pool size only if the spawn key is
provided, and thus would trigger the bug. This should minimize the impact on
users that were not encountering the bug.
|
| |\
| |
| | |
DOC: Correct MV Normal sig
|
| | |
| |
| |
| | |
Add new kw arg to sig
|
| |\ \
| | |
| | | |
DOC: Minor rounding correction in Generator.binomial
|
| | |/
| |
| | |
Changed 38.88 from 38 to 39
|
| | |
| |
| |
| |
| | |
Fix for #16508. Cython wants every pointer declaration to be on a
separate line.
|
| |/
|
|
|
|
|
| |
Broadcastable size with inputs does not produce an error when size produces
a smaller output array than the broadcast input shape. Patch checks that
the output shape matches the outer shape of the broadcast fo all inputs and
the size when given.
|
| |
|
|
| |
This requires some minor tweaks in `np.random` because there the two have different meanings, with `()` meaning 0d array and `None` meaning scalar.
|
| |
|
|
| |
Most compilers should optimize it, but it doesn't hurt to inline and has a better name
now.
|
| |\
| |
| | |
DEP: Deprecate `numpy.dual`.
|
| | |
| |
| |
| |
| |
| | |
Add a deprecation warning in the `numpy.dual` module, and
remove the use of `numpy.dual` from the few places where it
is used in the numpy code.
|
| |\ \
| | |
| | | |
BUG: Correct loop order in MT19937 jump
|
| | | |
| | |
| | |
| | | |
Fix indent on reference and remove text that may be incorrect.
|
| | | |
| | |
| | |
| | | |
Clarify the method used and the source of the code
|
| | | |
| | |
| | |
| | | |
Remove unused file containing the old polynomial representation.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Refactor polynomial to be unsigned long array
Remove unused code
Fix md5 calculation on BE
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Use the original loop order instead of an inverted order
closes #15394
|
| |/ /
| |
| |
| |
| | |
Remove trailing colon
Fix indentation in RandomState choice doc string
|
| |\ \
| | |
| | | |
BUG: add missing numpy/__init__.pxd to the wheel
|
| | | | |
|
| | |/
|/| |
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#14924)
* Add stick-breaking
* Add tests demonstrating slowness for beta and dirichlet generators for small alpha (and beta) values
* Remove the test for beta with small `a` and `b`
* Switch from standard to stick-breaking method whenever alpha.max() < 0.1
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
| | |
|
| |
|
|
|
|
|
| |
Add repeatability tests for when the range of the integers is `2**32`
(and `2**32 +/- 1` for good measure) with broadcasting. The underlying
functions called by Generator.integers and random.randint when the
inputs are broadcast are different than when the inputs are scalars.
|
| |
|
|
|
| |
Assert that an invalid value (2**n-1 for n = 8, 16, 32, 64) has not
been passed to the Lemire function.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
When the input to Generator.integers was 2**32, the value 2**32-1
was being passed as the `rng` argument to the 32-bit Lemire method,
but that method requires `rng` be strictly less then 2**32-1.
The fix was to handle 2**32-1 by calling next_uint32 directly.
This also works for the legacy code without changing the stream
of random integers from `randint`.
Closes gh-16066.
|
| |
|
|
| |
Addresses a comment on gh-10835.
|
| | |
|
| |
|
|
|
| |
Only one dimensional alpha paramter is currently supported, but higher dimensions were silently allowed and gave an incorrect results. This fixes the regression. In the future, the API could be extended to allow higher dimensional arrays for alpha.
Fixes gh-15915
|
| |\
| |
| | |
BUG: Check that `pvals` is 1D in `_generator.multinomial`.
|
| | | |
|
| | | |
|