8000 Merge branch 'main' into configurable_allocator · numpy/numpy@522c368 · GitHub
[go: up one dir, main page]

Skip to content

Commit 522c368

Browse files
committed
Merge branch 'main' into configurable_allocator
2 parents 5941d7c + cfb9810 commit 522c368

File tree

88 files changed

+3517
-1282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3517
-1282
lines changed

.github/workflows/cygwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python38-cython python38-pip python38-wheel python38-cffi
2525
python38-pytz python38-setuptools python38-pytest
2626
python38-hypothesis liblapack-devel libopenblas
27-
gcc-fortran git dash
27+
gcc-fortran gcc-g++ git dash
2828
- name: Set Windows PATH
2929
uses: egor-tensin/cleanup-path@v1
3030
with:

doc/changelog/1.21.3-changelog.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
Contributors
3+
============
4+
5+
A total of 7 people contributed to this release. People with a "+" by their
6+
names contributed a patch for the first time.
7+
8+
* Aaron Meurer
9+
* Bas van Beek
10+
* Charles Harris
11+
* Developer-Ecosystem-Engineering +
12+
* Kevin Sheppard
13+
* Sebastian Berg
14+
* Warren Weckesser
15+
16+
Pull requests merged
17+
====================
18+
19+
A total of 8 pull requests were merged for this release.
20+
21+
* `#19745 <https://github.com/numpy/numpy/pull/19745>`__: ENH: Add dtype-support to 3 `generic`/`ndarray` methods
22+
* `#19955 <https://github.com/numpy/numpy/pull/19955>`__: BUG: Resolve Divide by Zero on Apple silicon + test failures...
23+
* `#19958 <https://github.com/numpy/numpy/pull/19958>`__: MAINT: Mark type-check-only ufunc subclasses as ufunc aliases...
24+
* `#19994 <https://github.com/numpy/numpy/pull/19994>`__: BUG: np.tan(np.inf) test failure
25+
* `#20080 <https://github.com/numpy/numpy/pull/20080>`__: BUG: Correct incorrect advance in PCG with emulated int128
26+
* `#20081 <https://github.com/numpy/numpy/pull/20081>`__: BUG: Fix NaT handling in the PyArray_CompareFunc for datetime...
27+
* `#20082 <https://github.com/numpy/numpy/pull/20082>`__: DOC: Ensure that we add documentation also as to the dict for...
28+
* `#20106 <https://github.com/numpy/numpy/pull/20106>`__: BUG: core: result_type(0, np.timedelta64(4)) would seg. fault.

doc/source/release.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release notes
66
:maxdepth: 3
77

88
1.22.0 <release/1.22.0-notes>
9+
1.21.3 <release/1.21.3-notes>
910
1.21.2 <release/1.21.2-notes>
1011
1.21.1 <release/1.21.1-notes>
1112
1.21.0 <release/1.21.0-notes>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.. currentmodule:: numpy
2+
3+
==========================
4+
NumPy 1.21.3 Release Notes
5+
==========================
6+
7+
NumPy 1.21.3 is a maintenance release that fixes a few bugs discovered after
8+
1.21.2. It also provides 64 bit Python 3.10.0 wheels. Note a few oddities about
9+
Python 3.10:
10+
11+
* There are no 32 bit wheels for Windows, Mac, or Linux.
12+
* The Mac Intel builds are only available in universal2 wheels.
13+
14+
The Python versions supported in this release are 3.7-3.10. If you want to
15+
compile your own version using gcc-11, you will need to use gcc-11.2+ to avoid
16+
problems.
17+
18+
Contributors
19+
============
20+
21+
A total of 7 people contributed to this release. People with a "+" by their
22+
names contributed a patch for the first time.
23+
24+
* Aaron Meurer
25+
* Bas van Beek
26+
* Charles Harris
27+
* Developer-Ecosystem-Engineering +
28+
* Kevin Sheppard
29+
* Sebastian Berg
30+
* Warren Weckesser
31+
32+
Pull requests merged
33+
====================
34+
35+
A total of 8 pull requests were merged for this release.
36+
37+
* `#19745 <https://github.com/numpy/numpy/pull/19745>`__: ENH: Add dtype-support to 3 ```generic``/``ndarray`` methods
38+
* `#19955 <https://github.com/numpy/numpy/pull/19955>`__: BUG: Resolve Divide by Zero on Apple silicon + test failures...
39+
* `#19958 <https://github.com/numpy/numpy/pull/19958>`__: MAINT: Mark type-check-only ufunc subclasses as ufunc aliases...
40+
* `#19994 <https://github.com/numpy/numpy/pull/19994>`__: BUG: np.tan(np.inf) test failure
41+
* `#20080 <https://github.com/numpy/numpy/pull/20080>`__: BUG: Correct incorrect advance in PCG with emulated int128
42+
* `#20081 <https://github.com/numpy/numpy/pull/20081>`__: BUG: Fix NaT handling in the PyArray_CompareFunc for datetime...
43+
* `#20082 <https://github.com/numpy/numpy/pull/20082>`__: DOC: Ensure that we add documentation also as to the dict for...
44+
* `#20106 <https://github.com/numpy/numpy/pull/20106>`__: BUG: core: result_type(0, np.timedelta64(4)) would seg. fault.

Original file line numberDiff line numberDiff line change
@@ -899,12 +899,18 @@ You can aggregate matrices the same way you aggregated vectors::
899899
.. image:: images/np_matrix_aggregation.png
900900

901901
You can aggregate all the values in a matrix and you can aggregate them across
902-
columns or rows using the ``axis`` parameter::
902+
columns or rows using the ``axis`` parameter. To illustrate this point, let's
903+
look at a slightly modified dataset::
903904

905+
>>> data = np.array([[1, 2], [5, 3], [4, 6]])
906+
>>> data
907+
array([[1, 2],
908+
[5, 3],
909+
[4, 6]])
904910
>>> data.max(axis=0)
905911
array([5, 6])
906912
>>> data.max(axis=1)
907-
array([2, 4, 6])
913+
array([2, 5, 6])
908914

909915
.. image:: images/np_matrix_aggregation_row.png
910916

Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ NumPy's main object is the homogeneous multidimensional array. It is a
4545
table of elements (usually numbers), all of the same type, indexed by a
4646
tuple of non-negative integers. In NumPy dimensions are called *axes*.
4747

48-
For example, the coordinates of a point in 3D space ``[1, 2, 1]`` has
49-
one axis. That axis has 3 elements in it, so we say it has a length
50-
of 3. In the example pictured below, the array has 2 axes. The first
51-
axis has a length of 2, the second axis has a length of 3.
48+
For example, the array for the coordinates of a point in 3D space,
49+
``[1, 2, 1]``, has one axis. That axis has 3 elements in it, so we say
50+
it has a length of 3. In the example pictured below, the array has 2
51+
axes. The first axis has a length of 2, the second axis has a length of
52+
3.
5253

5354
::
5455

Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dependencies:
2727
- pandas
2828
- matplotlib
2929
- pydata-sphinx-theme
30+
- breathe
3031
# For linting
3132
- pycodestyle=2.7.0
3233
- gitpython