<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/doc/release/upcoming_changes, branch build_test</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>API: Do not import sliding_window_view to main namespace</title>
<updated>2020-11-05T23:41:49+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2020-11-05T23:41:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=7235d30f3da0a64bf9198db50b19669eb93e6ec6'/>
<id>7235d30f3da0a64bf9198db50b19669eb93e6ec6</id>
<content type='text'>
At least for now, lets not import it to the main namespace, since there is
no agreement that this is a good idea.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At least for now, lets not import it to the main namespace, since there is
no agreement that this is a good idea.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Implement sliding window (gh-17394)</title>
<updated>2020-11-05T16:51:16+00:00</updated>
<author>
<name>Klaus Zimmermann</name>
<email>klaus.zimmermann@smhi.se</email>
</author>
<published>2020-11-05T16:51:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=43f80863ba2994a186293d86d516204ef38b0043'/>
<id>43f80863ba2994a186293d86d516204ef38b0043</id>
<content type='text'>
* implement sliding_window_view #7753
Test cases are shown in the issue page.

* Add Example Cases

* Add step_size and N-dim support

* Add shape and step_size check. Remove warning.

* Remove shape default
Add step_size default's description.

* Give proper parameter name 'step'

* fix a parameter description mistake

* implement test function for sliding_window_view()

* implement test function for sliding_window_view()

* Fix according to @eric-wieser comments

* Change arange to ogrid in Examples

* remove np.squeeze on return line

* Clarify document to avoid parameter confusion.

* add `writable` and more explanation in docs

* resolve a write conflit

* fixes according to @seberg review

* resolve write hazard

* remove outdated docs.

* change referring according to @mattip.
change 'writeable' to 'readonly' as @seberg suggest.
remove 'step' as @eric-wieser request

* fix test minor error

* DOC: Grammar fixes

* STY: Add missing line break required by PEP8

* + Change readonly parameter to writeable.
+ Update writeable description.
+ Fix a few parameter checks.
+ Other minor improvements.

* Move to new api as proposed by @eric-wieser

- Change api to follow suggestion by Eric Wieser in
  https://github.com/numpy/numpy/pull/10771#issuecomment-524715356
- Update docstring
- Add more tests

* Improve documentation

* Add sliding_window_view to documentation index

* Apply suggestions from code review

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

* Fix window shape check

* Add `sliding_window_view` to __all__

* Add tests for  error cases

* Add array_function dispatching

* Change dispatcher argument defaults to None

* Simplify array function dispatching

* Added "np." prefix to doctests

* Split tests

* Improved docstring

* Add release note

* Fix docstring formatting

* Fix doctest

* Remove namespacing in documentation indexing

* Improve docstring

* Improved docstring

* Simplified docstring

* Improve docstring to make pseudo code stand out

* Improve docstring

* Add simple application example

* Correct release note

* Improve link with as_strides

* Add note about performance

* Tidy up main doc string

* Make language on performance warning stronger

* Bugfix: pass subok and writeable to as_strided

* Add writeable test

* Add subok test

* Change subok test to use custom array subclass instead of unsupported MaskedArray

* Add version added information

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

Co-authored-by: Fanjin &lt;fjzeng@ucsd.edu&gt;
Co-authored-by: Fanjin Zeng &lt;Fnjn@users.noreply.github.com&gt;
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: fanjin &lt;fjzeng@outlook.com&gt;

Closes gh-7753</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* implement sliding_window_view #7753
Test cases are shown in the issue page.

* Add Example Cases

* Add step_size and N-dim support

* Add shape and step_size check. Remove warning.

* Remove shape default
Add step_size default's description.

* Give proper parameter name 'step'

* fix a parameter description mistake

* implement test function for sliding_window_view()

* implement test function for sliding_window_view()

* Fix according to @eric-wieser comments

* Change arange to ogrid in Examples

* remove np.squeeze on return line

* Clarify document to avoid parameter confusion.

* add `writable` and more explanation in docs

* resolve a write conflit

* fixes according to @seberg review

* resolve write hazard

* remove outdated docs.

