<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/random/mtrand, branch revert-7191-stack_documentation</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>Update Wikipedia references for mtrand.pyx</title>
<updated>2016-02-02T09:23:25+00:00</updated>
<author>
<name>Arne de Laat</name>
<email>adelaat@nikhef.nl</email>
</author>
<published>2016-02-02T09:23:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=f6a1c68ceb0c4a7494d0ce7b4fb1aed8303f70f1'/>
<id>f6a1c68ceb0c4a7494d0ce7b4fb1aed8303f70f1</id>
<content type='text'>
Specifically the 'Logarithmic distribution' link is fixed.
For others the links or article names are updated.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Specifically the 'Logarithmic distribution' link is fixed.
For others the links or article names are updated.</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Clarify behavior in np.random.uniform</title>
<updated>2016-01-25T00:37:44+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung@mit.edu</email>
</author>
<published>2016-01-16T00:40:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=637ad965ae7555157e859a747f276c20c5f91b9a'/>
<id>637ad965ae7555157e859a747f276c20c5f91b9a</id>
<content type='text'>
Although the arguments are specified as 'high'
and 'low', it is possible to pass in values for
'low' and 'high' where 'low' &gt;= 'high' and still
obtain well-defined behavior. The documentation
has been expanded to reflect this fact, with a
note to discourage passing in arguments satisfying
'low' &gt; 'high'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Although the arguments are specified as 'high'
and 'low', it is possible to pass in values for
'low' and 'high' where 'low' &gt;= 'high' and still
obtain well-defined behavior. The documentation
has been expanded to reflect this fact, with a
note to discourage passing in arguments satisfying
'low' &gt; 'high'.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: One element array inputs get one element arrays returned in np.random</title>
<updated>2016-01-24T03:20:20+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung@mit.edu</email>
</author>
<published>2016-01-18T20:29:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=61f872265b67b313058a07533eaed88f4170ff2c'/>
<id>61f872265b67b313058a07533eaed88f4170ff2c</id>
<content type='text'>
Fixes bug in np.random methods that would return scalars
when passed one-element array inputs. This is because
one-element ndarrays can be cast to integers / floats, which
is what functions like PyFloat_AsDouble do before converting
to the intended data type.

This commit changes the check used to determine whether the
inputs are purely scalar by converting all inputs to arrays
and checking if the resulting shape is an empty tuple (scalar)
or not (array).

Closes gh-4263.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes bug in np.random methods that would return scalars
when passed one-element array inputs. This is because
one-element ndarrays can be cast to integers / floats, which
is what functions like PyFloat_AsDouble do before converting
to the intended data type.

This commit changes the check used to determine whether the
inputs are purely scalar by converting all inputs to arrays
and checking if the resulting shape is an empty tuple (scalar)
or not (array).

Closes gh-4263.
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Clarified output size for broadcastable mtrand.pyx functions</title>
<updated>2016-01-23T15:20:06+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung@mit.edu</email>
</author>
<published>2016-01-21T14:38:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c0980ff9d32e690b13b8d3c6b0a797771ee33b57'/>
<id>c0980ff9d32e690b13b8d3c6b0a797771ee33b57</id>
<content type='text'>
Clarified the output size depending on whether
scalar or non-scalar inputs are passed to
functions in mtrand.pyx that can broadcast
their arguments.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clarified the output size depending on whether
scalar or non-scalar inputs are passed to
functions in mtrand.pyx that can broadcast
their arguments.
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Added broadcasting tests in test_random.py</title>
<updated>2016-01-23T03:47:13+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung@mit.edu</email>
</author>
<published>2016-01-21T03:30:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=091db7d35249935913c84bfff1bd78da3cb4f556'/>
<id>091db7d35249935913c84bfff1bd78da3cb4f556</id>
<content type='text'>
Added a whole new suite of tests to ensure that
functions in mtrand.pyx which are broadcastable
actually broadcast their arguments properly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added a whole new suite of tests to ensure that
functions in mtrand.pyx which are broadcastable
actually broadcast their arguments properly.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Simplified mtrand.pyx helpers</title>
<updated>2016-01-20T11:47:36+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung@mit.edu</email>
</author>
<published>2016-01-12T02:14:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0b150b8cfafa4d8c75e47e6e9c8b3b23d7c0a2b6'/>
<id>0b150b8cfafa4d8c75e47e6e9c8b3b23d7c0a2b6</id>
<content type='text'>
Refactored methods that broadcast arguments
together by finding additional common ground
between code in the if...else branches that
involved a size parameter being passed in.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactored methods that broadcast arguments
together by finding additional common ground
between code in the if...else branches that
involved a size parameter being passed in.
</pre>
</div>
</content>
</entry>
<entry>
<title>Top shuffle speed for machine-sized ints/floats.</title>
<updated>2016-01-17T04:56:41+00:00</updated>
<author>
<name>Antony Lee</name>
<email>anntzer.lee@gmail.com</email>
</author>
<published>2016-01-07T05:04:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b8cf7f904974294d4e3af43c68ef23f87385f2f6'/>
<id>b8cf7f904974294d4e3af43c68ef23f87385f2f6</id>
<content type='text'>
Apparently gcc only specializes one branch (the last one) so I went for
another 33% performance increase (matching #6776) in what's likely the
most common use case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Apparently gcc only specializes one branch (the last one) so I went for
another 33% performance increase (matching #6776) in what's likely the
most common use case.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: memcpy-based ~4x faster, typed shuffle.</title>
<updated>2016-01-17T04:24:25+00:00</updated>
<author>
<name>Antony Lee</name>
<email>anntzer.lee@gmail.com</email>
</author>
<published>2015-12-06T04:46:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5be93a2580a232705e897984d0f920bc6346990e'/>
<id>5be93a2580a232705e897984d0f920bc6346990e</id>
<content type='text'>
Only for 1d-ndarrays exactly, as subtypes (e.g. masked arrays) may not
allow direct shuffle of the underlying buffer (in fact, the old
implementation destroyed the underlying values of masked arrays while
shuffling).

Also handles struct-containing-object 1d ndarrays properly.

See #6776 for an earlier, less general (but even faster: ~6x)
improvement attempt, #5514 for the original issue.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only for 1d-ndarrays exactly, as subtypes (e.g. masked arrays) may not
allow direct shuffle of the underlying buffer (in fact, the old
implementation destroyed the underlying values of masked arrays while
shuffling).

Also handles struct-containing-object 1d ndarrays properly.

See #6776 for an earlier, less general (but even faster: ~6x)
improvement attempt, #5514 for the original issue.
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: Deprecate random_integers</title>
<updated>2016-01-10T18:33:41+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung@mit.edu</email>
</author>
<published>2016-01-03T23:22:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b23ec897fcbf1a0279a599c1ba301a2b01c09c88'/>
<id>b23ec897fcbf1a0279a599c1ba301a2b01c09c88</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: high arg is mandatory for mtrand._rand_int32</title>
<updated>2016-01-04T18:23:59+00:00</updated>
<author>
<name>ldoddema</name>
<email>slowinthedark@gmail.com</email>
</author>
<published>2016-01-04T18:23:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=1cbc14e43560ce59b267839ca1e6b1e402fe0d7a'/>
<id>1cbc14e43560ce59b267839ca1e6b1e402fe0d7a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
