<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/random, branch v1.18.4</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>TST: random: Skip a test if integers are 32 bit.</title>
<updated>2020-04-27T22:29:14+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://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=794ea8a8e776afbc0b26acd448487bd6d8537c08'/>
<id>794ea8a8e776afbc0b26acd448487bd6d8537c08</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-27T22:29:14+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://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=1e9a02214e74064630848be4f4e09d6451085558'/>
<id>1e9a02214e74064630848be4f4e09d6451085558</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>MAINT: random: Add assert() statements.</title>
<updated>2020-04-27T22:29:14+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2020-04-26T20:54:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=04415a07bfa0c13bf660f1913c9b19160d82637e'/>
<id>04415a07bfa0c13bf660f1913c9b19160d82637e</id>
<content type='text'>
Assert that an invalid value (2**n-1 for n = 8, 16, 32, 64) has not
been passed to the Lemire function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Assert that an invalid value (2**n-1 for n = 8, 16, 32, 64) has not
been passed to the Lemire function.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: random: Generator.integers(2**32) always returned 0.</title>
<updated>2020-04-27T22:29:14+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://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=23d70219d32f0f6260570db13fc8c8fcaab20a86'/>
<id>23d70219d32f0f6260570db13fc8c8fcaab20a86</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>
<entry>
<title>Merge pull request #16017 from charris/backport-15951</title>
<updated>2020-04-19T14:21:11+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2020-04-19T14:21:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c0b6896901354968927af2435252e926e8e5a67d'/>
<id>c0b6896901354968927af2435252e926e8e5a67d</id>
<content type='text'>
BUG: Alpha parameter must be 1D in `generator.dirichlet`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Alpha parameter must be 1D in `generator.dirichlet`</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Alpha parameter must be 1D in `generator.dirichlet` (#15951)</title>
<updated>2020-04-19T13:20:47+00:00</updated>
<author>
<name>panpiort8</name>
<email>dociebieaniuszlem@gmail.com</email>
</author>
<published>2020-04-19T01:51:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b17be040d8d10dd8f965ab111f7314d3a560ab9e'/>
<id>b17be040d8d10dd8f965ab111f7314d3a560ab9e</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Add minor tests enhancement</title>
<updated>2020-04-11T22:32:44+00:00</updated>
<author>
<name>Pan Jan</name>
<email>rumcajsgajos@gmail.com</email>
</author>
<published>2020-04-06T09:33:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=bd55a550e3caab9a53e396e38abbf61158e782e5'/>
<id>bd55a550e3caab9a53e396e38abbf61158e782e5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace checks with direct function call</title>
<updated>2020-04-11T22:32:44+00:00</updated>
<author>
<name>Pan Jan</name>
<email>rumcajsgajos@gmail.com</email>
</author>
<published>2020-04-01T18:09:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=80844b93c3b98330d97ccf75bc5c9db3435bb9c2'/>
<id>80844b93c3b98330d97ccf75bc5c9db3435bb9c2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add testing and replace check</title>
<updated>2020-04-11T22:32:44+00:00</updated>
<author>
<name>Pan Jan</name>
<email>rumcajsgajos@gmail.com</email>
</author>
<published>2020-04-01T06:41:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a752bf4f42718fbfd33b6d4d202228c65aead7e3'/>
<id>a752bf4f42718fbfd33b6d4d202228c65aead7e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: add check if pvals is 1d array in numpy.random.*.multinomial</title>
<updated>2020-04-11T22:32:44+00:00</updated>
<author>
<name>Pan Jan</name>
<email>rumcajsgajos@gmail.com</email>
</author>
<published>2020-03-31T09:10:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=8bb77f8d6abedaa0aeb0cfbfddc8409f615e00d2'/>
<id>8bb77f8d6abedaa0aeb0cfbfddc8409f615e00d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