* change referring according to @mattip.
change 'writeable' to 'readonly' as @seberg suggest.
remove 'step' as @eric-wieser request

* fix test minor error

* DOC: Grammar fixes

* STY: Add missing line break required by PEP8

* + Change readonly parameter to writeable.
+ Update writeable description.
+ Fix a few parameter checks.
+ Other minor improvements.

* Move to new api as proposed by @eric-wieser

- Change api to follow suggestion by Eric Wieser in
  https://github.com/numpy/numpy/pull/10771#issuecomment-524715356
- Update docstring
- Add more tests

* Improve documentation

* Add sliding_window_view to documentation index

* Apply suggestions from code review

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

* Fix window shape check

* Add `sliding_window_view` to __all__

* Add tests for  error cases

* Add array_function dispatching

* Change dispatcher argument defaults to None

* Simplify array function dispatching

* Added "np." prefix to doctests

* Split tests

* Improved docstring

* Add release note

* Fix docstring formatting

* Fix doctest

* Remove namespacing in documentation indexing

* Improve docstring

* Improved docstring

* Simplified docstring

* Improve docstring to make pseudo code stand out

* Improve docstring

* Add simple application example

* Correct release note

* Improve link with as_strides

* Add note about performance

* Tidy up main doc string

* Make language on performance warning stronger

* Bugfix: pass subok and writeable to as_strided

* Add writeable test

* Add subok test

* Change subok test to use custom array subclass instead of unsupported MaskedArray

* Add version added information

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

Co-authored-by: Fanjin &lt;fjzeng@ucsd.edu&gt;
Co-authored-by: Fanjin Zeng &lt;Fnjn@users.noreply.github.com&gt;
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: fanjin &lt;fjzeng@outlook.com&gt;

Closes gh-7753</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #17596 from seberg/subarray-dtype-futurewarning</title>
<updated>2020-10-29T09:38:50+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2020-10-29T09:38:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=08f9eeb4a39761131af059b944225874835e94b0'/>
<id>08f9eeb4a39761131af059b944225874835e94b0</id>
<content type='text'>
DEP,BUG: Coercion/cast of array to a subarray dtype will be fixed</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DEP,BUG: Coercion/cast of array to a subarray dtype will be fixed</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #17577 from cjblocker/polymul-dtype</title>
<updated>2020-10-28T10:57:29+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2020-10-28T10:57:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ab22e0076608f4825bf9a3ca1b6a0a6a7a670d14'/>
<id>ab22e0076608f4825bf9a3ca1b6a0a6a7a670d14</id>
<content type='text'>
BUG: Respect dtype of all-zero argument to poly1d</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Respect dtype of all-zero argument to poly1d</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Added compatibility release note for dtype of all-zero poly1d</title>
<updated>2020-10-25T18:43:51+00:00</updated>
<author>
<name>Cameron Blocker</name>
<email>cameronjblocker@gmail.com</email>
</author>
<published>2020-10-25T18:43:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=046a327f0bd452e53a4c65117e23d4e343fed233'/>
<id>046a327f0bd452e53a4c65117e23d4e343fed233</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #17580 from charris/cleanup-swig-for-python3</title>
<updated>2020-10-24T17:59:11+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2020-10-24T17:59:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=d483de0f32baec73b0856230dd35f08373ecbb85'/>
<id>d483de0f32baec73b0856230dd35f08373ecbb85</id>
<content type='text'>
MAINT: Cleanup swig for Python 3.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MAINT: Cleanup swig for Python 3.</pre>
</div>
</content>
</entry>
<entry>
<title>DEP,BUG: Coercion/cast of array to a subarray dtype will be fixed</title>
<updated>2020-10-21T17:39:22+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2020-10-20T21:35:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=fcc394033c5902bbd8104694c5f7d33a8b5eb99f'/>
<id>fcc394033c5902bbd8104694c5f7d33a8b5eb99f</id>
<content type='text'>
This currently appends the subarray dtype dimensions first and then
tries to assign to the result array which uses incorrect broadcasting
(broadcasting against the subarray dimensions instead of repeating
each element according to the subarray dimensions).

