<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/random/tests, branch fix/seed-sequence-zeros</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>BUG: Ensure SeedSequence 0-padding does not collide with spawn keys</title>
<updated>2020-06-09T15:58:49+00:00</updated>
<author>
<name>Robert Kern</name>
<email>robert.kern@gmail.com</email>
</author>
<published>2020-06-09T15:58:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=7a82f14075eaf8f59ea3bb2594b71639e938611e'/>
<id>7a82f14075eaf8f59ea3bb2594b71639e938611e</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Correct broadcasting when size is not None</title>
<updated>2020-06-05T10:49:00+00:00</updated>
<author>
<name>Kevin Sheppard</name>
<email>kevin.k.sheppard@gmail.com</email>
</author>
<published>2020-06-05T10:14:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=776189a168f12c8da385a48ab1c381133908fa73'/>
<id>776189a168f12c8da385a48ab1c381133908fa73</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>REF: Refactor jump code</title>
<updated>2020-05-12T21:39:47+00:00</updated>
<author>
<name>Kevin Sheppard</name>
<email>kevin.k.sheppard@gmail.com</email>
</author>
<published>2020-05-05T08:42:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=b79be4888136c43805307c0151068089c68dd43c'/>
<id>b79be4888136c43805307c0151068089c68dd43c</id>
<content type='text'>
Refactor polynomial to be unsigned long array
Remove unused code
Fix md5 calculation on BE
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactor polynomial to be unsigned long array
Remove unused code
Fix md5 calculation on BE
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Correct loop order in MT19937 jump</title>
<updated>2020-05-12T21:39:47+00:00</updated>
<author>
<name>Kevin Sheppard</name>
<email>kevin.k.sheppard@gmail.com</email>
</author>
<published>2020-05-04T16:52:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=3bc2c0daee4f72b3c2decb470b4d0dd4941ce5f9'/>
<id>3bc2c0daee4f72b3c2decb470b4d0dd4941ce5f9</id>
<content type='text'>
Use the original loop order instead of an inverted order

closes #15394
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the original loop order instead of an inverted order

closes #15394
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #16162 from mattip/add-pxd</title>
<updated>2020-05-07T18:29:49+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2020-05-07T18:29:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=872c6b7de255059a580de414d0030f86471193b1'/>
<id>872c6b7de255059a580de414d0030f86471193b1</id>
<content type='text'>
BUG: add missing numpy/__init__.pxd to the wheel</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: add missing numpy/__init__.pxd to the wheel</pre>
</div>
</content>
</entry>
<entry>
<title>TST: add tag to __init__.pxd and test that the tag is found</title>
<updated>2020-05-05T23:14:05+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2020-05-05T23:14:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=bdbcb856867a2e01482cfd0029b9e7f468b84f58'/>
<id>bdbcb856867a2e01482cfd0029b9e7f468b84f58</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix numpy.random.dirichlet returns NaN for small 'alpha' parameters. (#14924)</title>
<updated>2020-04-29T20:46:53+00:00</updated>
<author>
<name>Benjamin Trendelkamp-Schroer</name>
<email>trendelkampschroer@users.noreply.github.com</email>
</author>
<published>2020-04-29T20:46:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=44e26f24621ce86ed6b24bfba4a04e82319d7bf0'/>
<id>44e26f24621ce86ed6b24bfba4a04e82319d7bf0</id>
<content type='text'>
* 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() &lt; 0.1

Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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() &lt; 0.1

Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>TST: random: Skip a test if integers are 32 bit.</title>
<updated>2020-04-27T17:48:04+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2020-04-27T17:48:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=621efc7718d3676c390bd673c0f8b53bcb4fc308'/>
<id>621efc7718d3676c390bd673c0f8b53bcb4fc308</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: random: Add more repeatability tests for random integers.</title>
<updated>2020-04-27T17:06:05+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2020-04-27T17:06:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ca5ade84d02801401d4833eec9d8a50ef04e46ce'/>
<id>ca5ade84d02801401d4833eec9d8a50ef04e46ce</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: random: Generator.integers(2**32) always returned 0.</title>
<updated>2020-04-26T20:43:03+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2020-04-25T16:28:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=e8b84012463927a1fc9c5a236ce7c4ab4a7effaa'/>
<id>e8b84012463927a1fc9c5a236ce7c4ab4a7effaa</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
