<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/random/tests, branch v1.22.0rc3</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>BUG: Protect divide by 0 in multinomial (#20490)</title>
<updated>2021-12-02T15:22:18+00:00</updated>
<author>
<name>Kevin Sheppard</name>
<email>bashtage@users.noreply.github.com</email>
</author>
<published>2021-12-02T14:26:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=8050874b2d166b2ed53157c5691f9fb1e1a728f4'/>
<id>8050874b2d166b2ed53157c5691f9fb1e1a728f4</id>
<content type='text'>
Guard against empty pvals

closes #20483

* MAINT: Correct exception type

Raise TypeError for enhanced backward compat when pvals
is scalar</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Guard against empty pvals

closes #20483

* MAINT: Correct exception type

Raise TypeError for enhanced backward compat when pvals
is scalar</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: provide a convenience function to replace npy_load_module (#20395)</title>
<updated>2021-11-19T14:59:47+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2021-11-19T12:51:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=58723f3d15f5887c2065b031885fe3d4195ddfd6'/>
<id>58723f3d15f5887c2065b031885fe3d4195ddfd6</id>
<content type='text'>
`load_module` is deprecated since python 3.4 and will be removed in python 3.12.
Use `exec_module` instead. Provide a convenience function in `distutils.misc_utils`
instead of `npy_load_module` from `compat.py3k`.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`load_module` is deprecated since python 3.4 and will be removed in python 3.12.
Use `exec_module` instead. Provide a convenience function in `distutils.misc_utils`
instead of `npy_load_module` from `compat.py3k`.

</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: random: Add broadcast support to Generator.multinomial (#16740)</title>
<updated>2021-11-13T04:17:50+00:00</updated>
<author>
<name>Kevin Sheppard</name>
<email>bashtage@users.noreply.github.com</email>
</author>
<published>2021-11-13T04:17:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=aa52dee8dcaba963faa0ec4e36a85d97bbc8e2de'/>
<id>aa52dee8dcaba963faa0ec4e36a85d97bbc8e2de</id>
<content type='text'>
xref github issue #15201
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
xref github issue #15201
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Get full precision for 32 bit floating point random values.</title>
<updated>2021-11-06T07:20:51+00:00</updated>
<author>
<name>warren</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2021-11-06T06:59:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4b9e56921e6343b980b27e308534ca433a4a1fe8'/>
<id>4b9e56921e6343b980b27e308534ca433a4a1fe8</id>
<content type='text'>
The formula to convert a 32 bit random integer to a random float32,

    (next_uint32(bitgen_state) &gt;&gt; 9) * (1.0f / 8388608.0f)

shifts by one bit too many, resulting in uniform float32 samples always
having a 0 in the least significant bit. The formula is corrected to

    (next_uint32(bitgen_state) &gt;&gt; 8) * (1.0f / 16777216.0f)

Occurrences of the incorrect formula in numpy/random/tests/test_direct.py
were also corrected.

Closes gh-17478.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The formula to convert a 32 bit random integer to a random float32,

    (next_uint32(bitgen_state) &gt;&gt; 9) * (1.0f / 8388608.0f)

shifts by one bit too many, resulting in uniform float32 samples always
having a 0 in the least significant bit. The formula is corrected to

    (next_uint32(bitgen_state) &gt;&gt; 8) * (1.0f / 16777216.0f)

Occurrences of the incorrect formula in numpy/random/tests/test_direct.py
were also corrected.

Closes gh-17478.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20071 from alessiamarcolini/refactor</title>
<updated>2021-10-23T00:08:52+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-10-23T00:08:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=3740af94f888cf5708e7cfa18170b7c4069b1f17'/>
<id>3740af94f888cf5708e7cfa18170b7c4069b1f17</id>
<content type='text'>
MAINT: Remove unused imports and remove duplicated tests</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MAINT: Remove unused imports and remove duplicated tests</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: remove unused imports</title>
<updated>2021-10-08T09:49:11+00:00</updated>
<author>
<name>Alessia Marcolini</name>
<email>98marcolini@gmail.com</email>
</author>
<published>2021-10-08T09:49:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4d23ebeb068c8d6ba6edfc11d32ab2af8bb89c74'/>
<id>4d23ebeb068c8d6ba6edfc11d32ab2af8bb89c74</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Correct incorrect advance in PCG with emulated int128</title>
<updated>2021-10-06T22:23:14+00:00</updated>
<author>
<name>Kevin Sheppard</name>
<email>kevin.k.sheppard@gmail.com</email>
</author>
<published>2021-10-06T08:45:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=401b26e880117ae5bc72b84a7fd267e999f99aa1'/>
<id>401b26e880117ae5bc72b84a7fd267e999f99aa1</id>
<content type='text'>
Correct incorrect implemetation of carry in PCG64 and PCG64DXSM
when advancing more than 2**64 steps

closes #20048
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct incorrect implemetation of carry in PCG64 and PCG64DXSM
when advancing more than 2**64 steps

closes #20048
</pre>
</div>
</content>
</entry>
<entry>
<title>index_tricks.py file not modified</title>
<updated>2021-08-19T13:05:45+00:00</updated>
<author>
<name>shubham11941140</name>
<email>63910248+shubham11941140@users.noreply.github.com</email>
</author>
<published>2021-08-19T13:05:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a5c9bb5e38edc43461593ce2166a2ad34451c99f'/>
<id>a5c9bb5e38edc43461593ce2166a2ad34451c99f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Seed random state in test_vonmises_large_kappa_range.</title>
<updated>2021-07-27T15:42:52+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-07-27T15:42:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=81e4fe4dc7f37a2f80a50b3e363fd25286cfb353'/>
<id>81e4fe4dc7f37a2f80a50b3e363fd25286cfb353</id>
<content type='text'>
This makes the test reproducible. See comments on failing test
in #19540.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes the test reproducible. See comments on failing test
in #19540.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Add PCG64DXSM implementation.</title>
<updated>2021-05-04T05:16:04+00:00</updated>
<author>
<name>Robert Kern</name>
<email>robert.kern@gmail.com</email>
</author>
<published>2021-05-04T05:16:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=1cb1f67429997e894c32c3e7484c0bb29324390b'/>
<id>1cb1f67429997e894c32c3e7484c0bb29324390b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