This also fixes the python scalar pathway `np.array(2, dtype="(2)f4,")`
which previously only filled the first value.  I consider that a clear
bug fix.

Closes gh-17511
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This currently appends the subarray dtype dimensions first and then
tries to assign to the result array which uses incorrect broadcasting
(broadcasting against the subarray dimensions instead of repeating
each element according to the subarray dimensions).

This also fixes the python scalar pathway `np.array(2, dtype="(2)f4,")`
which previously only filled the first value.  I consider that a clear
bug fix.

Closes gh-17511
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Cleanup swig for Python 3.</title>
<updated>2020-10-18T21:05:25+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2020-10-18T20:18:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=cf06cd41ba8bd49b3ada8aa333df8e562829247b'/>
<id>cf06cd41ba8bd49b3ada8aa333df8e562829247b</id>
<content type='text'>
Replaces ``PyInt_Check`` and ``PyInt_AsLong`` in a few places.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replaces ``PyInt_Check`` and ``PyInt_AsLong`` in a few places.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: add function to get broadcast shape from a given set of shapes. (#17535)</title>
<updated>2020-10-17T13:58:33+00:00</updated>
<author>
<name>madhulikajc</name>
<email>53166646+madhulikajc@users.noreply.github.com</email>
</author>
<published>2020-10-17T13:58:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=7b0a764fee6e1614f3249e9082d8c4acf1dc62d5'/>
<id>7b0a764fee6e1614f3249e9082d8c4acf1dc62d5</id>
<content type='text'>
* ENH: add function to get broadcast shape from a given set of shapes.

Add new function numpy.broadcast_shape which takes tuples
for the shapes to be broadcast against each other.
Return the broadcasted shape as a tuple.
See #17217

* Perform array allocations of size 0 for provided shape tuples

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

* Test for int as input shape

Also update docstring to include both ints and tuples of ints as input

* Remove unnecessary array_function_dispatch

* Add missing set_module

* Add release notes. Add versionadded to docstring.

Also fix up docstring details.

* follow convention for trailing comma

Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;

* Change name to broadcast_shapes. Also add test case, and type hint.

* follow convention

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

* Update docstring

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

* Add reference to numpy docs on broadcasting to docstring

Also move versionadded

* Fix spelling

Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;

* Add broadcast_shapes to reference docs and add See Also sections

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;
Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* ENH: add function to get broadcast shape from a given set of shapes.

Add new function numpy.broadcast_shape which takes tuples
for the shapes to be broadcast against each other.
Return the broadcasted shape as a tuple.
See #17217

* Perform array allocations of size 0 for provided shape tuples

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

* Test for int as input shape

Also update docstring to include both ints and tuples of ints as input

* Remove unnecessary array_function_dispatch

* Add missing set_module

* Add release notes. Add versionadded to docstring.

Also fix up docstring details.

* follow convention for trailing comma

Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;

* Change name to broadcast_shapes. Also add test case, and type hint.

* follow convention

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

* Update docstring

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;

* Add reference to numpy docs on broadcasting to docstring

Also move versionadded

* Fix spelling

Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;

* Add broadcast_shapes to reference docs and add See Also sections

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;
Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: add dtype option to cov and corrcoef (#17456)</title>
<updated>2020-10-09T19:35:47+00:00</updated>
<author>
<name>Lisa Schwetlick</name>
<email>mail@lisaschwetlick.de</email>
</author>
<published>2020-10-09T19:35:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=156cd054e007b05d4ac4829e10a369d19dd2b0b1'/>
<id>156cd054e007b05d4ac4829e10a369d19dd2b0b1</id>
<content type='text'>
Adds a keyword-only dtype parameter to correlate and coerrcoef to allow
user to specify the dtype of the output.

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: Ross Barnowski &lt;rossbar@berkeley.edu&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds a keyword-only dtype parameter to correlate and coerrcoef to allow
user to specify the dtype of the output.

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: Ross Barnowski &lt;rossbar@berkeley.edu&gt;</pre>
</div>
</content>
</entry>
</feed>
