NumPy是使用Python进行科学计算所需的基础软件包
NumPy是使用Python进行科学计算所需的基础软件包 charris released this
NumPy 1.16.6 Release Notes
The NumPy 1.16.6 release fixes bugs reported against the 1.16.5 release,
and also backports several enhancements from master that seem
appropriate for a release series that is the last to support Python 2.7.
The wheels on PyPI are linked with OpenBLAS v0.3.7, which should fix
errors on Skylake series cpus.
Downstream developers building this release should use Cython >= 0.29.2
and, if using OpenBLAS, OpenBLAS >= v0.3.7. The supported Python
versions are 2.7 and 3.53.7.
Highlights
 The
np.testing.utils
functions have been updated from 1.19.0dev0.
This improves the function documentation and error messages as well
extending theassert_array_compare
function to additional types.
New functions
Allow matmul (@
) to work with object arrays.
This is an enhancement that was added in NumPy 1.17 and seems reasonable
to include in the LTS 1.16 release series.
Compatibility notes
Fix regression in matmul (@
) for boolean types
Booleans were being treated as integers rather than booleans, which was
a regression from previous behavior.
Improvements
Array comparison assertions include maximum differences
Error messages from array comparison tests such as
testing.assert_allclose
now include "max absolute difference" and
"max relative difference," in addition to the previous "mismatch"
percentage. This information makes it easier to update absolute and
relative error tolerances.
Contributors
A total of 10 people contributed to this release.
 CakeWithSteak
 Charles Harris
 Chris Burr
 Eric Wieser
 Fernando Saravia
 Lars Grueter
 Matti Picus
 Maxwell Aladago
 Qiming Sun
 Warren Weckesser
Pull requests merged
A total of 14 pull requests were merged for this release.
 #14211: BUG: Fix
uintoverflow if padding with linear_ramp and negative...  #14275: BUG: fixing to
allow unpickling of PY3 pickles from PY2  #14340: BUG: Fix
misuse of .names and .fields in various places (backport...  #14423: BUG: test, fix
regression in converting to ctypes.  #14434: BUG: Fixed
maximum relative error reporting in assert_allclose  #14509: BUG: Fix
regression in boolean matmul.  #14686: BUG: properly
define PyArray_DescrCheck  #14853: BLD: add 'apt
update' to shippable  #14854: BUG: Fix
_ctypes class circular reference. (#13808)  #14856: BUG: Fix
[np.einsum]{.titleref} errors on Power9 Linux and z/Linux  #14863: BLD: Prevent
flto from optimising long double representation...  #14864: BUG: lib: Fix
histogram problem with signed integer arrays.  #15172: ENH: Backport
improvements to testing functions.  #15191: REL: Prepare
for 1.16.6 release.
Checksums
MD5
4e224331023d95e98074d629b79cd4af numpy1.16.6cp27cp27mmacosx_10_9_x86_64.whl
d3a48c10422909a5610b42380ed8ddc6 numpy1.16.6cp27cp27mmanylinux1_i686.whl
6896018676021f6cff25abb30d9da143 numpy1.16.6cp27cp27mmanylinux1_x86_64.whl
c961575405015b018a497e8f90db5e38 numpy1.16.6cp27cp27mwin32.whl
8fa39acea08658ca355005c07e15f06f numpy1.16.6cp27cp27mwin_amd64.whl
8802bee0140fd50aecddab0141d0eb82 numpy1.16.6cp27cp27mumanylinux1_i686.whl
2f9761f243249d33867f86c10c549dfa numpy1.16.6cp27cp27mumanylinux1_x86_64.whl
171a699d84b6ec8ac699627d606890e0 numpy1.16.6cp35cp35mmacosx_10_9_intel.whl
7185860b022aa72cd9abb112b2d2b6cf numpy1.16.6cp35cp35mmanylinux1_i686.whl
33f35e1b39f572ca98e697b7054fffd1 numpy1.16.6cp35cp35mmanylinux1_x86_64.whl
2ec010ba75c0ac5602e1dbf7fe01ddbf numpy1.16.6cp35cp35mwin32.whl
88c6c5e1f531e32f65f9f9437045f6f5 numpy1.16.6cp35cp35mwin_amd64.whl
751f8ea2353e73bb3440f241ebad6c5d numpy1.16.6cp36cp36mmacosx_10_9_x86_64.whl
819af6ec8c90e8209471ecbc6fc47b95 numpy1.16.6cp36cp36mmanylinux1_i686.whl
56ab65e9d3bac5f502507d198634e675 numpy1.16.6cp36cp36mmanylinux1_x86_64.whl
88d4ed4565d31a1978f4bf013f4ffd2e numpy1.16.6cp36cp36mwin32.whl
167ac7f60d82bd32feb60e675a2c3b01 numpy1.16.6cp36cp36mwin_amd64.whl
2e47bb698842b7289bb34951edf3be3d numpy1.16.6cp37cp37mmacosx_10_9_x86_64.whl
169eb83d7f0a566207048cc282720ff8 numpy1.16.6cp37cp37mmanylinux1_i686.whl
454ac4d3e09931bfb58cc01b679f4f5f numpy1.16.6cp37cp37mmanylinux1_x86_64.whl
192593ce2df33b60eab445b31285ad96 numpy1.16.6cp37cp37mwin32.whl
de3b92f1133613e1bd96d788ba9d4307 numpy1.16.6cp37cp37mwin_amd64.whl
5e958c603605f3168b7b29f421f64cdd numpy1.16.6.tar.gz
3dc21c84a295fe77eadf8f872685a7de numpy1.16.6.zip
SHA256
08bf4f66f190822f4642e036accde8da810b87fffc0b9409e7a00d9e54760099 numpy1.16.6cp27cp27mmacosx_10_9_x86_64.whl
d759ca1b76ac6f6b6159fb74984126035feb1dee9f68b4b961889b6dc090f33a numpy1.16.6cp27cp27mmanylinux1_i686.whl
d3c5377c6122de876e695937ef41ffee5d2831154c5e4856481b93406cdfeecb numpy1.16.6cp27cp27mmanylinux1_x86_64.whl
345b1748e6b0d4773a518868c783b16fdc33a22683bdb863484cd29fe8d206e6 numpy1.16.6cp27cp27mwin32.whl
7a5a1f49a643aa1ab3e0579da0a48b8a48ea4369eb63c5065459d0a37f430237 numpy1.16.6cp27cp27mwin_amd64.whl
817eed5a6ec2fc9c1a0ee3fbf9a441c66b6766383580513ccbdf3121acc0b4fb numpy1.16.6cp27cp27mumanylinux1_i686.whl
1680c8d5086a88d293dfd1a10b6429a09140cacee878034fa2308472ec835db4 numpy1.16.6cp27cp27mumanylinux1_x86_64.whl
a4383edb1b8caa989c3541a37ef204916322c503b8eeacc7ee8f4ba24cac97b8 numpy1.16.6cp35cp35mmacosx_10_9_intel.whl
9bb690692f3101583b0b99f3be362742e4f8ebe6c7934fa36cd8ca2b567a0bcc numpy1.16.6cp35cp35mmanylinux1_i686.whl
b9e334568ca1bf56598eddfac6db6a75bcf1c91aa90d598648f21e45207daeae numpy1.16.6cp35cp35mmanylinux1_x86_64.whl
55cae40d2024c56e7b79fb070106cb4289dcc6b55c62dba1d89a6944448c6a53 numpy1.16.6cp35cp35mwin32.whl
a1ffc9c770ccc2be9284310a3726c918b26ca19b34c0079e7a41aba950ab175f numpy1.16.6cp35cp35mwin_amd64.whl
3f423b06bf67cd1dbf72e13e9b53a9ca71972e5abf712ee6cb5d8cbb178fff02 numpy1.16.6cp36cp36mmacosx_10_9_x86_64.whl
34e6bb44e3d9a663f903b8c297ede865b4dff039aa43cc9a0b249e02c27f1396 numpy1.16.6cp36cp36mmanylinux1_i686.whl
60c56922c9d759d664078fbef94132377ef1498ab27dd3d0cc7a21b346e68c06 numpy1.16.6cp36cp36mmanylinux1_x86_64.whl
23cad5e5858dfb73c0e5bce03fe78e5e5908c22263156c58d4afdbb240683c6c numpy1.16.6cp36cp36mwin32.whl
77399828d96cca386bfba453025c34f22569909d90332b961d3d4341cdb46a84 numpy1.16.6cp36cp36mwin_amd64.whl
97ddfa7688295d460ee48a4d76337e9fdd2506d9d1d0eee7f0348b42b430da4c numpy1.16.6cp37cp37mmacosx_10_9_x86_64.whl
390f6e14a8d73591f086680464aa101a9be9187d0c633f48c98b429b31b712c2 numpy1.16.6cp37cp37mmanylinux1_i686.whl
a1772dc227e3e415eeaa646d25690dc854bddc3d626e454c7c27acba060cb900 numpy1.16.6cp37cp37mmanylinux1_x86_64.whl
c9fb4fcfcdcaccfe2c4e1f9e0133ed59df5df2aa3655f3d391887e892b0a784c numpy1.16.6cp37cp37mwin32.whl
6b1853364775edb85ceb0f7f8214d9e993d4d1d9bd3310eae80529ea14ba2ba6 numpy1.16.6cp37cp37mwin_amd64.whl
61562ddac78765969959500b0da9c6f9ba7d77eeb12ec3927afae5303df08777 numpy1.16.6.tar.gz
e5cf3fdf13401885e8eea8170624ec96225e2174eb0c611c6f26dd33b489e3ff numpy1.16.6.zip
Assets
6
charris released this
NumPy NumPy 1.18.0 Release Notes
In addition to the usual bug fixes, this NumPy release cleans up and
documents the new random CAPI, expires a large number of old
deprecations, and improves the appearance of the documentation. The
Python versions supported are 3.53.8. This is the last NumPy release
series that will support Python 3.5.
Downstream developers should use Cython >= 0.29.14 for Python 3.8
support and OpenBLAS >= 3.7 to avoid problems on the Skylake
architecture.
Highlights
 The CAPI for
numpy.random
has been defined and documented.  Basic infrastructure for linking with 64 bit BLAS and LAPACK
libraries.  Many documentation improvements.
New functions
Multivariate hypergeometric distribution added to numpy.random
The method multivariate_hypergeometric
has been added to the class
[numpy.random.Generator]{.titleref}. This method generates random
variates from the multivariate hypergeometric probability distribution.
(gh13794)
Deprecations
np.fromfile
and np.fromstring
will error on bad data
In future numpy releases, the functions np.fromfile
and
np.fromstring
will throw an error when parsing bad data. This will now
give a DeprecationWarning
where previously partial or even invalid
data was silently returned. This deprecation also affects the C defined
functions PyArray_FromString
and PyArray_FromFile
(gh13605)
Deprecate nonscalar arrays as fill values in ma.fill_value
Setting a MaskedArray.fill_value
to a nonscalar array is deprecated
since the logic to broadcast the fill value to the array is fragile,
especially when slicing.
(gh13698)
Deprecate PyArray_As1D
, PyArray_As2D
PyArray_As1D
, PyArray_As2D
are deprecated, use PyArray_AsCArray
instead (gh14036)
Deprecate np.alen
np.alen
was deprecated. Use len
instead.
(gh14181)
Deprecate the financial functions
In accordance with
NEP32,
the financial functions fv
ipmt
, irr
, mirr
, nper
, npv
,
pmt
, ppmt
, pv
and rate
are deprecated, and will be removed from
NumPy 1.20.The replacement for these functions is the Python package
numpyfinancial.
(gh14720)
The axis
argument to numpy.ma.mask_cols
and numpy.ma.mask_row
is deprecated
This argument was always ignored.
(gh14996)
Expired deprecations
PyArray_As1D
andPyArray_As2D
have been removed in favor of
PyArray_AsCArray
(gh14036)np.rank
has been removed. This was deprecated in NumPy 1.10 and
has been replaced bynp.ndim
.
(gh14039) The deprecation of
expand_dims
outofrange axes in 1.13.0 has
expired. (gh14051) PyArray_FromDimsAndDataAndDescr
andPyArray_FromDims
have been
removed (they will always raise an error). Use
PyArray_NewFromDescr
andPyArray_SimpleNew
instead.
(gh14100)numeric.loads
,numeric.load
,np.ma.dump
,np.ma.dumps
,
np.ma.load
,np.ma.loads
are removed, usepickle
methods
instead (gh14256)arrayprint.FloatFormat
,arrayprint.LongFloatFormat
has been
removed, useFloatingFormat
insteadarrayprint.ComplexFormat
,arrayprint.LongComplexFormat
has been
removed, useComplexFloatingFormat
insteadarrayprint.StructureFormat
has been removed, use
StructureVoidFormat
instead
(gh14259)np.testing.rand
has been removed. This was deprecated in NumPy
1.11 and has been replaced bynp.random.rand
.
(gh14325) Class
SafeEval
innumpy/lib/utils.py
has been removed. This was
deprecated in NumPy 1.10. Usenp.safe_eval
instead.
(gh14335)  Remove deprecated support for boolean and empty condition lists in
np.select
(gh14583)  Array order only accepts 'C', 'F', 'A', and 'K'. More
permissive options were deprecated in NumPy 1.11.
(gh14596)  np.linspace parameter
num
must be an integer. Deprecated in NumPy
1.12. (gh14620)  UFuncs with multiple outputs must use a tuple for the
out
kwarg.
This finishes a deprecation started in NumPy 1.10.
(gh14682)
The files numpy/testing/decorators.py
, numpy/testing/noseclasses.py
and numpy/testing/nosetester.py
have been removed. They were never
meant to be public (all relevant objects are present in the
numpy.testing
namespace), and importing them has given a deprecation
warning since NumPy 1.15.0
(gh14567)
Compatibility notes
[numpy.lib.recfunctions.drop_fields]{.titleref} can no longer return None
If drop_fields
is used to drop all fields, previously the array would
be completely discarded and None returned. Now it returns an array of
the same shape as the input, but with no fields. The old behavior can be
retained with:
dropped_arr = drop_fields(arr, ['a', 'b'])
if dropped_arr.dtype.names == ():
dropped_arr = None
converting the empty recarray to None
(gh14510)
numpy.argmin/argmax/min/max
returns NaT
if it exists in array
numpy.argmin
, numpy.argmax
, numpy.min
, and numpy.max
will return
NaT
if it exists in the array.
(gh14717)
np.can_cast(np.uint64, np.timedelta64, casting='safe')
is now False
Previously this was True
 however, this was inconsistent with
uint64
not being safely castable to int64
, and resulting in strange
type resolution.
If this impacts your code, cast uint64
to int64
first.
(gh14718)
Changed random variate stream from numpy.random.Generator.integers
There was a bug in numpy.random.Generator.integers
that caused biased
sampling of 8 and 16 bit integer types. Fixing that bug has changed the
output stream from what it was in previous releases.
(gh14777)
Add more ufunc loops for datetime64
, timedelta64
np.datetime('NaT')
should behave more like float('Nan')
. Add needed
infrastructure so np.isinf(a)
and np.isnan(a)
will run on
datetime64
and timedelta64
dtypes. Also added specific loops for
numpy.fmin
and numpy.fmax
that mask NaT
. This may require
adjustment to user facing code. Specifically, code that either
disallowed the calls to numpy.isinf
or numpy.isnan
or checked that
they raised an exception will require adaptation, and code that
mistakenly called numpy.fmax
and numpy.fmin
instead of
numpy.maximum
or numpy.minimum
respectively will requre adjustment.
This also affects numpy.nanmax
and numpy.nanmin
.
(gh14841)
C API changes
PyDataType_ISUNSIZED(descr)
now returns False for structured datatypes
Previously this returned True for any datatype of itemsize 0, but now
this returns false for the nonflexible datatype with itemsize 0,
np.dtype([])
. (gh14393)
New Features
Add our own *.pxd
cython import file
Added a numpy/__init__.pxd
file. It will be used for cimport numpy
(gh12284)
A tuple of axes can now be input to expand_dims
The numpy.expand_dims
axis
keyword can now accept a tuple of axes.
Previously, axis
was required to be an integer.
(gh14051)
Support for 64bit OpenBLAS
Added support for 64bit (ILP64) OpenBLAS. See site.cfg.example
for
details. (gh15012)
Add f2cmap
option to F2PY
Allow specifying a file to load FortrantoC type map customizations
from. (gh15113)
Improvements
Different C numeric types of the same size have unique names
On any given platform, two of np.intc
, np.int_
, and np.longlong
would previously appear indistinguishable through their repr
, despite
their corresponding dtype
having different properties. A similar
problem existed for the unsigned counterparts to these types, and on
some platforms for np.double
and np.longdouble
These types now always print with a unique __name__
.
(gh10151)
argwhere
now produces a consistent result on 0d arrays
On Nd arrays, numpy.argwhere
now always produces an array of shape
(n_non_zero, arr.ndim)
, even when arr.ndim == 0
. Previously, the
last axis would have a dimension of 1 in this case.
(gh13610)
Add axis
argument for random.permutation
and random.shuffle
Previously the random.permutation
and random.shuffle
functions can
only shuffle an array along the first axis; they now have a new argument
axis
which allows shuffle along a specified axis.
(gh13829)
method
keyword argument for np.random.multivariate_normal
A method
keyword argument is now available for
np.random.multivariate_normal
with possible values
{'svd', 'eigh', 'cholesky'}
. To use it, write
np.random.multivariate_normal(..., method=<method>)
.
(gh14197)
Add complex number support for numpy.fromstring
Now numpy.fromstring
can read complex numbers.
(gh14227)
numpy.unique
has consistent axes order when axis
is not None
Using moveaxis
instead of swapaxes
in numpy.unique
, so that the
ordering of axes except the axis in arguments will not be broken.
(gh14255)
numpy.matmul
with boolean output now converts to boolean values
Calling numpy.matmul
where the output is a boolean array would fill
the array with uint8 equivalents of the result, rather than 0/1. Now it
forces the output to 0 or 1 (NPY_TRUE
or NPY_FALSE
).
(gh14464)
numpy.random.randint
produced incorrect value when the range was 2**32
The implementation introduced in 1.17.0 had an incorrect check when
determining whether to use the 32bit path or the full 64bit path that
incorrectly redirected random integer generation with a high  low range
of 2**32
to the 64bit generator.
(gh14501)
Add complex number support for numpy.fromfile
Now numpy.fromfile
can read complex numbers.
(gh14730)
std=c99
added if compiler is named gcc
GCC before version 5 requires the std=c99
command line argument.
Newer compilers automatically turn on C99 mode. The compiler setup code
will automatically add the code if the compiler name has gcc
in it.
(gh14771)
Changes
NaT
now sorts to the end of arrays
NaT
is now effectively treated as the largest integer for sorting
purposes, so that it sorts to the end of arrays. This change is for
consistency with NaN
sorting behavior.
(gh12658)
(gh15068)
Incorrect threshold
in np.set_printoptions
raises TypeError
or ValueError
Previously an incorrect threshold
raised ValueError
; it now raises
TypeError
for nonnumeric types and ValueError
for nan
values.
(gh13899)
Warn when saving a dtype with metadata
A UserWarning
will be emitted when saving an array via numpy.save
with metadata
. Saving such an array may not preserve metadata, and if
metadata is preserved, loading it will cause a ValueError
. This
shortcoming in save and load will be addressed in a future release.
(gh14142)
numpy.distutils
append behavior changed for LDFLAGS and similar
[numpy.distutils]{.titleref} has always overridden rather than appended
to LDFLAGS
and other similar such environment variables for compiling
Fortran extensions. Now the default behavior has changed to appending 
which is the expected behavior in most situations. To preserve the old
(overwriting) behavior, set the NPY_DISTUTILS_APPEND_FLAGS
environment
variable to 0. This applies to: LDFLAGS
, F77FLAGS
, F90FLAGS
,
FREEFLAGS
, FOPT
, FDEBUG
, and FFLAGS
. NumPy 1.16 and 1.17 gave
build warnings in situations where this change in behavior would have
affected the compile flags used.
(gh14248)
Remove numpy.random.entropy
without a deprecation
numpy.random.entropy
was added to the numpy.random
namespace in
1.17.0. It was meant to be a private cextension module, but was exposed
as public. It has been replaced by numpy.random.SeedSequence
so the
module was completely removed.
(gh14498)
Add options to quiet build configuration and build with Werror
Added two new configuration options. During the build_src
subcommand,
as part of configuring NumPy, the files _numpyconfig.h
and config.h
are created by probing support for various runtime functions and
routines. Previously, the very verbose compiler output during this stage
clouded more important information. By default the output is silenced.
Running runtests.py debuginfo
will add verbosecfg
to the
build_src
subcommand, which will restore the previous behaviour.
Adding CFLAGS=Werror
to turn warnings into errors would trigger
errors during the configuration. Now runtests.py warnerror
will add
warnerror
to the build
subcommand, which will percolate to the
build_ext
and build_lib
subcommands. This will add the compiler flag
to those stages and turn compiler warnings into errors while actually
building NumPy itself, avoiding the build_src
subcommand compiler
calls.
Checksums
MD5
40576031bfba1732ee850a1c576ba096 numpy1.18.0cp35cp35mmacosx_10_6_intel.whl
99dce76e7845e10585001a6892bb5f63 numpy1.18.0cp35cp35mmanylinux1_i686.whl
81e4e422392219e8bc809d9b17c0d0a6 numpy1.18.0cp35cp35mmanylinux1_x86_64.whl
785d52acbbbcdd4967acd6f27e341dc6 numpy1.18.0cp35cp35mwin32.whl
52ab10e952b72c69f492f30dcc03e561 numpy1.18.0cp35cp35mwin_amd64.whl
dc0f8c3b608f17fd1af2ac5dab012683 numpy1.18.0cp36cp36mmacosx_10_9_x86_64.whl
990b9567a5f5322ec0115552be9bd169 numpy1.18.0cp36cp36mmanylinux1_i686.whl
7cdcb013123ae7b44100ca00a98f8ab3 numpy1.18.0cp36cp36mmanylinux1_x86_64.whl
f6b497230df4d8b9a3e80e8e6b896caa numpy1.18.0cp36cp36mwin32.whl
28de3a14f6fcf1391929f1061590b49d numpy1.18.0cp36cp36mwin_amd64.whl
d3279da6815745d977f16383d9b8c0d7 numpy1.18.0cp37cp37mmacosx_10_9_x86_64.whl
3eff2e553b4826428790551834f862e9 numpy1.18.0cp37cp37mmanylinux1_i686.whl
f0f7b7e58635dea515f6aa5302bdd924 numpy1.18.0cp37cp37mmanylinux1_x86_64.whl
df8e307782f55f508405b135211dbeb0 numpy1.18.0cp37cp37mwin32.whl
022dd577b0858b146e2d33ed7426cf07 numpy1.18.0cp37cp37mwin_amd64.whl
89bbc272a243cdf5c521fea5efe6b853 numpy1.18.0cp38cp38macosx_10_9_x86_64.whl
dc6e094c4c7777ac4040e6f945788f60 numpy1.18.0cp38cp38manylinux1_i686.whl
4cac27e608e6d24a8b2b6b911bd23d6c numpy1.18.0cp38cp38manylinux1_x86_64.whl
45a9355fb360d321d90ae55aefb1d206 numpy1.18.0cp38cp38win32.whl
c86dc59260f42e9cce05a396cbb33f4e numpy1.18.0cp38cp38win_amd64.whl
2f607a0e79321b6e4f426307134dbd2c numpy1.18.0.tar.gz
3545a7dc22e704461f6ccb604b8da952 numpy1.18.0.zip
SHA256
b091e5d4cbbe79f0e8b6b6b522346e54a282eadb06e3fd761e9b6fafc2ca91ad numpy1.18.0cp35cp35mmacosx_10_6_intel.whl
443ab93fc35b31f01db8704681eb2fd82f3a1b2fa08eed2dd0e71f1f57423d4a numpy1.18.0cp35cp35mmanylinux1_i686.whl
88c5ccbc4cadf39f32193a5ef22e3f84674418a9fd877c63322917ae8f295a56 numpy1.18.0cp35cp35mmanylinux1_x86_64.whl
e1080e37c090534adb2dd7ae1c59ee883e5d8c3e63d2a4d43c20ee348d0459c5 numpy1.18.0cp35cp35mwin32.whl
f084d513de729ff10cd72a1f80db468cff464fedb1ef2fea030221a0f62d7ff4 numpy1.18.0cp35cp35mwin_amd64.whl
1baefd1fb4695e7f2e305467dbd876d765e6edd30c522894df76f8301efaee36 numpy1.18.0cp36cp36mmacosx_10_9_x86_64.whl
cc070fc43a494e42732d6ae2f6621db040611c1dde64762a40c8418023af56d7 numpy1.18.0cp36cp36mmanylinux1_i686.whl
6f8113c8dbfc192b58996ee77333696469ea121d1c44ea429d8fd266e4c6be51 numpy1.18.0cp36cp36mmanylinux1_x86_64.whl
a30f5c3e1b1b5d16ec1f03f4df28e08b8a7529d8c920bbed657f4fde61f1fbcd numpy1.18.0cp36cp36mwin32.whl
3c68c827689ca0ca713dba598335073ce0966850ec0b30715527dce4ecd84055 numpy1.18.0cp36cp36mwin_amd64.whl
f6a7421da632fc01e8a3ecd19c3f7350258d82501a646747664bae9c6a87c731 numpy1.18.0cp37cp37mmacosx_10_9_x86_64.whl
905cd6fa6ac14654a6a32b21fad34670e97881d832e24a3ca32e19b455edb4a8 numpy1.18.0cp37cp37mmanylinux1_i686.whl
854f6ed4fa91fa6da5d764558804ba5b0f43a51e5fe9fc4fdc93270b052f188a numpy1.18.0cp37cp37mmanylinux1_x86_64.whl
ac3cf835c334fcc6b74dc4e630f9b5ff7b4c43f7fb2a7813208d95d4e10b5623 numpy1.18.0cp37cp37mwin32.whl
62506e9e4d2a39c87984f081a2651d4282a1d706b1a82fe9d50a559bb58e705a numpy1.18.0cp37cp37mwin_amd64.whl
9d6de2ad782aae68f7ed0e0e616477fbf693d6d7cc5f0f1505833ff12f84a673 numpy1.18.0cp38cp38macosx_10_9_x86_64.whl
1c35fb1131362e6090d30286cfda52ddd42e69d3e2bf1fea190a0fad83ea3a18 numpy1.18.0cp38cp38manylinux1_i686.whl
56710a756c5009af9f35b91a22790701420406d9ac24cf6b652b0e22cfbbb7ff numpy1.18.0cp38cp38manylinux1_x86_64.whl
03bbde29ac8fba860bb2c53a1525b3604a9b60417855ac3119d89868ec6041c3 numpy1.18.0cp38cp38win32.whl
712f0c32555132f4b641b918bdb1fd3c692909ae916a233ce7f50eac2de87e37 numpy1.18.0cp38cp38win_amd64.whl
e5eaf340489b76eef91352bf48b36e92ace07f6b0f1c87dcd3b5dbada97df03a numpy1.18.0.tar.gz
a9d72d9abaf65628f0f31bbb573b7d9304e43b1e6bbae43149c17737a42764c4 numpy1.18.0.zip
Assets
6
charris released this
NumPy NumPy 1.18.0 Release Notes
In addition to the usual bug fixes, this NumPy release cleans up and
documents the new random CAPI, expires a large number of old
deprecations, and improves the appearance of the documentation. The
Python versions supported are 3.53.8. This is the last NumPy release
series that will support Python 3.5.
Downstream developers should use Cython >= 0.29.14 for Python 3.8
support and OpenBLAS >= 3.7 to avoid problems on the Skylake
architecture.
Highlights
 The CAPI for
numpy.random
has been defined and documented.  Basic infrastructure for linking with 64 bit BLAS and LAPACK
libraries.  Many documentation improvements.
New functions
Multivariate hypergeometric distribution added to numpy.random
The method multivariate_hypergeometric
has been added to the class
numpy.random.Generator
. This method generates random variates from the
multivariate hypergeometric probability distribution.
(gh13794 <https://github.com/numpy/numpy/pull/13794>
__)
Deprecations
np.fromfile
and np.fromstring
will error on bad data
In future numpy releases, the functions np.fromfile
and
np.fromstring
will throw an error when parsing bad data. This will now
give a DeprecationWarning
where previously partial or even invalid
data was silently returned. This deprecation also affects the C defined
functions PyArray_FromString
and PyArray_FromFile
(gh13605 <https://github.com/numpy/numpy/pull/13605>
__)
Deprecate nonscalar arrays as fill values in ma.fill_value
Setting a MaskedArray.fill_value
to a nonscalar array is deprecated
since the logic to broadcast the fill value to the array is fragile,
especially when slicing.
(gh13698 <https://github.com/numpy/numpy/pull/13698>
__)
Deprecate PyArray_As1D
, PyArray_As2D
PyArray_As1D
, PyArray_As2D
are deprecated, use PyArray_AsCArray
instead (gh14036 <https://github.com/numpy/numpy/pull/14036>
__)
Deprecate np.alen
np.alen
was deprecated. Use len
instead.
(gh14181 <https://github.com/numpy/numpy/pull/14181>
__)
Deprecate the financial functions
In accordance with
NEP32 <https://numpy.org/neps/nep0032removefinancialfunctions.html>
,
the financial functions fv
, ipmt
, irr
, mirr
, nper
, npv
,
pmt
, ppmt
, pv
and rate
are deprecated, and will be removed from
NumPy 1.20.The replacement for these functions is the Python package
numpyfinancial <https://pypi.org/project/numpyfinancial>
*.
(gh14720 <https://github.com/numpy/numpy/pull/14720>
__)
The axis
argument to numpy.ma.mask_cols
and numpy.ma.mask_row
is deprecated
This argument was always ignored.
(gh14996 <https://github.com/numpy/numpy/pull/14996>
__)
Expired deprecations

PyArray_As1D
andPyArray_As2D
have been removed in favor of
PyArray_AsCArray
(gh14036 <https://github.com/numpy/numpy/pull/14036>
__) 
np.rank
has been removed. This was deprecated in NumPy 1.10 and
has been replaced bynp.ndim
.
(gh14039 <https://github.com/numpy/numpy/pull/14039>
__) 
The deprecation of
expand_dims
outofrange axes in 1.13.0 has
expired.
(gh14051 <https://github.com/numpy/numpy/pull/14051>
__) 
PyArray_FromDimsAndDataAndDescr
andPyArray_FromDims
have been
removed (they will always raise an error). Use
PyArray_NewFromDescr
andPyArray_SimpleNew
instead.
(gh14100 <https://github.com/numpy/numpy/pull/14100>
__) 
numeric.loads
,numeric.load
,np.ma.dump
,np.ma.dumps
,
np.ma.load
,np.ma.loads
are removed, usepickle
methods
instead (gh14256 <https://github.com/numpy/numpy/pull/14256>
__) 
arrayprint.FloatFormat
,arrayprint.LongFloatFormat
has been
removed, useFloatingFormat
instead 
arrayprint.ComplexFormat
,arrayprint.LongComplexFormat
has been
removed, useComplexFloatingFormat
instead 
arrayprint.StructureFormat
has been removed, use
StructureVoidFormat
instead
(gh14259 <https://github.com/numpy/numpy/pull/14259>
__) 
np.testing.rand
has been removed. This was deprecated in NumPy
1.11 and has been replaced bynp.random.rand
.
(gh14325 <https://github.com/numpy/numpy/pull/14325>
__) 
Class
SafeEval
innumpy/lib/utils.py
has been removed. This was
deprecated in NumPy 1.10. Usenp.safe_eval
instead.
(gh14335 <https://github.com/numpy/numpy/pull/14335>
__) 
Remove deprecated support for boolean and empty condition lists in
np.select
(gh14583 <https://github.com/numpy/numpy/pull/14583>
__) 
Array order only accepts 'C', 'F', 'A', and 'K'. More permissive
options were deprecated in NumPy 1.11.
(gh14596 <https://github.com/numpy/numpy/pull/14596>
__) 
np.linspace parameter
num
must be an integer. Deprecated in NumPy
1.12. (gh14620 <https://github.com/numpy/numpy/pull/14620>
__) 
UFuncs with multiple outputs must use a tuple for the
out
kwarg.
This finishes a deprecation started in NumPy 1.10.
(gh14682 <https://github.com/numpy/numpy/pull/14682>
__)
The files numpy/testing/decorators.py
, numpy/testing/noseclasses.py
and numpy/testing/nosetester.py
have been removed. They were never
meant to be public (all relevant objects are present in the
numpy.testing
namespace), and importing them has given a deprecation
warning since NumPy 1.15.0
(gh14567 <https://github.com/numpy/numpy/pull/14567>
__)
Compatibility notes
numpy.lib.recfunctions.drop_fields
can no longer return None
If drop_fields
is used to drop all fields, previously the array would
be completely discarded and None returned. Now it returns an array of
the same shape as the input, but with no fields. The old behavior can be
retained with::
dropped_arr = drop_fields(arr, ['a', 'b'])
if dropped_arr.dtype.names == ():
dropped_arr = None
converting the empty recarray to None
(gh14510 <https://github.com/numpy/numpy/pull/14510>
__)
numpy.argmin/argmax/min/max
returns NaT
if it exists in array
numpy.argmin
, numpy.argmax
, numpy.min
, and numpy.max
will return
NaT
if it exists in the array.
(gh14717 <https://github.com/numpy/numpy/pull/14717>
__)
np.can_cast(np.uint64, np.timedelta64, casting='safe')
is now False
Previously this was True
 however, this was inconsistent with
uint64
not being safely castable to int64
, and resulting in strange
type resolution.
If this impacts your code, cast uint64
to int64
first.
(gh14718 <https://github.com/numpy/numpy/pull/14718>
__)
Changed random variate stream from numpy.random.Generator.integers
There was a bug in numpy.random.Generator.integers
that caused biased
sampling of 8 and 16 bit integer types. Fixing that bug has changed the
output stream from what it was in previous releases.
(gh14777 <https://github.com/numpy/numpy/pull/14777>
__)
Add more ufunc loops for datetime64
, timedelta64
np.datetime('NaT')
should behave more like float('Nan')
. Add needed
infrastructure so np.isinf(a)
and np.isnan(a)
will run on
datetime64
and timedelta64
dtypes. Also added specific loops for
numpy.fmin
and numpy.fmax
that mask NaT
. This may require
adjustment to user facing code. Specifically, code that either
disallowed the calls to numpy.isinf
or numpy.isnan
or checked that
they raised an exception will require adaptation, and code that
mistakenly called numpy.fmax
and numpy.fmin
instead of
numpy.maximum
or numpy.minimum
respectively will requre adjustment.
This also affects numpy.nanmax
and numpy.nanmin
.
(gh14841 <https://github.com/numpy/numpy/pull/14841>
__)
C API changes
PyDataType_ISUNSIZED(descr)
now returns False for structured datatypes
Previously this returned True for any datatype of itemsize 0, but now
this returns false for the nonflexible datatype with itemsize 0,
np.dtype([])
.
(gh14393 <https://github.com/numpy/numpy/pull/14393>
__)
New Features
Add our own *.pxd
cython import file
Added a numpy/__init__.pxd
file. It will be used for cimport numpy
(gh12284 <https://github.com/numpy/numpy/pull/12284>
__)
A tuple of axes can now be input to expand_dims
The numpy.expand_dims
axis
keyword can now accept a tuple of axes.
Previously, axis
was required to be an integer.
(gh14051 <https://github.com/numpy/numpy/pull/14051>
__)
Support for 64bit OpenBLAS with symbol suffix
Added support for 64bit (ILP64) OpenBLAS compiled with
make INTERFACE64=1 SYMBOLSUFFIX=64_
. See site.cfg.example
for
details. (gh15012 <https://github.com/numpy/numpy/pull/15012>
__)
Improvements
Different C numeric types of the same size have unique names
On any given platform, two of np.intc
, np.int_
, and np.longlong
would previously appear indistinguishable through their repr
, despite
their corresponding dtype
having different properties. A similar
problem existed for the unsigned counterparts to these types, and on
some platforms for np.double
and np.longdouble
These types now always print with a unique __name__
.
(gh10151 <https://github.com/numpy/numpy/pull/10151>
__)
argwhere
now produces a consistent result on 0d arrays
On Nd arrays, numpy.argwhere
now always produces an array of shape
(n_non_zero, arr.ndim)
, even when arr.ndim == 0
. Previously, the
last axis would have a dimension of 1 in this case.
(gh13610 <https://github.com/numpy/numpy/pull/13610>
__)
Add axis
argument for random.permutation
and random.shuffle
Previously the random.permutation
and random.shuffle
functions can
only shuffle an array along the first axis; they now have a new argument
axis
which allows shuffle along a specified axis.
(gh13829 <https://github.com/numpy/numpy/pull/13829>
__)
method
keyword argument for np.random.multivariate_normal
A method
keyword argument is now available for
np.random.multivariate_normal
with possible values
{'svd', 'eigh', 'cholesky'}
. To use it, write
np.random.multivariate_normal(..., method=<method>)
.
(gh14197 <https://github.com/numpy/numpy/pull/14197>
__)
Add complex number support for numpy.fromstring
Now numpy.fromstring
can read complex numbers.
(gh14227 <https://github.com/numpy/numpy/pull/14227>
__)
numpy.unique
has consistent axes order when axis
is not None
Using moveaxis
instead of swapaxes
in numpy.unique
, so that the
ordering of axes except the axis in arguments will not be broken.
(gh14255 <https://github.com/numpy/numpy/pull/14255>
__)
numpy.matmul
with boolean output now converts to boolean values
Calling numpy.matmul
where the output is a boolean array would fill
the array with uint8 equivalents of the result, rather than 0/1. Now it
forces the output to 0 or 1 (NPY_TRUE
or NPY_FALSE
).
(gh14464 <https://github.com/numpy/numpy/pull/14464>
__)
numpy.random.randint
produced incorrect value when the range was 2**32
The implementation introduced in 1.17.0 had an incorrect check when
determining whether to use the 32bit path or the full 64bit path that
incorrectly redirected random integer generation with a high  low range
of 2**32
to the 64bit generator.
(gh14501 <https://github.com/numpy/numpy/pull/14501>
__)
Add complex number support for numpy.fromfile
Now numpy.fromfile
can read complex numbers.
(gh14730 <https://github.com/numpy/numpy/pull/14730>
__)
std=c99
added if compiler is named gcc
GCC before version 5 requires the std=c99
command line argument.
Newer compilers automatically turn on C99 mode. The compiler setup code
will automatically add the code if the compiler name has gcc
in it.
(gh14771 <https://github.com/numpy/numpy/pull/14771>
__)
Changes
NaT
now sorts to the end of arrays
NaT
is now effectively treated as the largest integer for sorting
purposes, so that it sorts to the end of arrays. This change is for
consistency with NaN
sorting behavior.
(gh12658 <https://github.com/numpy/numpy/pull/12658>
__)
Incorrect threshold
in np.set_printoptions
raises TypeError
or ValueError
Previously an incorrect threshold
raised ValueError
; it now raises
TypeError
for nonnumeric types and ValueError
for nan
values.
(gh13899 <https://github.com/numpy/numpy/pull/13899>
__)
Warn when saving a dtype with metadata
A UserWarning
will be emitted when saving an array via numpy.save
with metadata
. Saving such an array may not preserve metadata, and if
metadata is preserved, loading it will cause a ValueError
. This
shortcoming in save and load will be addressed in a future release.
(gh14142 <https://github.com/numpy/numpy/pull/14142>
__)
numpy.distutils
append behavior changed for LDFLAGS and similar
numpy.distutils
has always overridden rather than appended to
LDFLAGS
and other similar such environment variables for compiling
Fortran extensions. Now the default behavior has changed to appending 
which is the expected behavior in most situations. To preserve the old
(overwriting) behavior, set the NPY_DISTUTILS_APPEND_FLAGS
environment
variable to 0. This applies to: LDFLAGS
, F77FLAGS
, F90FLAGS
,
FREEFLAGS
, FOPT
, FDEBUG
, and FFLAGS
. NumPy 1.16 and 1.17 gave
build warnings in situations where this change in behavior would have
affected the compile flags used.
(gh14248 <https://github.com/numpy/numpy/pull/14248>
__)
Remove numpy.random.entropy
without a deprecation
numpy.random.entropy
was added to the numpy.random
namespace in
1.17.0. It was meant to be a private cextension module, but was exposed
as public. It has been replaced by numpy.random.SeedSequence
so the
module was completely removed.
(gh14498 <https://github.com/numpy/numpy/pull/14498>
__)
Add options to quiet build configuration and build with Werror
Added two new configuration options. During the build_src
subcommand,
as part of configuring NumPy, the files _numpyconfig.h
and config.h
are created by probing support for various runtime functions and
routines. Previously, the very verbose compiler output during this stage
clouded more important information. By default the output is silenced.
Running runtests.py debuginfo
will add verbosecfg
to the
build_src
subcommand, which will restore the previous behaviour.
Adding CFLAGS=Werror
to turn warnings into errors would trigger
errors during the configuration. Now runtests.py warnerror
will add
warnerror
to the build
subcommand, which will percolate to the
build_ext
and build_lib
subcommands. This will add the compiler flag
to those stages and turn compiler warnings into errors while actually
building NumPy itself, avoiding the build_src
subcommand compiler
calls.
(gh14527 <https://github.com/numpy/numpy/pull/14527>
)
(gh14518 <https://github.com/numpy/numpy/pull/14518>
)
Checksums
MD5
2255387d9bc4c626b30b4b15d41360aa numpy1.18.0rc1cp35cp35mmacosx_10_6_intel.whl
cebfd1b532cd5a0c389a12e0e9b9fc59 numpy1.18.0rc1cp35cp35mmanylinux1_i686.whl
837c58136102cfa1689e3ce6092a3fe9 numpy1.18.0rc1cp35cp35mmanylinux1_x86_64.whl
6dec034185665cb0968da09d1193da97 numpy1.18.0rc1cp35cp35mwin32.whl
d551b3da446160c3a76329916d4544d2 numpy1.18.0rc1cp35cp35mwin_amd64.whl
d39fad23c70d9e088328f51f989ceffe numpy1.18.0rc1cp36cp36mmacosx_10_9_x86_64.whl
8b0ed4cdf265428bdaf3e8619c18754a numpy1.18.0rc1cp36cp36mmanylinux1_i686.whl
aaa92422da55cb6e3136f89860239975 numpy1.18.0rc1cp36cp36mmanylinux1_x86_64.whl
2406854f74f825d95a95a671034eef3b numpy1.18.0rc1cp36cp36mwin32.whl
f706077e4d9ef783c43eb11dabc08e1e numpy1.18.0rc1cp36cp36mwin_amd64.whl
caaa53c0e5c8c1fac3af572b98569c0c numpy1.18.0rc1cp37cp37mmacosx_10_9_x86_64.whl
b1c2decd9ac8c6acb5c0b75372c5bbe9 numpy1.18.0rc1cp37cp37mmanylinux1_i686.whl
575f399026a997e9af2c2108c1542b7f numpy1.18.0rc1cp37cp37mmanylinux1_x86_64.whl
4d4bc961757251346c31dd6412961946 numpy1.18.0rc1cp37cp37mwin32.whl
df6cede6ee4d4f75e739771ae27920bb numpy1.18.0rc1cp37cp37mwin_amd64.whl
eea97481a22b8ec1b486fe8dfcc4bbe4 numpy1.18.0rc1cp38cp38macosx_10_9_x86_64.whl
a7ecc50638b65934388803e0c16e01ab numpy1.18.0rc1cp38cp38manylinux1_i686.whl
9626634ff55aba4c1f7726a969ef4e76 numpy1.18.0rc1cp38cp38manylinux1_x86_64.whl
4e6e1f36860da4b1f5cbe9874b71c6fc numpy1.18.0rc1cp38cp38win32.whl
a75c35b50e1c39428ff42f6291337487 numpy1.18.0rc1cp38cp38win_amd64.whl
076bed609ce25b400c3fa028d67a0b63 numpy1.18.0rc1.tar.gz
2708c1b940227b917c088ad3b79183bf numpy1.18.0rc1.zip
SHA256
76d92b0b86227c6dbc3f9030b8b865f41ae04f73daa161e4e3c5566e03d6ed41 numpy1.18.0rc1cp35cp35mmacosx_10_6_intel.whl
c9e73aa60166609c80f4285af8ba8b9b79e5a935df6927a174637c7c08fa8e67 numpy1.18.0rc1cp35cp35mmanylinux1_i686.whl
2bc9c62dfc893626cdd50dce30f597f387c4aca11cd2cdffe3e7e06a4fe19ee6 numpy1.18.0rc1cp35cp35mmanylinux1_x86_64.whl
73abd855401b9da6efb67490f4dd82226cf95f47d66b8dc9ebe4df523baaaeb2 numpy1.18.0rc1cp35cp35mwin32.whl
c207646355d1d04c054d781ddcd100bbd5afc69f75f8a7623317b9db41a2015f numpy1.18.0rc1cp35cp35mwin_amd64.whl
f676739da486d1c7de2d9450dafca6dee04f4d3e881b8761b795865ef1872eaf numpy1.18.0rc1cp36cp36mmacosx_10_9_x86_64.whl
787781333c1d69c7c23ccd85165cca732a5f3fd9d997b8ee40829b7c0c38db86 numpy1.18.0rc1cp36cp36mmanylinux1_i686.whl
e9907b5ea505dcd2cfaeb6ab08f241047ba651611f3974c9d624a7c5066ab3a6 numpy1.18.0rc1cp36cp36mmanylinux1_x86_64.whl
78ca6befab03c682bcb013241801e3b750e9de9b60664e9839e5b2098b5580ee numpy1.18.0rc1cp36cp36mwin32.whl
e89027b24027dade03929bc17adee23feec1f6f707f4ea366c5d5a342d4d81a1 numpy1.18.0rc1cp36cp36mwin_amd64.whl
70319f4d4e0a0c94e04922aaaf8c9aca72d38b61cc69e338fb872e9ff27d94a2 numpy1.18.0rc1cp37cp37mmacosx_10_9_x86_64.whl
4c51a496ec1ce170f2b5eb458c0441affc5b1fd1d7272cf322b443c90c69983a numpy1.18.0rc1cp37cp37mmanylinux1_i686.whl
3701ddb007a0549c12b26e90c82d520b9c4acf801705b9334654ade2a9550b75 numpy1.18.0rc1cp37cp37mmanylinux1_x86_64.whl
cbd2e1c1fb61b17eca745d7f9f6d684fd7f7817bef6454890eb6fa3e1cd4905a numpy1.18.0rc1cp37cp37mwin32.whl
d7b16541a6e970d402587ff2f1cbd85753c8d982a0d5894991505fea9b81a52b numpy1.18.0rc1cp37cp37mwin_amd64.whl
6beebdc222e214bbbafab8f089a65821cff6cad25b349eabb653490dc25342fd numpy1.18.0rc1cp38cp38macosx_10_9_x86_64.whl
fa8851d10af0739adcae54acf5706953e2e45752f4a550006f6f3aff92335566 numpy1.18.0rc1cp38cp38manylinux1_i686.whl
a8081de993fd47b9cb7376935bb1781118fd2c473a0e834601e28229275f78d6 numpy1.18.0rc1cp38cp38manylinux1_x86_64.whl
c9474a8fe03ca958e6fafefee13d6b4a45ea4ed7e35261abf61899c0f599a118 numpy1.18.0rc1cp38cp38win32.whl
9b369822f7681bc36b6ba624bc8ea0a1a456a9f72b324070d89ee2856cba62be numpy1.18.0rc1cp38cp38win_amd64.whl
3e9b05aa444adbd2511e5646541cf3aa64ef7aa923d48350aa8db8099a0a3800 numpy1.18.0rc1.tar.gz
7b0b915190cf60e691c17147f5d955e273d4c482b795a7bb168ad4a2fe2fb180 numpy1.18.0rc1.zip
Assets
6
charris released this
NumPy 1.17.4 Release Notes
This release contains fixes for bugs reported against NumPy 1.17.3 along with
some build improvements. The Python versions supported in this release
are 3.53.8.
Downstream developers should use Cython >= 0.29.13 for Python 3.8 support and
OpenBLAS >= 3.7 to avoid errors on the Skylake architecture.
Highlights
 Fixed
np.random.random_integers
biased generation of 8 and 16 bit integers.  Fixed
np.einsum
regression on Power9 and z/Linux.  Fixed histogram problem with signed integer arrays.
Contributors
A total of 5 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Charles Harris
 Chris Burr +
 Matti Picus
 Qiming Sun +
 Warren Weckesser
Pull requests merged
A total of 8 pull requests were merged for this release.
 #14758: BLD: declare support for python 3.8
 #14781: BUG: random: biased samples from integers() with 8 or 16 bit...
 #14851: BUG: Fix _ctypes class circular reference. (#13808)
 #14852: BLD: add 'apt update' to shippable
 #14855: BUG: Fix
np.einsum
errors on Power9 Linux and z/Linux  #14857: BUG: lib: Fix histogram problem with signed integer arrays.
 #14858: BLD: Prevent flto from optimising long double representation...
 #14866: MAINT: move buffer.h > npy_buffer.h to avoid conflicts
Checksums
MD5
1d5b9a989a22e2c5d0774d9a8e19f3db numpy1.17.4cp35cp35mmacosx_10_6_intel.whl
3b3fc8a8db5a026349b3ead44e755bc5 numpy1.17.4cp35cp35mmanylinux1_i686.whl
bfcafd2994423e9ed8337eb4a10cc885 numpy1.17.4cp35cp35mmanylinux1_x86_64.whl
8196de4edb9f37578acab2749e2af61c numpy1.17.4cp35cp35mwin32.whl
71292c5b45feec7cae81a1fc6272b0e0 numpy1.17.4cp35cp35mwin_amd64.whl
39cfbfdf236a20f9901b918b39e20e54 numpy1.17.4cp36cp36mmacosx_10_9_x86_64.whl
8cff96c6bc944b44b7232d72244e0838 numpy1.17.4cp36cp36mmanylinux1_i686.whl
d62a4e3880432bb8deec3a51bcc8a30e numpy1.17.4cp36cp36mmanylinux1_x86_64.whl
aaa948d1ef36659450791229a966ed19 numpy1.17.4cp36cp36mwin32.whl
e4482c52d63ab698d2e81ad71903b64b numpy1.17.4cp36cp36mwin_amd64.whl
4fadb49558c6089d8f8f32d775de91ae numpy1.17.4cp37cp37mmacosx_10_9_x86_64.whl
2e3a09d2aefd90856600c821db49cf99 numpy1.17.4cp37cp37mmanylinux1_i686.whl
2f0527f8eedcb2b3d83912dd254356f9 numpy1.17.4cp37cp37mmanylinux1_x86_64.whl
aded41f748a1dc3f71924200c3fe1bc0 numpy1.17.4cp37cp37mwin32.whl
34a187a48ceb4378ac28c6951d7f8dd6 numpy1.17.4cp37cp37mwin_amd64.whl
f5da7b0b94eacde2898654cfc25e8e78 numpy1.17.4cp38cp38macosx_10_9_x86_64.whl
08f4a5d6ea64c3f1f22ff9e4da4b55dd numpy1.17.4cp38cp38manylinux1_i686.whl
bafe3eb23ae8cb6f062e55c7aab52a98 numpy1.17.4cp38cp38manylinux1_x86_64.whl
0f1add30eb00bf40e5456e8ab10b5342 numpy1.17.4cp38cp38win32.whl
11649cda484b4d0d4426c3dab2c8ed5f numpy1.17.4cp38cp38win_amd64.whl
9147c3ee75e58d657b5b8b5a4f3564e0 numpy1.17.4.tar.gz
d7d3563cca0b99ba68a3f064a9e46ebe numpy1.17.4.zip
SHA256
ede47b98de79565fcd7f2decb475e2dcc85ee4097743e551fe26cfc7eb3ff143 numpy1.17.4cp35cp35mmacosx_10_6_intel.whl
43bb4b70585f1c2d153e45323a886839f98af8bfa810f7014b20be714c37c447 numpy1.17.4cp35cp35mmanylinux1_i686.whl
c7354e8f0eca5c110b7e978034cd86ed98a7a5ffcf69ca97535445a595e07b8e numpy1.17.4cp35cp35mmanylinux1_x86_64.whl
64874913367f18eb3013b16123c9fed113962e75d809fca5b78ebfbb73ed93ba numpy1.17.4cp35cp35mwin32.whl
6ca4000c4a6f95a78c33c7dadbb9495c10880be9c89316aa536eac359ab820ae numpy1.17.4cp35cp35mwin_amd64.whl
75fd817b7061f6378e4659dd792c84c0b60533e867f83e0d1e52d5d8e53df88c numpy1.17.4cp36cp36mmacosx_10_9_x86_64.whl
7d81d784bdbed30137aca242ab307f3e65c8d93f4c7b7d8f322110b2e90177f9 numpy1.17.4cp36cp36mmanylinux1_i686.whl
fe39f5fd4103ec4ca3cb8600b19216cd1ff316b4990f4c0b6057ad982c0a34d5 numpy1.17.4cp36cp36mmanylinux1_x86_64.whl
e467c57121fe1b78a8f68dd9255fbb3bb3f4f7547c6b9e109f31d14569f490c3 numpy1.17.4cp36cp36mwin32.whl
8d0af8d3664f142414fd5b15cabfd3b6cc3ef242a3c7a7493257025be5a6955f numpy1.17.4cp36cp36mwin_amd64.whl
9679831005fb16c6df3dd35d17aa31dc0d4d7573d84f0b44cc481490a65c7725 numpy1.17.4cp37cp37mmacosx_10_9_x86_64.whl
acbf5c52db4adb366c064d0b7c7899e3e778d89db585feadd23b06b587d64761 numpy1.17.4cp37cp37mmanylinux1_i686.whl
3d52298d0be333583739f1aec9026f3b09fdfe3ddf7c7028cb16d9d2af1cca7e numpy1.17.4cp37cp37mmanylinux1_x86_64.whl
475963c5b9e116c38ad7347e154e5651d05a2286d86455671f5b1eebba5feb76 numpy1.17.4cp37cp37mwin32.whl
0c0763787133dfeec19904c22c7e358b231c87ba3206b211652f8cbe1241deb6 numpy1.17.4cp37cp37mwin_amd64.whl
683828e50c339fc9e68720396f2de14253992c495fdddef77a1e17de55f1decc numpy1.17.4cp38cp38macosx_10_9_x86_64.whl
e2e9d8c87120ba2c591f60e32736b82b67f72c37ba88a4c23c81b5b8fa49c018 numpy1.17.4cp38cp38manylinux1_i686.whl
a8f67ebfae9f575d85fa859b54d3bdecaeece74e3274b0b5c5f804d7ca789fe1 numpy1.17.4cp38cp38manylinux1_x86_64.whl
0a7a1dd123aecc9f0076934288ceed7fd9a81ba3919f11a855a7887cbe82a02f numpy1.17.4cp38cp38win32.whl
ada4805ed51f5bcaa3a06d3dd94939351869c095e30a2b54264f5a5004b52170 numpy1.17.4cp38cp38win_amd64.whl
fb0415475e673cb9a6dd816df999e0ab9f86fa3af2b1770944e7288d2bea4ac9 numpy1.17.4.tar.gz
f58913e9227400f1395c7b800503ebfdb0772f1c33ff8cb4d6451c06cabdf316 numpy1.17.4.zip
Assets
6
charris released this
NumPy 1.17.3 Release Notes
This release contains fixes for bugs reported against NumPy 1.17.2 along with a
some documentation improvements. The Python versions supported in this release
are 3.53.8.
Downstream developers should use Cython >= 0.29.13 for Python 3.8 support and
OpenBLAS >= 3.7 to avoid errors on the Skylake architecture.
Highlights
 Wheels for Python 3.8
 Boolean
matmul
fixed to use booleans instead of integers.
Compatibility notes
 The seldom used
PyArray_DescrCheck
macro has been changed/fixed.
Contributors
A total of 7 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Allan Haldane
 Charles Harris
 Kevin Sheppard
 Matti Picus
 Ralf Gommers
 Sebastian Berg
 Warren Weckesser
Pull requests merged
A total of 12 pull requests were merged for this release.
 #14456: MAINT: clean up pocketfft modules inside numpy.fft namespace.
 #14463: BUG: random.hypergeometic assumes npy_long is npy_int64, hung...
 #14502: BUG: random: Revert gh14458 and refix gh14557.
 #14504: BUG: add a specialized loop for boolean matmul.
 #14506: MAINT: Update pytest version for Python 3.8
 #14512: DOC: random: fix doc linking, was referencing private submodules.
 #14513: BUG,MAINT: Some fixes and minor cleanup based on clang analysis
 #14515: BUG: Fix randint when range is 2**32
 #14519: MAINT: remove the entropy cextension module
 #14563: DOC: remove note about Pocketfft license file (nonexisting here).
 #14578: BUG: random: Create a legacy implementation of random.binomial.
 #14687: BUG: properly define PyArray_DescrCheck
Checksums
MD5
7e96dd5ca587fa647d21628072f08751 numpy1.17.3cp35cp35mmacosx_10_6_intel.whl
f5fd3a434d9e426c9f01ca5669e84973 numpy1.17.3cp35cp35mmanylinux1_i686.whl
d4520794f05e6466a1064e046b4ade2c numpy1.17.3cp35cp35mmanylinux1_x86_64.whl
67967e337b8378c92af9c2b6926b6dcd numpy1.17.3cp35cp35mwin32.whl
341b29b85c5305edd3f5ca9d9981f1b4 numpy1.17.3cp35cp35mwin_amd64.whl
7d9492ee0fbe8292518af104772bcee0 numpy1.17.3cp36cp36mmacosx_10_9_x86_64.whl
b0f1a9b0da552e2baa2e6db4668efee8 numpy1.17.3cp36cp36mmanylinux1_i686.whl
8b9c50124ae13279e9969fc0cf3b5e5f numpy1.17.3cp36cp36mmanylinux1_x86_64.whl
428766619877efec34ba224d9252396c numpy1.17.3cp36cp36mwin32.whl
a2fd25bf087e7765a4322ef3fa7f87b6 numpy1.17.3cp36cp36mwin_amd64.whl
98eb0ec4fe00f9f3309f2e523e76e36e numpy1.17.3cp37cp37mmacosx_10_9_x86_64.whl
415f086791be02d658a2800fa25874e4 numpy1.17.3cp37cp37mmanylinux1_i686.whl
3f5fd3e63dc84db7dd3745b007faea46 numpy1.17.3cp37cp37mmanylinux1_x86_64.whl
3f7ba813f7318d9671da66c610ab1e91 numpy1.17.3cp37cp37mwin32.whl
deb55760769373ad1da9844df8b9c865 numpy1.17.3cp37cp37mwin_amd64.whl
964b1cdad1cf20c63461246fe0638956 numpy1.17.3cp38cp38macosx_10_9_x86_64.whl
ece34643fc0c42801a8d3a53708f09ed numpy1.17.3cp38cp38manylinux1_i686.whl
081fd68219088577857ebd265e963d1e numpy1.17.3cp38cp38manylinux1_x86_64.whl
a231efeb2cfe69cf94764ccecba73d50 numpy1.17.3cp38cp38win32.whl
1c548f96188826e6999d3ba3fde99cf9 numpy1.17.3cp38cp38win_amd64.whl
48d6d97d6037eb8e171064a850b53aab numpy1.17.3.tar.gz
a3195ccbbd97b0366f0c46e36a62717a numpy1.17.3.zip
SHA256
4dd830a11e8724c9c9379feed1d1be43113f8bcce55f47ea7186d3946769ce26 numpy1.17.3cp35cp35mmacosx_10_6_intel.whl
30c84e3a62cfcb9e3066f25226e131451312a044f1fe2040e69ce792cb7de418 numpy1.17.3cp35cp35mmanylinux1_i686.whl
9395b0a41e8b7e9a284e3be7060db9d14ad80273841c952c83a5afc241d2bd98 numpy1.17.3cp35cp35mmanylinux1_x86_64.whl
9e37c35fc4e9410093b04a77d11a34c64bf658565e30df7cbe882056088a91c1 numpy1.17.3cp35cp35mwin32.whl
de2b1c20494bdf47f0160bd88ed05f5e48ae5dc336b8de7cfade71abcc95c0b9 numpy1.17.3cp35cp35mwin_amd64.whl
669795516d62f38845c7033679c648903200980d68935baaa17ac5c7ae03ae0c numpy1.17.3cp36cp36mmacosx_10_9_x86_64.whl
4650d94bb9c947151737ee022b934b7d9a845a7c76e476f3e460f09a0c8c6f39 numpy1.17.3cp36cp36mmanylinux1_i686.whl
4f2a2b279efde194877aff1f76cf61c68e840db242a5c7169f1ff0fd59a2b1e2 numpy1.17.3cp36cp36mmanylinux1_x86_64.whl
ffca69e29079f7880c5392bf675eb8b4146479d976ae1924d01cd92b04cccbcc numpy1.17.3cp36cp36mwin32.whl
2e418f0a59473dac424f888dd57e85f77502a593b207809211c76e5396ae4f5c numpy1.17.3cp36cp36mwin_amd64.whl
75fcd60d682db3e1f8fbe2b8b0c6761937ad56d01c1dc73edf4ef2748d5b6bc4 numpy1.17.3cp37cp37mmacosx_10_9_x86_64.whl
28b1180c758abf34a5c3fea76fcee66a87def1656724c42bb14a6f9717a5bdf7 numpy1.17.3cp37cp37mmanylinux1_i686.whl
dd0667f5be56fb1b570154c2c0516a528e02d50da121bbbb2cbb0b6f87f59bc2 numpy1.17.3cp37cp37mmanylinux1_x86_64.whl
25ffe71f96878e1da7e014467e19e7db90ae7d4e12affbc73101bcf61785214e numpy1.17.3cp37cp37mwin32.whl
0b0dd8f47fb177d00fa6ef2d58783c4f41ad3126b139c91dd2f7c4b3fdf5e9a5 numpy1.17.3cp37cp37mwin_amd64.whl
62d22566b3e3428dfc9ec972014c38ed9a4db4f8969c78f5414012ccd80a149e numpy1.17.3cp38cp38macosx_10_9_x86_64.whl
26efd7f7d755e6ca966a5c0ac5a930a87dbbaab1c51716ac26a38f42ecc9bc4b numpy1.17.3cp38cp38manylinux1_i686.whl
b46554ad4dafb2927f88de5a1d207398c5385edbb5c84d30b3ef187c4a3894d8 numpy1.17.3cp38cp38manylinux1_x86_64.whl
c867eeccd934920a800f65c6068acdd6b87e80d45cd8c8beefff783b23cdc462 numpy1.17.3cp38cp38win32.whl
f1df7b2b7740dd777571c732f98adb5aad5450aee32772f1b39249c8a50386f6 numpy1.17.3cp38cp38win_amd64.whl
c93733dbebc2599d2747ceac4b18825a73767d289176ed8e02090325656d69aa numpy1.17.3.tar.gz
a0678793096205a4d784bd99f32803ba8100f639cf3b932dc63b21621390ea7e numpy1.17.3.zip
Assets
6
charris released this
NumPy 1.17.2 Release Notes
This release contains fixes for bugs reported against NumPy 1.17.1 along with a
some documentation improvements. The most important fix is for lexsort when the
keys are of type (u)int8 or (u)int16. If you are currently using 1.17 you
should upgrade.
The Python versions supported in this release are 3.53.7, Python 2.7 has been
dropped. Python 3.8b4 should work with the released source packages, but there
are no future guarantees.
Downstream developers should use Cython >= 0.29.13 for Python 3.8 support and
OpenBLAS >= 3.7 to avoid errors on the Skylake architecture. The NumPy wheels
on PyPI are built from the OpenBLAS development branch in order to avoid those
errors.
Contributors
A total of 7 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 CakeWithSteak +
 Charles Harris
 Dan Allan
 Hameer Abbasi
 Lars Grueter
 Matti Picus
 Sebastian Berg
Pull requests merged
A total of 8 pull requests were merged for this release.
 #14418: BUG: Fix aradixsort indirect indexing.
 #14420: DOC: Fix a minor typo in dispatch documentation.
 #14421: BUG: test, fix regression in converting to ctypes
 #14430: BUG: Do not show Override module in private error classes.
 #14432: BUG: Fixed maximum relative error reporting in assert_allclose.
 #14433: BUG: Fix uintoverflow if padding with linear_ramp and negative...
 #14436: BUG: Update 1.17.x with 1.18.0dev pocketfft.py.
 #14446: REL: Prepare for NumPy 1.17.2 release.
Checksums
MD5
900786591ffe811ff9ff8b3fcf9e3ff9 numpy1.17.2cp35cp35mmacosx_10_6_intel.whl
307df8c629637865205276f0e48cbe53 numpy1.17.2cp35cp35mmanylinux1_i686.whl
279b286a569bacba85dfe44d86ed9767 numpy1.17.2cp35cp35mmanylinux1_x86_64.whl
0bc93e932b32408cceb5579f074e30a9 numpy1.17.2cp35cp35mwin32.whl
b963be3cae47b66b2c8b433d34cb93d1 numpy1.17.2cp35cp35mwin_amd64.whl
3eed381285a43bd23d7c568c6c165ec9 numpy1.17.2cp36cp36mmacosx_10_6_intel.whl
0a6d7616b5ed35d65a58c6a61256afb0 numpy1.17.2cp36cp36mmanylinux1_i686.whl
5b5a2f0bc6f01c1ae2c831fbfd8c8b06 numpy1.17.2cp36cp36mmanylinux1_x86_64.whl
8f166ccebf19a8c9c6ac00c8d93ba566 numpy1.17.2cp36cp36mwin32.whl
406fc90887f6af60f2edf229b2cfb2cf numpy1.17.2cp36cp36mwin_amd64.whl
a82da3fd77787c73cae9057f63e3b666 numpy1.17.2cp37cp37mmacosx_10_6_intel.whl
1f9b449eca275014f133872cdddf166d numpy1.17.2cp37cp37mmanylinux1_i686.whl
1de9df1e07a1f2becc7925b0861d1b2d numpy1.17.2cp37cp37mmanylinux1_x86_64.whl
0ae4a060c7353723c340aaf0fc655220 numpy1.17.2cp37cp37mwin32.whl
a7a026ef5c54dbc295e134d04367514e numpy1.17.2cp37cp37mwin_amd64.whl
68d582e09b951717b7ae1e9c0011d779 numpy1.17.2.tar.gz
a0fffd7651e6ed4c60d94394ca6662cd numpy1.17.2.zip
SHA256
3d0b0989dd2d066db006158de7220802899a1e5c8cf622abe2d0bd158fd01c2c numpy1.17.2cp35cp35mmacosx_10_6_intel.whl
7bd355ad7496f4ce1d235e9814ec81ee3d28308d591c067ce92e49f745ba2c2f numpy1.17.2cp35cp35mmanylinux1_i686.whl
7d077f2976b8f3de08a0dcf5d72083f4af5411e8fddacd662aae27baa2601196 numpy1.17.2cp35cp35mmanylinux1_x86_64.whl
05dbfe72684cc14b92568de1bc1f41e5f62b00f714afc9adee42f6311738091f numpy1.17.2cp35cp35mwin32.whl
f4a4f6aba148858a5a5d546a99280f71f5ee6ec8182a7d195af1a914195b21a2 numpy1.17.2cp35cp35mwin_amd64.whl
ee8e9d7cad5fe6dde50ede0d2e978d81eafeaa6233fb0b8719f60214cf226578 numpy1.17.2cp36cp36mmacosx_10_6_intel.whl
438a3f0e7b681642898fd7993d38e2bf140a2d1eafaf3e89bb626db7f50db355 numpy1.17.2cp36cp36mmanylinux1_i686.whl
b458de8624c9f6034af492372eb2fee41a8e605f03f4732f43fc099e227858b2 numpy1.17.2cp36cp36mmanylinux1_x86_64.whl
0d82cb7271a577529d07bbb05cb58675f2deb09772175fab96dc8de025d8ac05 numpy1.17.2cp36cp36mwin32.whl
12322df2e21f033a60c80319c25011194cd2a21294cc66fee0908aeae2c27832 numpy1.17.2cp36cp36mwin_amd64.whl
e70fc8ff03a961f13363c2c95ef8285e0cf6a720f8271836f852cc0fa64e97c8 numpy1.17.2cp37cp37mmacosx_10_6_intel.whl
a4092682778dc48093e8bda8d26ee8360153e2047826f95a3f5eae09f0ae3abf numpy1.17.2cp37cp37mmanylinux1_i686.whl
10132aa1fef99adc85a905d82e8497a580f83739837d7cbd234649f2e9b9dc58 numpy1.17.2cp37cp37mmanylinux1_x86_64.whl
16f19b3aa775dddc9814e02a46b8e6ae6a54ed8cf143962b4e53f0471dbd7b16 numpy1.17.2cp37cp37mwin32.whl
5fd214f482ab53f2cea57414c5fb3e58895b17df6e6f5bca5be6a0bb6aea23bb numpy1.17.2cp37cp37mwin_amd64.whl
81a4f748dcfa80a7071ad8f3d9f8edb9f8bc1f0a9bdd19bfd44fd42c02bd286c numpy1.17.2.tar.gz
73615d3edc84dd7c4aeb212fa3748fb83217e00d201875a47327f55363cef2df numpy1.17.2.zip
Assets
6
charris released this
NumPy 1.16.5 Release Notes
The NumPy 1.16.5 release fixes bugs reported against the 1.16.4 release, and
also backports several enhancements from master that seem appropriate for a
release series that is the last to support Python 2.7. The wheels on PyPI are
linked with OpenBLAS v0.3.7dev, which should fix errors on Skylake series
cpus.
Downstream developers building this release should use Cython >= 0.29.2 and, if
using OpenBLAS, OpenBLAS >= v0.3.7. The supported Python versions are 2.7 and
3.53.7.
Contributors
A total of 18 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Alexander Shadchin
 Allan Haldane
 Bruce Merry +
 Charles Harris
 Colin Snyder +
 Dan Allan +
 Emile +
 Eric Wieser
 Grey Baker +
 Maksim Shabunin +
 Marten van Kerkwijk
 Matti Picus
 Peter Andreas Entschev +
 Ralf Gommers
 Richard Harris +
 Sebastian Berg
 Sergei Lebedev +
 Stephan Hoyer
Pull requests merged
A total of 23 pull requests were merged for this release.
 #13742: ENH: Add project URLs to setup.py
 #13823: TEST, ENH: fix tests and ctypes code for PyPy
 #13845: BUG: use npy_intp instead of int for indexing array
 #13867: TST: Ignore DeprecationWarning during nose imports
 #13905: BUG: Fix useafterfree in boolean indexing
 #13933: MAINT/BUG/DOC: Fix errors in _add_newdocs
 #13984: BUG: fix byte order reversal for datetime64[ns]
 #13994: MAINT,BUG: Use nbytes to also catch empty descr during allocation
 #14042: BUG: np.array cleared errors occured in PyMemoryView_FromObject
 #14043: BUG: Fixes for Undefined Behavior Sanitizer (UBSan) errors.
 #14044: BUG: ensure that casting to/from structured is properly checked.
 #14045: MAINT: fix histogram*d dispatchers
 #14046: BUG: further fixup to histogram2d dispatcher.
 #14052: BUG: Replace contextlib.suppress for Python 2.7
 #14056: BUG: fix compilation of 3rd party modules with Py_LIMITED_API...
 #14057: BUG: Fix memory leak in dtype from dict contructor
 #14058: DOC: Document array_function at a higher level.
 #14084: BUG, DOC: add new recfunctions to
__all__
 #14162: BUG: Remove stray print that causes a SystemError on python 3.7
 #14297: TST: Pin pytest version to 5.0.1.
 #14322: ENH: Enable huge pages in all Linux builds
 #14346: BUG: fix behavior of structured_to_unstructured on nontrivial...
 #14382: REL: Prepare for the NumPy 1.16.5 release.
Checksums
MD5
cf7ff97464eb044cb49618be5fe29aee numpy1.16.5cp27cp27mmacosx_10_9_x86_64.whl
6fbf51644f8722fa90276c04fe3d031f numpy1.16.5cp27cp27mmanylinux1_i686.whl
df4ab8600495131e44ad1b173f6cc9fc numpy1.16.5cp27cp27mmanylinux1_x86_64.whl
2f6fd50a02da9d56e3d950a6b738337e numpy1.16.5cp27cp27mwin32.whl
d36b67522ee102b7865a83b26a1d97aa numpy1.16.5cp27cp27mwin_amd64.whl
5b4f83c092257f6c98bedd44505e7b6d numpy1.16.5cp27cp27mumanylinux1_i686.whl
d6fd33607099abdea62752cf303a1763 numpy1.16.5cp27cp27mumanylinux1_x86_64.whl
fa48e45bd3e5dbac923296b039e70706 numpy1.16.5cp35cp35mmacosx_10_9_x86_64.whl
85a7db0c597037cced7ab82c0f0cdcc8 numpy1.16.5cp35cp35mmanylinux1_i686.whl
401e053e98faada4bc8cdcc9b04d619f numpy1.16.5cp35cp35mmanylinux1_x86_64.whl
2912ba9109dca60115dba59606cac27b numpy1.16.5cp35cp35mwin32.whl
756b7ff320ef821f2cd279c5df7c9f46 numpy1.16.5cp35cp35mwin_amd64.whl
2ae22b506a07575a4bc6a91d2db25df5 numpy1.16.5cp36cp36mmacosx_10_9_x86_64.whl
12cbf61ed2abec3f77cfa3a46b7e4bdc numpy1.16.5cp36cp36mmanylinux1_i686.whl
ab726a4244e9e070cde814d8415cff4c numpy1.16.5cp36cp36mmanylinux1_x86_64.whl
752e461d193b7049e25c7e20f7d4808a numpy1.16.5cp36cp36mwin32.whl
2712434cdfb27a301c49cf97eee656d5 numpy1.16.5cp36cp36mwin_amd64.whl
394fee86faa235dea6d2bb6270961266 numpy1.16.5cp37cp37mmacosx_10_9_x86_64.whl
0713da36acc884897f76bc8117ca7a42 numpy1.16.5cp37cp37mmanylinux1_i686.whl
7856a32b3b2d93d018d2ba5dce941ffa numpy1.16.5cp37cp37mmanylinux1_x86_64.whl
33b7fd0d727c9f09d61879afde8096f6 numpy1.16.5cp37cp37mwin32.whl
5287ce297cd8093463bb29bef42db103 numpy1.16.5cp37cp37mwin_amd64.whl
f9c22f53f17e81b25af8e53b026a9831 numpy1.16.5.tar.gz
adaad8c166cf0344af3ca1a664dd4a38 numpy1.16.5.zip
SHA256
37fdd3bb05caaaacac58015cfa38e38b006ee9cef1eaacdb70bb68c16ac7db1d numpy1.16.5cp27cp27mmacosx_10_9_x86_64.whl
f42e21d8db16315bc30b437bff63d6b143befb067b8cd396fa3ef17f1c21e1a0 numpy1.16.5cp27cp27mmanylinux1_i686.whl
4208b225ae049641a7a99ab92e84ce9d642ded8250d2b6c9fd61a7fa8c072561 numpy1.16.5cp27cp27mmanylinux1_x86_64.whl
4d790e2a37aa3350667d8bb8acc919010c7e46234c3d615738564ddc6d22026f numpy1.16.5cp27cp27mwin32.whl
1594aec94e4896e0688f4f405481fda50fb70547000ae71f2e894299a088a661 numpy1.16.5cp27cp27mwin_amd64.whl
2c5a556272c67566e8f4607d1c78ad98e954fa6c32802002a4a0b029ad8dd759 numpy1.16.5cp27cp27mumanylinux1_i686.whl
3a96e59f61c7a8f8838d0f4d19daeba551c5f07c5cdd5c81e8e9d4089ade0042 numpy1.16.5cp27cp27mumanylinux1_x86_64.whl
612297115bade249a118616c065597ff2e5e1f47ed220d7ba71f3e6c6ebcd814 numpy1.16.5cp35cp35mmacosx_10_9_x86_64.whl
dbc9e9a6a5e0c4f57498855d4e30ef8b599c0ce13fdf9d64299197508d67d9e8 numpy1.16.5cp35cp35mmanylinux1_i686.whl
fada0492dd35412cd96e0578677e9a4bdae8f102ef2b631301fcf19066b57119 numpy1.16.5cp35cp35mmanylinux1_x86_64.whl
ada1a1cd68b9874fa480bd287438f92bd7ce88ca0dd6e8d56c70f2b3dab97314 numpy1.16.5cp35cp35mwin32.whl
27aa457590268cb059c47daa8c55f48c610ce81da8a062ec117f74efa9124ec9 numpy1.16.5cp35cp35mwin_amd64.whl
03b28330253904d410c3c82d66329f29645eb54a7345cb7dd7a1529d61fa603f numpy1.16.5cp36cp36mmacosx_10_9_x86_64.whl
911d91ffc6688db0454d69318584415f7dfb0fc1b8ac9b549234e39495684230 numpy1.16.5cp36cp36mmanylinux1_i686.whl
ceb353e3ae840ce76256935b18c17236ca808509f231f41d5173d7b2680d5e77 numpy1.16.5cp36cp36mmanylinux1_x86_64.whl
e6ce7c0051ed5443f8343da2a14580aa438822ae6526900332c4564f371d2aaf numpy1.16.5cp36cp36mwin32.whl
9a2b950bca9faca0145491ae9fd214c432f2b1e36783399bc2c3732e7bcc94f4 numpy1.16.5cp36cp36mwin_amd64.whl
00836128feaf9a7c7fedeea05ad593e7965f523d23fe3ffbf20cfffd88e9f2b1 numpy1.16.5cp37cp37mmacosx_10_9_x86_64.whl
3d6a354bb1a1ce2cabd47e0bdcf25364322fb55a29efb59f76944d7ee546d8b6 numpy1.16.5cp37cp37mmanylinux1_i686.whl
f7fb27c0562206787011cf299c03f663c604b58a35a9c2b5218ba6485a17b145 numpy1.16.5cp37cp37mmanylinux1_x86_64.whl
46469e7fcb689036e72ce61c3d432ed35eb4c71b5119e894845b434b0fae5813 numpy1.16.5cp37cp37mwin32.whl
fb207362394567343d84c0462ec3ba203a21c78be9a0fdbb94982e76859ec37e numpy1.16.5cp37cp37mwin_amd64.whl
2b63c414fb43a4f0cb69b29b7e9d48275af0dbb5b1ffd2f2de99c4df9967e151 numpy1.16.5.tar.gz
8bb452d94e964b312205b0de1238dd7209da452343653ab214b5d681780e7a0c numpy1.16.5.zip
Assets
6
charris released this
NumPy 1.17.0 Release Notes
This NumPy release contains a number of new features that should substantially
improve its performance and usefulness, see Highlights below for a summary. The
Python versions supported are 3.53.7, note that Python 2.7 has been dropped.
Python 3.8b2 should work with the released source packages, but there are no
future guarantees.
Downstream developers should use Cython >= 0.29.11 for Python 3.8 support and
OpenBLAS >= 3.7 (not currently out) to avoid problems on the Skylake
architecture. The NumPy wheels on PyPI are built from the OpenBLAS development
branch in order to avoid those problems.
Highlights

A new extensible
random
module along with four selectablerandom number generators <random.BitGenerators>
and improved seeding designed for use in parallel
processes has been added. The currently available bit generators areMT19937 <random.mt19937.MT19937>
,PCG64 <random.pcg64.PCG64>
,Philox <random.philox.Philox>
, andSFC64 <random.sfc64.SFC64>
. See below under
New Features. 
NumPy's
FFT <fft>
implementation was changed from fftpack to pocketfft,
resulting in faster, more accurate transforms and better handling of datasets
of prime length. See below under Improvements. 
New radix sort and timsort sorting methods. It is currently not possible to
choose which will be used. They are hardwired to the datatype and used
when eitherstable
ormergesort
is passed as the method. See below
under Improvements. 
Overriding numpy functions is now possible by default,
see__array_function__
below.
New functions
numpy.errstate
is now also a function decorator
Deprecations
numpy.polynomial
functions warn when passed float
in place of int
Previously functions in this module would accept float
values provided they
were integral (1.0
, 2.0
, etc). For consistency with the rest of numpy,
doing so is now deprecated, and in future will raise a TypeError
.
Similarly, passing a float like 0.5
in place of an integer will now raise a
TypeError
instead of the previous ValueError
.
Deprecate numpy.distutils.exec_command
and temp_file_name
The internal use of these functions has been refactored and there are better
alternatives. Replace exec_command
with subprocess.Popen
and
temp_file_name <numpy.distutils.exec_command>
with tempfile.mkstemp
.
Writeable flag of CAPI wrapped arrays
When an array is created from the CAPI to wrap a pointer to data, the only
indication we have of the readwrite nature of the data is the writeable
flag set during creation. It is dangerous to force the flag to writeable.
In the future it will not be possible to switch the writeable flag to True
from python.
This deprecation should not affect many users since arrays created in such
a manner are very rare in practice and only available through the NumPy CAPI.
numpy.nonzero
should no longer be called on 0d arrays
The behavior of numpy.nonzero
on 0d arrays was surprising, making uses of it
almost always incorrect. If the old behavior was intended, it can be preserved
without a warning by using nonzero(atleast_1d(arr))
instead of
nonzero(arr)
. In a future release, it is most likely this will raise a
ValueError
.
Writing to the result of numpy.broadcast_arrays
will warn
Commonly numpy.broadcast_arrays
returns a writeable array with internal
overlap, making it unsafe to write to. A future version will set the
writeable
flag to False
, and require users to manually set it to
True
if they are sure that is what they want to do. Now writing to it will
emit a deprecation warning with instructions to set the writeable
flag
True
. Note that if one were to inspect the flag before setting it, one
would find it would already be True
. Explicitly setting it, though, as one
will need to do in future versions, clears an internal flag that is used to
produce the deprecation warning. To help alleviate confusion, an additional
FutureWarning
will be emitted when accessing the writeable
flag state to
clarify the contradiction.
Note that for the Cside buffer protocol such an array will return a
readonly buffer immediately unless a writable buffer is requested. If
a writeable buffer is requested a warning will be given. When using
cython, the const
qualifier should be used with such arrays to avoid
the warning (e.g. cdef const double[::1] view
).
Future Changes
Shape1 fields in dtypes won't be collapsed to scalars in a future version
Currently, a field specified as [(name, dtype, 1)]
or "1type"
is
interpreted as a scalar field (i.e., the same as [(name, dtype)]
or
[(name, dtype, ()]
). This now raises a FutureWarning; in a future version,
it will be interpreted as a shape(1,) field, i.e. the same as [(name, dtype, (1,))]
or "(1,)type"
(consistently with [(name, dtype, n)]
/ "ntype"
with n>1
, which is already equivalent to [(name, dtype, (n,)]
/ "(n,)type"
).
Compatibility notes
float16
subnormal rounding
Casting from a different floating point precision to float16
used incorrect
rounding in some edge cases. This means in rare cases, subnormal results will
now be rounded up instead of down, changing the last bit (ULP) of the result.
Signed zero when using divmod
Starting in version 1.12.0
, numpy incorrectly returned a negatively signed zero
when using the divmod
and floor_divide
functions when the result was
zero. For example::
>>> np.zeros(10)//1
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
With this release, the result is correctly returned as a positively signed
zero::
>>> np.zeros(10)//1
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
MaskedArray.mask
now returns a view of the mask, not the mask itself
Returning the mask itself was unsafe, as it could be reshaped in place which
would violate expectations of the masked array code. The behavior of mask <ma.MaskedArray.mask>
is now consistent with data <ma.MaskedArray.data>
,
which also returns a view.
The underlying mask can still be accessed with ._mask
if it is needed.
Tests that contain assert x.mask is not y.mask
or similar will need to be
updated.
Do not lookup __buffer__
attribute in numpy.frombuffer
Looking up __buffer__
attribute in numpy.frombuffer
was undocumented and
nonfunctional. This code was removed. If needed, use
frombuffer(memoryview(obj), ...)
instead.
out
is buffered for memory overlaps in take
, choose
, put
If the out argument to these functions is provided and has memory overlap with
the other arguments, it is now buffered to avoid orderdependent behavior.
Unpickling while loading requires explicit optin
The functions load
, and lib.format.read_array
take an
allow_pickle
keyword which now defaults to False
in response to
CVE20196446 <https://nvd.nist.gov/vuln/detail/CVE20196446>
_.
Potential changes to the random stream in old random module
Due to bugs in the application of log
to random floating point numbers,
the stream may change when sampling from ~RandomState.beta
, ~RandomState.binomial
,
~RandomState.laplace
, ~RandomState.logistic
, ~RandomState.logseries
or
~RandomState.multinomial
if a 0
is generated in the underlying MT19937 <~numpy.random.mt11937.MT19937>
random stream. There is a 1
in
:math:10^{53}
chance of this occurring, so the probability that the stream
changes for any given seed is extremely small. If a 0
is encountered in the
underlying generator, then the incorrect value produced (either numpy.inf
or
numpy.nan
) is now dropped.
i0
now always returns a result with the same shape as the input
Previously, the output was squeezed, such that, e.g., input with just a single
element would lead to an array scalar being returned, and inputs with shapes
such as (10, 1)
would yield results that would not broadcast against the
input.
Note that we generally recommend the SciPy implementation over the numpy one:
it is a proper ufunc written in C, and more than an order of magnitude faster.
can_cast
no longer assumes all unsafe casting is allowed
Previously, can_cast
returned True
for almost all inputs for
casting='unsafe'
, even for cases where casting was not possible, such as
from a structured dtype to a regular one. This has been fixed, making it
more consistent with actual casting using, e.g., the .astype <ndarray.astype>
method.
ndarray.flags.writeable
can be switched to true slightly more often
In rare cases, it was not possible to switch an array from not writeable
to writeable, although a base array is writeable. This can happen if an
intermediate ndarray.base
object is writeable. Previously, only the deepest
base object was considered for this decision. However, in rare cases this
object does not have the necessary information. In that case switching to
writeable was never allowed. This has now been fixed.
C API changes
dimension or stride input arguments are now passed by npy_intp const*
Previously these function arguments were declared as the more strict
npy_intp*
, which prevented the caller passing constant data.
This change is backwards compatible, but now allows code like::
npy_intp const fixed_dims[] = {1, 2, 3};
// no longer complains that the constqualifier is discarded
npy_intp size = PyArray_MultiplyList(fixed_dims, 3);
New Features
New extensible numpy.random
module with selectable random number generators
A new extensible numpy.random
module along with four selectable random number
generators and improved seeding designed for use in parallel processes has been
added. The currently available :ref:Bit Generators <bit_generator>
are
~mt19937.MT19937
, ~pcg64.PCG64
, ~philox.Philox
, and ~sfc64.SFC64
.
PCG64
is the new default while MT19937
is retained for backwards
compatibility. Note that the legacy random module is unchanged and is now
frozen, your current results will not change. More information is available in
the :ref:API change description <newordifferent>
and in the toplevel view <numpy.random>
documentation.
libFLAME
Support for building NumPy with the libFLAME linear algebra package as the LAPACK,
implementation, see
libFLAME <https://www.cs.utexas.edu/~flame/web/libFLAME.html>
_ for details.
Userdefined BLAS detection order
distutils
now uses an environment variable, commaseparated and case
insensitive, to determine the detection order for BLAS libraries.
By default NPY_BLAS_ORDER=mkl,blis,openblas,atlas,accelerate,blas
.
However, to force the use of OpenBLAS simply do::
NPY_BLAS_ORDER=openblas python setup.py build
which forces the use of OpenBLAS.
This may be helpful for users which have a MKL installation but wishes to try
out different implementations.
Userdefined LAPACK detection order
numpy.distutils
now uses an environment variable, commaseparated and case
insensitive, to determine the detection order for LAPACK libraries.
By default NPY_LAPACK_ORDER=mkl,openblas,flame,atlas,accelerate,lapack
.
However, to force the use of OpenBLAS simply do::
NPY_LAPACK_ORDER=openblas python setup.py build
which forces the use of OpenBLAS.
This may be helpful for users which have a MKL installation but wishes to try
out different implementations.
ufunc.reduce
and related functions now accept a where
mask
ufunc.reduce
, sum
, prod
, min
, max
all
now accept a where
keyword argument, which can be used to tell which
elements to include in the reduction. For reductions that do not have an
identity, it is necessary to also pass in an initial value (e.g.,
initial=np.inf
for min
). For instance, the equivalent of
nansum
would be np.sum(a, where=~np.isnan(a))
.
Timsort and radix sort have replaced mergesort for stable sorting
Both radix sort and timsort have been implemented and are now used in place of
mergesort. Due to the need to maintain backward compatibility, the sorting
kind
options "stable"
and "mergesort"
have been made aliases of
each other with the actual sort implementation depending on the array type.
Radix sort is used for small integer types of 16 bits or less and timsort for
the remaining types. Timsort features improved performace on data containing
already or nearly sorted data and performs like mergesort on random data and
requires :math:O(n/2)
working space. Details of the timsort algorithm can be
found at CPython listsort.txt <https://github.com/python/cpython/blob/3.7/Objects/listsort.txt>
_.
packbits
and unpackbits
accept an order
keyword
The order
keyword defaults to big
, and will order the bits
accordingly. For 'order=big'
3 will become [0, 0, 0, 0, 0, 0, 1, 1]
,
and [1, 1, 0, 0, 0, 0, 0, 0]
for order=little
unpackbits
now accepts a count
parameter
count
allows subsetting the number of bits that will be unpacked upfront,
rather than reshaping and subsetting later, making the packbits
operation
invertible, and the unpacking less wasteful. Counts larger than the number of
available bits add zero padding. Negative counts trim bits off the end instead
of counting from the beginning. None counts implement the existing behavior of
unpacking everything.
linalg.svd
and linalg.pinv
can be faster on hermitian inputs
These functions now accept a hermitian
argument, matching the one added
to linalg.matrix_rank
in 1.14.0.
divmod operation is now supported for two timedelta64
operands
The divmod operator now handles two timedelta64
operands, with
type signature mm>qm
.
fromfile
now takes an offset
argument
This function now takes an offset
keyword argument for binary files,
which specifics the offset (in bytes) from the file's current position.
Defaults to 0
.
New mode "empty" for pad
This mode pads an array to a desired shape without initializing the new
entries.
empty_like
and related functions now accept a shape
argument
empty_like
, full_like
, ones_like
and zeros_like
now accept a shape
keyword argument, which can be used to create a new array
as the prototype, overriding its shape as well. This is particularly useful
when combined with the __array_function__
protocol, allowing the creation
of new arbitraryshape arrays from NumPylike libraries when such an array
is used as the prototype.
Floating point scalars implement as_integer_ratio
to match the builtin float
This returns a (numerator, denominator) pair, which can be used to construct a
fractions.Fraction
.
Structured dtype
objects can be indexed with multiple fields names
arr.dtype[['a', 'b']]
now returns a dtype that is equivalent to
arr[['a', 'b']].dtype
, for consistency with
arr.dtype['a'] == arr['a'].dtype
.
Like the dtype of structured arrays indexed with a list of fields, this dtype
has the same itemsize
as the original, but only keeps a subset of the fields.
This means that arr[['a', 'b']]
and arr.view(arr.dtype[['a', 'b']])
are
equivalent.
.npy
files support unicode field names
A new format version of 3.0 has been introduced, which enables structured types
with nonlatin1 field names. This is used automatically when needed.
Improvements
Array comparison assertions include maximum differences
Error messages from array comparison tests such as
testing.assert_allclose
now include "max absolute difference" and
"max relative difference," in addition to the previous "mismatch" percentage.
This information makes it easier to update absolute and relative error
tolerances.
Replacement of the fftpack based fft
module by the pocketfft library
Both implementations have the same ancestor (Fortran77 FFTPACK by Paul N.
Swarztrauber), but pocketfft contains additional modifications which improve
both accuracy and performance in some circumstances. For FFT lengths containing
large prime factors, pocketfft uses Bluestein's algorithm, which maintains
:math:O(N log N)
run time complexity instead of deteriorating towards
:math:O(N*N)
for prime lengths. Also, accuracy for real valued FFTs with near
prime lengths has improved and is on par with complex valued FFTs.
Further improvements to ctypes
support in numpy.ctypeslib
A new numpy.ctypeslib.as_ctypes_type
function has been added, which can be
used to converts a dtype
into a bestguess ctypes
type. Thanks to this
new function, numpy.ctypeslib.as_ctypes
now supports a much wider range of
array types, including structures, booleans, and integers of nonnative
endianness.
numpy.errstate
is now also a function decorator
Currently, if you have a function like::
def foo():
pass
and you want to wrap the whole thing in errstate
, you have to rewrite it
like so::
def foo():
with np.errstate(...):
pass
but with this change, you can do::
@np.errstate(...)
def foo():
pass
thereby saving a level of indentation
numpy.exp
and numpy.log
speed up for float32 implementation
float32 implementation of exp
and log
now benefit from AVX2/AVX512
instruction set which are detected during runtime. exp
has a max ulp
error of 2.52 and log
has a max ulp error or 3.83.
Improve performance of numpy.pad
The performance of the function has been improved for most cases by filling in
a preallocated array with the desired padded shape instead of using
concatenation.
numpy.interp
handles infinities more robustly
In some cases where interp
would previously return nan
, it now
returns an appropriate infinity.
Pathlib support for fromfile
, tofile
and ndarray.dump
fromfile
, ndarray.ndarray.tofile
and ndarray.dump
now support
the pathlib.Path
type for the file
/fid
parameter.
Specialized isnan
, isinf
, and isfinite
ufuncs for bool and int types
The boolean and integer types are incapable of storing nan
and inf
values,
which allows us to provide specialized ufuncs that are up to 250x faster than
the previous approach.
isfinite
supports datetime64
and timedelta64
types
Previously, isfinite
used to raise a TypeError
on being used on these
two types.
New keywords added to nan_to_num
nan_to_num
now accepts keywords nan
, posinf
and neginf
allowing the user to define the value to replace the nan
, positive and
negative np.inf
values respectively.
MemoryErrors caused by allocated overly large arrays are more descriptive
Often the cause of a MemoryError is incorrect broadcasting, which results in a
very large and incorrect shape. The message of the error now includes this
shape to help diagnose the cause of failure.
floor
, ceil
, and trunc
now respect builtin magic methods
These ufuncs now call the __floor__
, __ceil__
, and __trunc__
methods when called on object arrays, making them compatible with
decimal.Decimal
and fractions.Fraction
objects.
quantile
now works on fraction.Fraction
and decimal.Decimal
objects
In general, this handles object arrays more gracefully, and avoids floating
point operations if exact arithmetic types are used.
Support of object arrays in matmul
It is now possible to use matmul
(or the @
operator) with object arrays.
For instance, it is now possible to do::
from fractions import Fraction
a = np.array([[Fraction(1, 2), Fraction(1, 3)], [Fraction(1, 3), Fraction(1, 2)]])
b = a @ a
Changes
median
and percentile
family of functions no longer warn about nan
numpy.median
, numpy.percentile
, and numpy.quantile
used to emit a
RuntimeWarning
when encountering an nan
. Since they return the
nan
value, the warning is redundant and has been removed.
timedelta64 % 0
behavior adjusted to return NaT
The modulus operation with two np.timedelta64
operands now returns
NaT
in the case of division by zero, rather than returning zero
NumPy functions now always support overrides with __array_function__
NumPy now always checks the __array_function__
method to implement overrides
of NumPy functions on nonNumPy arrays, as described in NEP 18
_. The feature
was available for testing with NumPy 1.16 if appropriate environment variables
are set, but is now always enabled.
.. _NEP 18
: http://www.numpy.org/neps/nep0018arrayfunctionprotocol.html
lib.recfunctions.structured_to_unstructured
does not squeeze singlefield views
Previously structured_to_unstructured(arr[['a']])
would produce a squeezed
result inconsistent with structured_to_unstructured(arr[['a', b']])
. This
was accidental. The old behavior can be retained with
structured_to_unstructured(arr[['a']]).squeeze(axis=1)
or far more simply,
arr['a']
.
clip
now uses a ufunc under the hood
This means that registering clip functions for custom dtypes in C via
descr>f>fastclip
is deprecated  they should use the ufunc registration
mechanism instead, attaching to the np.core.umath.clip
ufunc.
It also means that clip
accepts where
and casting
arguments,
and can be override with __array_ufunc__
.
A consequence of this change is that some behaviors of the old clip
have
been deprecated:
 Passing
nan
to mean "do not clip" as one or both bounds. This didn't work
in all cases anyway, and can be better handled by passing infinities of the
appropriate sign.  Using "unsafe" casting by default when an
out
argument is passed. Using
casting="unsafe"
explicitly will silence this warning.
Additionally, there are some corner cases with behavior changes:
 Padding
max < min
has changed to be more consistent across dtypes, but
should not be relied upon.  Scalar
min
andmax
take part in promotion rules like they do in all
other ufuncs.
__array_interface__
offset now works as documented
The interface may use an offset
value that was mistakenly ignored.
Pickle protocol in savez
set to 3 for force zip64
flag
savez
was not using the force_zip64
flag, which limited the size of
the archive to 2GB. But using the flag requires us to use pickle protocol 3 to
write object
arrays. The protocol used was bumped to 3, meaning the archive
will be unreadable by Python2.
Structured arrays indexed with nonexistent fields raise KeyError
not ValueError
arr['bad_field']
on a structured type raises KeyError
, for consistency
with dict['bad_field']
.
Checksums
MD5
5ac469e3c2cd9b34c2a906d48544f491 numpy1.17.0cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
526c60c36c61b7d30e6a50ffad3e81a2 numpy1.17.0cp35cp35mmanylinux1_i686.whl
71066029b28fa03b897fd960be6dc6a9 numpy1.17.0cp35cp35mmanylinux1_x86_64.whl
ab16f4b7f83e64113bf118ae3a9414b9 numpy1.17.0cp35cp35mwin32.whl
e919d45495558d93275ef4ab724f767a numpy1.17.0cp35cp35mwin_amd64.whl
101e88a9870a5046536f71d77d0a7f5c numpy1.17.0cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c996484b56aefecfe3626bcaca88a187 numpy1.17.0cp36cp36mmanylinux1_i686.whl
4db1ecda4fbc202722774599cb434378 numpy1.17.0cp36cp36mmanylinux1_x86_64.whl
feeecc8ea0bbc37b2f0be447b32a478f numpy1.17.0cp36cp36mwin32.whl
b7efb94a9cf4cc864ea546fb21a4d6bf numpy1.17.0cp36cp36mwin_amd64.whl
c6501eed55a840b2c81b211d6cf5065e numpy1.17.0cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
49ae9d7440e5dbabf3e02eba5b4bb8cd numpy1.17.0cp37cp37mmanylinux1_i686.whl
a245e8fc884fcd6ad1c53c322496cace numpy1.17.0cp37cp37mmanylinux1_x86_64.whl
0da9af1ac3832ae8b94f5fdce31c8c7d numpy1.17.0cp37cp37mwin32.whl
1ffa1bc110de363748a849a35126d9ff numpy1.17.0cp37cp37mwin_amd64.whl
c48b2ad785f82cdfe28c907ce35e2a71 numpy1.17.0.tar.gz
aed49b31bcb44ec73b8155be78566135 numpy1.17.0.zip
SHA256
910d2272403c2ea8a52d9159827dc9f7c27fb4b263749dca884e2e4a8af3b302 numpy1.17.0cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
9ce8300950f2f1d29d0e49c28ebfff0d2f1e2a7444830fbb0b913c7c08f31511 numpy1.17.0cp35cp35mmanylinux1_i686.whl
7724e9e31ee72389d522b88c0d4201f24edc34277999701ccd4a5392e7d8af61 numpy1.17.0cp35cp35mmanylinux1_x86_64.whl
0cdd229a53d2720d21175012ab0599665f8c9588b3b8ffa6095dd7b90f0691dd numpy1.17.0cp35cp35mwin32.whl
5adfde7bd3ee4864536e230bcab1c673f866736698724d5d28c11a4d63672658 numpy1.17.0cp35cp35mwin_amd64.whl
464b1c48baf49e8505b1bb754c47a013d2c305c5b14269b5c85ea0625b6a988a numpy1.17.0cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
eb0fc4a492cb896346c9e2c7a22eae3e766d407df3eb20f4ce027f23f76e4c54 numpy1.17.0cp36cp36mmanylinux1_i686.whl
9588c6b4157f493edeb9378788dcd02cb9e6a6aeaa518b511a1c79d06cbd8094 numpy1.17.0cp36cp36mmanylinux1_x86_64.whl
03e311b0a4c9f5755da7d52161280c6a78406c7be5c5cc7facfbcebb641efb7e numpy1.17.0cp36cp36mwin32.whl
c3ab2d835b95ccb59d11dfcd56eb0480daea57cdf95d686d22eff35584bc4554 numpy1.17.0cp36cp36mwin_amd64.whl
f4e4612de60a4f1c4d06c8c2857cdcb2b8b5289189a12053f37d3f41f06c60d0 numpy1.17.0cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
312bb18e95218bedc3563f26fcc9c1c6bfaaf9d453d15942c0839acdd7e4c473 numpy1.17.0cp37cp37mmanylinux1_i686.whl
8d36f7c53ae741e23f54793ffefb2912340b800476eb0a831c6eb602e204c5c4 numpy1.17.0cp37cp37mmanylinux1_x86_64.whl
ec0c56eae6cee6299f41e780a0280318a93db519bbb2906103c43f3e2be1206c numpy1.17.0cp37cp37mwin32.whl
be39cca66cc6806652da97103605c7b65ee4442c638f04ff064a7efd9a81d50a numpy1.17.0cp37cp37mwin_amd64.whl
47b7b6145e7ba5918ce26be25999b6d4b35cf9fbfdf46b7da50090ffdb020445 numpy1.17.0.tar.gz
951fefe2fb73f84c620bec4e001e80a80ddaa1b84dce244ded7f1e0cbe0ed34a numpy1.17.0.zip
Assets
6
charris released this
.. currentmodule:: numpy
==========================
NumPy 1.17.0 Release Notes
This NumPy release contains a number of new features that should substantially
improve its performance and usefulness, see Highlights below for a summary. The
Python versions supported are 3.53.7, note that Python 2.7 has been dropped.
Python 3.8b2 should work with the released source packages, but there are no
future guarantees.
Downstream developers should use Cython >= 0.29.11 for Python 3.8 support and
OpenBLAS >= 3.7 (not currently out) to avoid problems on the Skylake
architecture. The NumPy wheels on PyPI are built from the OpenBLAS development
branch in order to avoid those problems.
Highlights

A new extensible
random
module along with four selectablerandom number generators <random.BitGenerators>
and improved seeding designed for use in parallel
processes has been added. The currently available bit generators areMT19937 <random.mt19937.MT19937>
,PCG64 <random.pcg64.PCG64>
,Philox <random.philox.Philox>
, andSFC64 <random.sfc64.SFC64>
. See below under
New Features. 
NumPy's
FFT <fft>
implementation was changed from fftpack to pocketfft,
resulting in faster, more accurate transforms and better handling of datasets
of prime length. See below under Improvements. 
New radix sort and timsort sorting methods. It is currently not possible to
choose which will be used. They are hardwired to the datatype and used
when eitherstable
ormergesort
is passed as the method. See below
under Improvements. 
Overriding numpy functions is now possible by default,
see__array_function__
below.
New functions
numpy.errstate
is now also a function decorator
Deprecations
numpy.polynomial
functions warn when passed float
in place of int
Previously functions in this module would accept float
values provided they
were integral (1.0
, 2.0
, etc). For consistency with the rest of numpy,
doing so is now deprecated, and in future will raise a TypeError
.
Similarly, passing a float like 0.5
in place of an integer will now raise a
TypeError
instead of the previous ValueError
.
Deprecate numpy.distutils.exec_command
and temp_file_name
The internal use of these functions has been refactored and there are better
alternatives. Replace exec_command
with subprocess.Popen
and
temp_file_name <numpy.distutils.exec_command>
with tempfile.mkstemp
.
Writeable flag of CAPI wrapped arrays
When an array is created from the CAPI to wrap a pointer to data, the only
indication we have of the readwrite nature of the data is the writeable
flag set during creation. It is dangerous to force the flag to writeable.
In the future it will not be possible to switch the writeable flag to True
from python.
This deprecation should not affect many users since arrays created in such
a manner are very rare in practice and only available through the NumPy CAPI.
numpy.nonzero
should no longer be called on 0d arrays
The behavior of numpy.nonzero
on 0d arrays was surprising, making uses of it
almost always incorrect. If the old behavior was intended, it can be preserved
without a warning by using nonzero(atleast_1d(arr))
instead of
nonzero(arr)
. In a future release, it is most likely this will raise a
ValueError
.
Writing to the result of numpy.broadcast_arrays
will warn
Commonly numpy.broadcast_arrays
returns a writeable array with internal
overlap, making it unsafe to write to. A future version will set the
writeable
flag to False
, and require users to manually set it to
True
if they are sure that is what they want to do. Now writing to it will
emit a deprecation warning with instructions to set the writeable
flag
True
. Note that if one were to inspect the flag before setting it, one
would find it would already be True
. Explicitly setting it, though, as one
will need to do in future versions, clears an internal flag that is used to
produce the deprecation warning. To help alleviate confusion, an additional
FutureWarning
will be emitted when accessing the writeable
flag state to
clarify the contradiction.
Note that for the Cside buffer protocol such an array will return a
readonly buffer immediately unless a writable buffer is requested. If
a writeable buffer is requested a warning will be given. When using
cython, the const
qualifier should be used with such arrays to avoid
the warning (e.g. cdef const double[::1] view
).
Future Changes
Shape1 fields in dtypes won't be collapsed to scalars in a future version
Currently, a field specified as [(name, dtype, 1)]
or "1type"
is
interpreted as a scalar field (i.e., the same as [(name, dtype)]
or
[(name, dtype, ()]
). This now raises a FutureWarning; in a future version,
it will be interpreted as a shape(1,) field, i.e. the same as [(name, dtype, (1,))]
or "(1,)type"
(consistently with [(name, dtype, n)]
/ "ntype"
with n>1
, which is already equivalent to [(name, dtype, (n,)]
/ "(n,)type"
).
Compatibility notes
float16
subnormal rounding
Casting from a different floating point precision to float16
used incorrect
rounding in some edge cases. This means in rare cases, subnormal results will
now be rounded up instead of down, changing the last bit (ULP) of the result.
Signed zero when using divmod
Starting in version 1.12.0
, numpy incorrectly returned a negatively signed zero
when using the divmod
and floor_divide
functions when the result was
zero. For example::
>>> np.zeros(10)//1
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
With this release, the result is correctly returned as a positively signed
zero::
>>> np.zeros(10)//1
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
MaskedArray.mask
now returns a view of the mask, not the mask itself
Returning the mask itself was unsafe, as it could be reshaped in place which
would violate expectations of the masked array code. The behavior of mask <ma.MaskedArray.mask>
is now consistent with data <ma.MaskedArray.data>
,
which also returns a view.
The underlying mask can still be accessed with ._mask
if it is needed.
Tests that contain assert x.mask is not y.mask
or similar will need to be
updated.
Do not lookup __buffer__
attribute in numpy.frombuffer
Looking up __buffer__
attribute in numpy.frombuffer
was undocumented and
nonfunctional. This code was removed. If needed, use
frombuffer(memoryview(obj), ...)
instead.
out
is buffered for memory overlaps in take
, choose
, put
If the out argument to these functions is provided and has memory overlap with
the other arguments, it is now buffered to avoid orderdependent behavior.
Unpickling while loading requires explicit optin
The functions load
, and lib.format.read_array
take an
allow_pickle
keyword which now defaults to False
in response to
CVE20196446 <https://nvd.nist.gov/vuln/detail/CVE20196446>
_.
.. currentmodule:: numpy.random.mtrand
Potential changes to the random stream in old random module
Due to bugs in the application of log
to random floating point numbers,
the stream may change when sampling from ~RandomState.beta
, ~RandomState.binomial
,
~RandomState.laplace
, ~RandomState.logistic
, ~RandomState.logseries
or
~RandomState.multinomial
if a 0
is generated in the underlying MT19937 <~numpy.random.mt11937.MT19937>
random stream. There is a 1
in
:math:10^{53}
chance of this occurring, so the probability that the stream
changes for any given seed is extremely small. If a 0
is encountered in the
underlying generator, then the incorrect value produced (either numpy.inf
or
numpy.nan
) is now dropped.
.. currentmodule:: numpy
i0
now always returns a result with the same shape as the input
Previously, the output was squeezed, such that, e.g., input with just a single
element would lead to an array scalar being returned, and inputs with shapes
such as (10, 1)
would yield results that would not broadcast against the
input.
Note that we generally recommend the SciPy implementation over the numpy one:
it is a proper ufunc written in C, and more than an order of magnitude faster.
can_cast
no longer assumes all unsafe casting is allowed
Previously, can_cast
returned True
for almost all inputs for
casting='unsafe'
, even for cases where casting was not possible, such as
from a structured dtype to a regular one. This has been fixed, making it
more consistent with actual casting using, e.g., the .astype <ndarray.astype>
method.
ndarray.flags.writeable
can be switched to true slightly more often
In rare cases, it was not possible to switch an array from not writeable
to writeable, although a base array is writeable. This can happen if an
intermediate ndarray.base
object is writeable. Previously, only the deepest
base object was considered for this decision. However, in rare cases this
object does not have the necessary information. In that case switching to
writeable was never allowed. This has now been fixed.
C API changes
dimension or stride input arguments are now passed by npy_intp const*
Previously these function arguments were declared as the more strict
npy_intp*
, which prevented the caller passing constant data.
This change is backwards compatible, but now allows code like::
npy_intp const fixed_dims[] = {1, 2, 3};
// no longer complains that the constqualifier is discarded
npy_intp size = PyArray_MultiplyList(fixed_dims, 3);
New Features
.. currentmodule:: numpy.random
New extensible numpy.random
module with selectable random number generators
A new extensible numpy.random
module along with four selectable random number
generators and improved seeding designed for use in parallel processes has been
added. The currently available :ref:Bit Generators <bit_generator>
are
~mt19937.MT19937
, ~pcg64.PCG64
, ~philox.Philox
, and ~sfc64.SFC64
.
PCG64
is the new default while MT19937
is retained for backwards
compatibility. Note that the legacy random module is unchanged and is now
frozen, your current results will not change. More information is available in
the :ref:API change description <newordifferent>
and in the toplevel view <numpy.random>
documentation.
.. currentmodule:: numpy
libFLAME
Support for building NumPy with the libFLAME linear algebra package as the LAPACK,
implementation, see
libFLAME <https://www.cs.utexas.edu/~flame/web/libFLAME.html>
_ for details.
Userdefined BLAS detection order
distutils
now uses an environment variable, commaseparated and case
insensitive, to determine the detection order for BLAS libraries.
By default NPY_BLAS_ORDER=mkl,blis,openblas,atlas,accelerate,blas
.
However, to force the use of OpenBLAS simply do::
NPY_BLAS_ORDER=openblas python setup.py build
which forces the use of OpenBLAS.
This may be helpful for users which have a MKL installation but wishes to try
out different implementations.
Userdefined LAPACK detection order
numpy.distutils
now uses an environment variable, commaseparated and case
insensitive, to determine the detection order for LAPACK libraries.
By default NPY_LAPACK_ORDER=mkl,openblas,flame,atlas,accelerate,lapack
.
However, to force the use of OpenBLAS simply do::
NPY_LAPACK_ORDER=openblas python setup.py build
which forces the use of OpenBLAS.
This may be helpful for users which have a MKL installation but wishes to try
out different implementations.
ufunc.reduce
and related functions now accept a where
mask
ufunc.reduce
, sum
, prod
, min
, max
all
now accept a where
keyword argument, which can be used to tell which
elements to include in the reduction. For reductions that do not have an
identity, it is necessary to also pass in an initial value (e.g.,
initial=np.inf
for min
). For instance, the equivalent of
nansum
would be np.sum(a, where=~np.isnan(a))
.
Timsort and radix sort have replaced mergesort for stable sorting
Both radix sort and timsort have been implemented and are now used in place of
mergesort. Due to the need to maintain backward compatibility, the sorting
kind
options "stable"
and "mergesort"
have been made aliases of
each other with the actual sort implementation depending on the array type.
Radix sort is used for small integer types of 16 bits or less and timsort for
the remaining types. Timsort features improved performace on data containing
already or nearly sorted data and performs like mergesort on random data and
requires :math:O(n/2)
working space. Details of the timsort algorithm can be
found at CPython listsort.txt <https://github.com/python/cpython/blob/3.7/Objects/listsort.txt>
_.
packbits
and unpackbits
accept an order
keyword
The order
keyword defaults to big
, and will order the bits
accordingly. For 'order=big'
3 will become [0, 0, 0, 0, 0, 0, 1, 1]
,
and [1, 1, 0, 0, 0, 0, 0, 0]
for order=little
unpackbits
now accepts a count
parameter
count
allows subsetting the number of bits that will be unpacked upfront,
rather than reshaping and subsetting later, making the packbits
operation
invertible, and the unpacking less wasteful. Counts larger than the number of
available bits add zero padding. Negative counts trim bits off the end instead
of counting from the beginning. None counts implement the existing behavior of
unpacking everything.
linalg.svd
and linalg.pinv
can be faster on hermitian inputs
These functions now accept a hermitian
argument, matching the one added
to linalg.matrix_rank
in 1.14.0.
divmod operation is now supported for two timedelta64
operands
The divmod operator now handles two timedelta64
operands, with
type signature mm>qm
.
fromfile
now takes an offset
argument
This function now takes an offset
keyword argument for binary files,
which specifics the offset (in bytes) from the file's current position.
Defaults to 0
.
New mode "empty" for pad
This mode pads an array to a desired shape without initializing the new
entries.
empty_like
and related functions now accept a shape
argument
empty_like
, full_like
, ones_like
and zeros_like
now accept a shape
keyword argument, which can be used to create a new array
as the prototype, overriding its shape as well. This is particularly useful
when combined with the __array_function__
protocol, allowing the creation
of new arbitraryshape arrays from NumPylike libraries when such an array
is used as the prototype.
Floating point scalars implement as_integer_ratio
to match the builtin float
This returns a (numerator, denominator) pair, which can be used to construct a
fractions.Fraction
.
Structured dtype
objects can be indexed with multiple fields names
arr.dtype[['a', 'b']]
now returns a dtype that is equivalent to
arr[['a', 'b']].dtype
, for consistency with
arr.dtype['a'] == arr['a'].dtype
.
Like the dtype of structured arrays indexed with a list of fields, this dtype
has the same itemsize
as the original, but only keeps a subset of the fields.
This means that arr[['a', 'b']]
and arr.view(arr.dtype[['a', 'b']])
are
equivalent.
.npy
files support unicode field names
A new format version of 3.0 has been introduced, which enables structured types
with nonlatin1 field names. This is used automatically when needed.
Improvements
Array comparison assertions include maximum differences
Error messages from array comparison tests such as
testing.assert_allclose
now include "max absolute difference" and
"max relative difference," in addition to the previous "mismatch" percentage.
This information makes it easier to update absolute and relative error
tolerances.
Replacement of the fftpack based fft
module by the pocketfft library
Both implementations have the same ancestor (Fortran77 FFTPACK by Paul N.
Swarztrauber), but pocketfft contains additional modifications which improve
both accuracy and performance in some circumstances. For FFT lengths containing
large prime factors, pocketfft uses Bluestein's algorithm, which maintains
:math:O(N log N)
run time complexity instead of deteriorating towards
:math:O(N*N)
for prime lengths. Also, accuracy for real valued FFTs with near
prime lengths has improved and is on par with complex valued FFTs.
Further improvements to ctypes
support in numpy.ctypeslib
A new numpy.ctypeslib.as_ctypes_type
function has been added, which can be
used to converts a dtype
into a bestguess ctypes
type. Thanks to this
new function, numpy.ctypeslib.as_ctypes
now supports a much wider range of
array types, including structures, booleans, and integers of nonnative
endianness.
numpy.errstate
is now also a function decorator
Currently, if you have a function like::
def foo():
pass
and you want to wrap the whole thing in errstate
, you have to rewrite it
like so::
def foo():
with np.errstate(...):
pass
but with this change, you can do::
@np.errstate(...)
def foo():
pass
thereby saving a level of indentation
numpy.exp
and numpy.log
speed up for float32 implementation
float32 implementation of exp
and log
now benefit from AVX2/AVX512
instruction set which are detected during runtime. exp
has a max ulp
error of 2.52 and log
has a max ulp error or 3.83.
Improve performance of numpy.pad
The performance of the function has been improved for most cases by filling in
a preallocated array with the desired padded shape instead of using
concatenation.
numpy.interp
handles infinities more robustly
In some cases where interp
would previously return nan
, it now
returns an appropriate infinity.
Pathlib support for fromfile
, tofile
and ndarray.dump
fromfile
, ndarray.ndarray.tofile
and ndarray.dump
now support
the pathlib.Path
type for the file
/fid
parameter.
Specialized isnan
, isinf
, and isfinite
ufuncs for bool and int types
The boolean and integer types are incapable of storing nan
and inf
values,
which allows us to provide specialized ufuncs that are up to 250x faster than
the previous approach.
isfinite
supports datetime64
and timedelta64
types
Previously, isfinite
used to raise a TypeError
on being used on these
two types.
New keywords added to nan_to_num
nan_to_num
now accepts keywords nan
, posinf
and neginf
allowing the user to define the value to replace the nan
, positive and
negative np.inf
values respectively.
MemoryErrors caused by allocated overly large arrays are more descriptive
Often the cause of a MemoryError is incorrect broadcasting, which results in a
very large and incorrect shape. The message of the error now includes this
shape to help diagnose the cause of failure.
floor
, ceil
, and trunc
now respect builtin magic methods
These ufuncs now call the __floor__
, __ceil__
, and __trunc__
methods when called on object arrays, making them compatible with
decimal.Decimal
and fractions.Fraction
objects.
quantile
now works on fraction.Fraction
and decimal.Decimal
objects
In general, this handles object arrays more gracefully, and avoids floating
point operations if exact arithmetic types are used.
Support of object arrays in matmul
It is now possible to use matmul
(or the @
operator) with object arrays.
For instance, it is now possible to do::
from fractions import Fraction
a = np.array([[Fraction(1, 2), Fraction(1, 3)], [Fraction(1, 3), Fraction(1, 2)]])
b = a @ a
Changes
median
and percentile
family of functions no longer warn about nan
numpy.median
, numpy.percentile
, and numpy.quantile
used to emit a
RuntimeWarning
when encountering an nan
. Since they return the
nan
value, the warning is redundant and has been removed.
timedelta64 % 0
behavior adjusted to return NaT
The modulus operation with two np.timedelta64
operands now returns
NaT
in the case of division by zero, rather than returning zero
NumPy functions now always support overrides with __array_function__
NumPy now always checks the __array_function__
method to implement overrides
of NumPy functions on nonNumPy arrays, as described in NEP 18
_. The feature
was available for testing with NumPy 1.16 if appropriate environment variables
are set, but is now always enabled.
.. _NEP 18
: http://www.numpy.org/neps/nep0018arrayfunctionprotocol.html
lib.recfunctions.structured_to_unstructured
does not squeeze singlefield views
Previously structured_to_unstructured(arr[['a']])
would produce a squeezed
result inconsistent with structured_to_unstructured(arr[['a', b']])
. This
was accidental. The old behavior can be retained with
structured_to_unstructured(arr[['a']]).squeeze(axis=1)
or far more simply,
arr['a']
.
clip
now uses a ufunc under the hood
This means that registering clip functions for custom dtypes in C via
descr>f>fastclip
is deprecated  they should use the ufunc registration
mechanism instead, attaching to the np.core.umath.clip
ufunc.
It also means that clip
accepts where
and casting
arguments,
and can be override with __array_ufunc__
.
A consequence of this change is that some behaviors of the old clip
have
been deprecated:
 Passing
nan
to mean "do not clip" as one or both bounds. This didn't work
in all cases anyway, and can be better handled by passing infinities of the
appropriate sign.  Using "unsafe" casting by default when an
out
argument is passed. Using
casting="unsafe"
explicitly will silence this warning.
Additionally, there are some corner cases with behavior changes:
 Padding
max < min
has changed to be more consistent across dtypes, but
should not be relied upon.  Scalar
min
andmax
take part in promotion rules like they do in all
other ufuncs.
__array_interface__
offset now works as documented
The interface may use an offset
value that was mistakenly ignored.
Pickle protocol in savez
set to 3 for force zip64
flag
savez
was not using the force_zip64
flag, which limited the size of
the archive to 2GB. But using the flag requires us to use pickle protocol 3 to
write object
arrays. The protocol used was bumped to 3, meaning the archive
will be unreadable by Python2.
Structured arrays indexed with nonexistent fields raise KeyError
not ValueError
arr['bad_field']
on a structured type raises KeyError
, for consistency
with dict['bad_field']
.
Checksums
MD5
613b7ffe7290d900c7b0c056e176b4d0 numpy1.17.0rc2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d3c95a816ee885b30acda83c0a6457e5 numpy1.17.0rc2cp35cp35mmanylinux1_i686.whl
6ac9206b01562e9aadb8603931b63224 numpy1.17.0rc2cp35cp35mmanylinux1_x86_64.whl
6afd04a55d7e00a8ed2e1248669f8cd9 numpy1.17.0rc2cp35cp35mwin32.whl
519e154eab6bb7b1a01a93903c620ab4 numpy1.17.0rc2cp35cp35mwin_amd64.whl
736b9191f39206efc120e38e6a10f6d1 numpy1.17.0rc2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
dbb2fbd75a414231094bd867b7fbce05 numpy1.17.0rc2cp36cp36mmanylinux1_i686.whl
424803fe4aaa14de85e15c1fe58dc2ae numpy1.17.0rc2cp36cp36mmanylinux1_x86_64.whl
6c80d6269b685d986d9a5126d230384c numpy1.17.0rc2cp36cp36mwin32.whl
06b6774497e40d0e0e640facd6ff079b numpy1.17.0rc2cp36cp36mwin_amd64.whl
d2d450902993a807616cd1bdfb0d30c6 numpy1.17.0rc2cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d10e80597505b0940329bcb72a9cc530 numpy1.17.0rc2cp37cp37mmanylinux1_i686.whl
6a833a3e10fd4746d690650e549205ea numpy1.17.0rc2cp37cp37mmanylinux1_x86_64.whl
77d6f0cbd035c476d7032c4f032d1195 numpy1.17.0rc2cp37cp37mwin32.whl
ab29ac43971aae7120b563ba079e7469 numpy1.17.0rc2cp37cp37mwin_amd64.whl
4ded0046dedc142f3b9d1e8b89d2d11b numpy1.17.0rc2.tar.gz
8d0075fdf1de498fe27a0257c07029ea numpy1.17.0rc2.zip
SHA256
724efe307f5b6df931559fcd3a0ba0e655b1955354361dec039dc5506829a1af numpy1.17.0rc2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
45bc7b87ddbc2864ab528edf547201be142077caeb1916bca9aac6e5846dcf0e numpy1.17.0rc2cp35cp35mmanylinux1_i686.whl
2716333552115eeca9d774556644b2df83073d85d9b30700cbe24b7e2f58c6f3 numpy1.17.0rc2cp35cp35mmanylinux1_x86_64.whl
58f890a52716bbbb025d8f3b77f91102de7a068d214a7dea97562d8d86a1b12a numpy1.17.0rc2cp35cp35mwin32.whl
0ba8479eab6924bc9d17832a0142e54cb69ea323b544e681c051e5f85a77de84 numpy1.17.0rc2cp35cp35mwin_amd64.whl
0f5b37e96989a231a9a63e4aed734d268d1f244b237a44b8703b5919c2c893a2 numpy1.17.0rc2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
5003389ca06659156c98215502696f7f1e85a9e1355b4121fd6fa5e098b0e062 numpy1.17.0rc2cp36cp36mmanylinux1_i686.whl
8e076ac6ad2b602ffa6c7e82801c280df9680f1e11c720b550172953ebb80abb numpy1.17.0rc2cp36cp36mmanylinux1_x86_64.whl
92009e95da7d3337fb99621a09089b7770551273a4749f233843d2d6bac54d2a numpy1.17.0rc2cp36cp36mwin32.whl
8d5a1b0b31a506e61525cf801782ba4f565613278c65edfa849eb2abb7f963cc numpy1.17.0rc2cp36cp36mwin_amd64.whl
4c88a3e02a00f05a27bf9b033733c274fb3cb1ffd9eeec4490a650c10ba889ca numpy1.17.0rc2cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
baa9da76c108a27092f2747615af1a837c117c16f8704b25b993d3ef9a6b910c numpy1.17.0rc2cp37cp37mmanylinux1_i686.whl
e85371de8d4ba14ba077b1b856dd7d911605de0c977e17aaae36d597499699c9 numpy1.17.0rc2cp37cp37mmanylinux1_x86_64.whl
d58de04dd219b92c6fb8cae34cc49aa92296c536b2d271bd09d4f704178224fd numpy1.17.0rc2cp37cp37mwin32.whl
f13346f932c0ea879df223264a438c75745632c2e0e4144f83824b7692ffe605 numpy1.17.0rc2cp37cp37mwin_amd64.whl
b5e0482fc55f8bbf8eba6f9c23084cd781d307851c8e5b3336fb6a5955a08d9f numpy1.17.0rc2.tar.gz
a4153fe85cf92a796022b81b138000160dea840cad13b7d1db67cfec594ece23 numpy1.17.0rc2.zip
Assets
6
==========================
NumPy 1.17.0 Release Notes
This NumPy release contains a number of new features that should substantially
improve its performance and usefulness, see Highlights below for a summary. The
Python versions supported are 3.53.7, note that Python 2.7 has been dropped.
Python 3.8b1 should work with the released source packages, but there are no
future guarantees.
Downstream developers should use Cython >= 0.29.10 for Python 3.8 support and
OpenBLAS >= 3.7 (not currently out) to avoid problems on the Skylake
architecture. The NumPy wheels on PyPI are built from the OpenBLAS development
branch in order to avoid those problems.
Highlights

A new extensible random module along with four selectable random number
generators and improved seeding designed for use in parallel processes has
been added. The currently available bit generators are MT19937, PCG64,
Philox, and SFC64. See below under New Features. 
NumPy's FFT implementation was changed from fftpack to pocketfft, resulting
in faster, more accurate transforms and better handling of datasets of
prime length. See below under Improvements. 
New radix sort and timsort sorting methods. It is currently not possible to
choose which will be used, but they are hardwired to the datatype and used
when eitherstable
ormergesort
is passed as the method. See below
under Improvements. 
Overriding numpy functions is now possible by default,
see__array_function__
below.
New functions
numpy.errstate
is now also a function decorator
Deprecations
np.polynomial
functions warn when passed float
in place of int
Previously functions in this module would accept float
values provided they
were integral (1.0
, 2.0
, etc). For consistency with the rest of numpy,
doing so is now deprecated, and in future will raise a TypeError
.
Similarly, passing a float like 0.5
in place of an integer will now raise a
TypeError
instead of the previous ValueError
.
Deprecate numpy.distutils.exec_command
and numpy.distutils.temp_file_name
The internal use of these functions has been refactored and there are better
alternatives. Relace exec_command
with subprocess.Popen
and
temp_file_name
with tempfile.mkstemp
.
Writeable flag of CAPI wrapped arrays
When an array is created from the CAPI to wrap a pointer to data, the only
indication we have of the readwrite nature of the data is the writeable
flag set during creation. It is dangerous to force the flag to writeable.
In the future it will not be possible to switch the writeable flag to True
from python. This deprecation should not affect many users since arrays created in such
a manner are very rare in practice and only available through the NumPy CAPI.
numpy.nonzero
should no longer be called on 0d arrays
The behavior of nonzero on 0d arrays was surprising, making uses of it almost
always incorrect. If the old behavior was intended, it can be preserved without
a warning by using nonzero(atleast_1d(arr))
instead of nonzero(arr)
.
In a future release, it is most likely this will raise a ValueError
.
Writing to the result of numpy.broadcast_arrays
will warn
Commonly numpy.broadcast_arrays
returns a writeable array with internal
overlap, making it unsafe to write to. A future version will set the
writeable
flag to False
, and require users to manually set it to
True
if they are sure that is what they want to do. Now writing to it will
emit a deprecation warning with instructions to set the writeable
flag
True
. Note that if one were to inspect the flag before setting it, one
would find it would already be True
. Explicitly setting it, though, as one
will need to do in future versions, clears an internal flag that is used to
produce the deprecation warning. To help alleviate confusion, an additional
FutureWarning
will be emitted when accessing the writeable
flag state to
clarify the contradiction.
Future Changes
Shape1 fields in dtypes won't be collapsed to scalars in a future version
Currently, a field specified as [(name, dtype, 1)]
or "1type"
is
interpreted as a scalar field (i.e., the same as [(name, dtype)]
or
[(name, dtype, ()]
). This now raises a FutureWarning; in a future version,
it will be interpreted as a shape(1,) field, i.e. the same as
[(name,dtype, (1,))]
or "(1,)type"
(consistent with
[(name, dtype, n)] / "ntype"
for n > 1
, which is already equivalent to
[(name, dtype,(n,)] / "(n,)type"
).
Compatibility notes
float16 subnormal rounding
Casting from a different floating point precision to float16 used incorrect
rounding in some edge cases. This means in rare cases, subnormal results will
now be rounded up instead of down, changing the last bit (ULP) of the result.
Signed zero when using divmod
Starting in version 1.12.0, numpy incorrectly returned a negatively signed zero
when using the divmod
and floor_divide
functions when the result was
zero. For example:
>>> np.zeros(10)//1
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
With this release, the result is correctly returned as a positively signed
zero:
>>> np.zeros(10)//1
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
MaskedArray.mask
now returns a view of the mask, not the mask itself
Returning the mask itself was unsafe, as it could be reshaped in place which
would violate expectations of the masked array code. It's behavior is now
consistent with the .data
attribute, which also returns a view.
The underlying mask can still be accessed with ._mask
if it is needed.
Tests that contain assert x.mask is not y.mask
or similar will need to be
updated.
Do not lookup __buffer__
attribute in numpy.frombuffer
Looking up __buffer__
attribute in numpy.frombuffer
was undocumented and
nonfunctional. This code was removed. If needed, use
frombuffer(memoryview(obj), ...)
instead.
out
is buffered for memory overlaps in np.take
, np.choose
, np.put
If the out argument to these functions is provided and has memory overlap with
the other arguments, it is now buffered to avoid orderdependent behavior.
Unpickling while loading requires explicit optin
The functions np.load
, and np.lib.format.read_array
take an
allow_pickle
keyword which now defaults to False
in response to
CVE20196446 <https://nvd.nist.gov/vuln/detail/CVE20196446>
_.
Potential changes to the random stream in old random module
Due to bugs in the application of log to random floating point numbers,
the stream may change when sampling from np.random.beta
, np.random.binomial
,
np.random.laplace
, np.random.logistic
, np.random.logseries
or
np.random.multinomial
if a 0 is generated in the underlying MT19937 random stream.
There is a 1 in :math:10^{53}
chance of this occurring, and so the probability that
the stream changes for any given seed is extremely small. If a 0 is encountered in the
underlying generator, then the incorrect value produced (either np.inf
or np.nan
) is now dropped.
i0
now always returns a result with the same shape as the input
Previously, the output was squeezed, such that, e.g., input with just a single
element would lead to an array scalar being returned, and inputs with shapes
such as (10, 1)
would yield results that would not broadcast against the
input.
Note that we generally recommend the SciPy implementation over the numpy one:
it is a proper ufunc written in C, and more than an order of magnitude faster.
np.can_cast
no longer assumes all unsafe casting is allowed
Previously, can_cast
returned True
for almost all inputs for
casting='unsafe'
, even for cases where casting was not possible, such as
from a structured dtype to a regular one. This has been fixed, making it
more consistent with actual casting using, e.g., the .astype
method.
arr.writeable
can be switched to true slightly more often
In rare cases, it was not possible to switch an array from not writeable
to writeable, although a base array is writeable. This can happen if an
intermediate arr.base
object is writeable. Previously, only the deepest
base object was considered for this decision. However, in rare cases this
object does not have the necessary information. In that case switching to
writeable was never allowed. This has now been fixed.
C API changes
dimension or stride input arguments are now passed by npy_intp const*
Previously these function arguments were declared as the more strict
npy_intp*
, which prevented the caller passing constant data.
This change is backwards compatible, but now allows code like::
npy_intp const fixed_dims[] = {1, 2, 3};
// no longer complains that the constqualifier is discarded
npy_intp size = PyArray_MultiplyList(fixed_dims, 3);
New Features
New extensible random module with selectable random number generators
A new extensible random module along with four selectable random number
generators and improved seeding designed for use in parallel processes has been
added. The currently available bit generators are MT19937, PCG64, Philox, and
SFC64. PCG64 is the new default while MT19937 is retained for backwards
compatibility. Note that the legacy random module is unchanged and is now
frozen, your current results will not change. Extensive documentation for the
new module is available online at
NumPy devdocs.
libFLAME
Support for building NumPy with the libFLAME linear algebra package as the LAPACK,
implementation, see
libFLAME for details.
Userdefined BLAS detection order
numpy.distutils
now uses an environment variable, commaseparated and case
insensitive, to determine the detection order for BLAS libraries.
By default NPY_BLAS_ORDER=mkl,blis,openblas,atlas,accelerate,blas
.
However, to force the use of OpenBLAS simply do::
NPY_BLAS_ORDER=openblas python setup.py build
which forces the use of OpenBLAS.
This may be helpful for users which have a MKL installation but wishes to try
out different implementations.
Userdefined LAPACK detection order
numpy.distutils
now uses an environment variable, commaseparated and case
insensitive, to determine the detection order for LAPACK libraries.
By default NPY_BLAS_ORDER=mkl,openblas,flame,atlas,accelerate,lapack
.
However, to force the use of OpenBLAS simply do::
NPY_LAPACK_ORDER=openblas python setup.py build
which forces the use of OpenBLAS.
This may be helpful for users which have a MKL installation but wishes to try
out different implementations.
np.ufunc.reduce
and related functions now accept a where
mask
np.ufunc.reduce
, np.sum
, np.prod
, np.min
, np.max
all
now accept a where
keyword argument, which can be used to tell which
elements to include in the reduction. For reductions that do not have an
identity, it is necessary to also pass in an initial value (e.g.,
initial=np.inf
for np.min
). For instance, the equivalent of
nansum
would be, np.sum(a, where=~np.isnan(a))
.
Timsort and radix sort have replaced mergesort for stable sorting
Both radix sort and timsort have been implemented and are now used in place of
mergesort. Due to the need to maintain backward compatibility, the sorting
kind
options "stable"
and "mergesort"
have been made aliases of
each other with the actual sort implementation depending on the array type.
Radix sort is used for small integer types of 16 bits or less and timsort for
the remaining types. Timsort features improved performace on data containing
already or nearly sorted data and performs like mergesort on random data and
requires O(n/2) working space. Details of the timsort algorithm can be found
at CPython listsort.txt.
np.unpackbits
now accepts a count
parameter
count
allows subsetting the number of bits that will be unpacked upfront,
rather than reshaping and subsetting later, making the packbits
operation
invertible, and the unpacking less wasteful. Counts larger than the number of
available bits add zero padding. Negative counts trim bits off the end instead
of counting from the beginning. None counts implement the existing behavior of
unpacking everything.
np.linalg.svd
and np.linalg.pinv
can be faster on hermitian inputs
These functions now accept a hermitian
argument, matching the one added
to np.linalg.matrix_rank
in 1.14.0.
divmod operation is now supported for two timedelta64
operands
The divmod operator now handles two np.timedelta64
operands, with
type signature mm>qm.
np.fromfile
now takes an offset
argument
This function now takes an offset
keyword argument for binary files,
which specifics the offset (in bytes) from the file's current position.
Defaults to 0.
New mode "empty" for np.pad
This mode pads an array to a desired shape without initializing the new
entries.
np.empty_like
and related functions now accept a shape
argument
np.empty_like
, np.full_like
, np.ones_like
and np.zeros_like
now
accept a shape
keyword argument, which can be used to create a new array
as the prototype, overriding its shape as well. This is particularly useful
when combined with the __array_function__
protocol, allowing the creation
of new arbitraryshape arrays from NumPylike libraries when such an array
is used as the prototype.
Floating point scalars implement as_integer_ratio
to match the builtin float
This returns a (numerator, denominator) pair, which can be used to construct a
fractions.Fraction
.
Structured dtype
objects can be indexed with multiple fields names
arr.dtype[['a', 'b']]
now returns a dtype that is equivalent to
arr[['a', 'b']].dtype
, for consistency with
arr.dtype['a'] == arr['a'].dtype
.
Like the dtype of structured arrays indexed with a list of fields, this dtype
has the same itemsize
as the original, but only keeps a subset of the fields.
This means that arr[['a', 'b']]
and arr.view(arr.dtype[['a', 'b']])
are
equivalent.
.npy
files support unicode field names
A new format version of 3.0 has been introduced, which enables structured types
with nonlatin1 field names. This is used automatically when needed.
numpy.packbits
and numpy.unpackbits
accept an order
keyword
The order
keyword defaults to big
, and will order the bits
accordingly. For 'big'
3 will become [0, 0, 0, 0, 0, 0, 1, 1]
, and
[1, 1, 0, 0, 0, 0, 0, 0]
for little
Improvements
Array comparison assertions include maximum differences
Error messages from array comparison tests such as
np.testing.assert_allclose
now include "max absolute difference" and
"max relative difference," in addition to the previous "mismatch" percentage.
This information makes it easier to update absolute and relative error
tolerances.
Replacement of the fftpack based FFT module by the pocketfft library
Both implementations have the same ancestor (Fortran77 FFTPACK by Paul N.
Swarztrauber), but pocketfft contains additional modifications which improve
both accuracy and performance in some circumstances. For FFT lengths containing
large prime factors, pocketfft uses Bluestein's algorithm, which maintains
O(N log N)
run time complexity instead of deteriorating towards O(N*N)
for prime lengths. Also, accuracy for real valued FFTs with near prime lengths
has improved and is on par with complex valued FFTs.
Further improvements to ctypes
support in numpy.ctypeslib
A new numpy.ctypeslib.as_ctypes_type
function has been added, which can be
used to converts a dtype
into a bestguess ctypes
type. Thanks to this
new function, numpy.ctypeslib.as_ctypes
now supports a much wider range of
array types, including structures, booleans, and integers of nonnative
endianness.
numpy.errstate
is now also a function decorator
Currently, if you have a function like::
def foo():
pass
and you want to wrap the whole thing in errstate
, you have to rewrite it
like so::
def foo():
with np.errstate(...):
pass
but with this change, you can do::
@np.errstate(...)
def foo():
pass
thereby saving a level of indentation
numpy.exp
and numpy.log
speed up for float32 implementation
float32 implementation of numpy.exp and numpy.log now benefit from AVX2/AVX512
instruction set which are detected during runtime. numpy.exp has a max ulp
error of 2.52 and numpy.log has a max ulp error or 3.83.
Improve performance of numpy.pad
The performance of the function has been improved for most cases by filling in
a preallocated array with the desired padded shape instead of using
concatenation.
numpy.interp
handles infinities more robustly
In some cases where np.interp
would previously return np.nan
, it now
returns an appropriate infinity.
Pathlib support for np.fromfile
, ndarray.tofile
and ndarray.dump
np.fromfile
, np.ndarray.tofile
and np.ndarray.dump
now support
the pathlib.Path
type for the file
/fid
parameter.
Specialized np.isnan
, np.isinf
, and np.isfinite
ufuncs for bool and int types
The boolean and integer types are incapable of storing np.nan
and
np.inf
values, which allows us to provide specialized ufuncs that are up to
250x faster than the current approach.
np.isfinite
supports datetime64
and timedelta64
types
Previously, np.isfinite
used to raise a TypeError
on being used on these
two types.
New keywords added to np.nan_to_num
np.nan_to_num
now accepts keywords nan
, posinf
and neginf
allowing the user to define the value to replace the nan
, positive and
negative np.inf
values respectively.
MemoryErrors caused by allocated overly large arrays are more descriptive
Often the cause of a MemoryError is incorrect broadcasting, which results in a
very large and incorrect shape. The message of the error now includes this
shape to help diagnose the cause of failure.
floor
, ceil
, and trunc
now respect builtin magic methods
These ufuncs now call the __floor__
, __ceil__
, and __trunc__
methods when called on object arrays, making them compatible with
decimal.Decimal
and fractions.Fraction
objects.
quantile
now works on fraction.Fraction
and decimal.Decimal
objects
In general, this handles object arrays more gracefully, and avoids floating
point operations if exact arithmetic types are used.
Support of object arrays in np.matmul
It is now possible to use np.matmul
(or the @
operator) with object arrays.
For instance, it is now possible to do::
from fractions import Fraction
a = np.array([[Fraction(1, 2), Fraction(1, 3)], [Fraction(1, 3), Fraction(1, 2)]])
b = a @ a
Changes
median
and percentile
family of functions no longer warn about nan
numpy.median
, numpy.percentile
, and numpy.quantile
used to emit a
RuntimeWarning
when encountering an numpy.nan
. Since they return the
nan
value, the warning is redundant and has been removed.
timedelta64 % 0
behavior adjusted to return NaT
The modulus operation with two np.timedelta64
operands now returns
NaT
in the case of division by zero, rather than returning zero
NumPy functions now always support overrides with __array_function__
NumPy now always checks the __array_function__
method to implement overrides
of NumPy functions on nonNumPy arrays, as described in NEP 18
_. The feature
was available for testing with NumPy 1.16 if appropriate environment variables
are set, but is now always enabled.
.. _NEP 18
: http://www.numpy.org/neps/nep0018arrayfunctionprotocol.html
numpy.lib.recfunctions.structured_to_unstructured
does not squeeze singlefield views
Previously structured_to_unstructured(arr[['a']])
would produce a squeezed
result inconsistent with structured_to_unstructured(arr[['a', b']])
. This
was accidental. The old behavior can be retained with
structured_to_unstructured(arr[['a']]).squeeze(axis=1)
or far more simply,
arr['a']
.
clip
now uses a ufunc under the hood
This means that registering clip functions for custom dtypes in C via
descr>f>fastclip
is deprecated  they should use the ufunc registration
mechanism instead, attaching to the np.core.umath.clip
ufunc.
It also means that clip
accepts where
and casting
arguments,
and can be override with __array_ufunc__
.
A consequence of this change is that some behaviors of the old clip
have
been deprecated:
 Passing
nan
to mean "do not clip" as one or both bounds. This didn't work
in all cases anyway, and can be better handled by passing infinities of the
appropriate sign.  Using "unsafe" casting by default when an
out
argument is passed. Using
casting="unsafe"
explicitly will silence this warning.
Additionally, there are some corner cases with behavior changes:
 Padding
max < min
has changed to be more consistent across dtypes, but
should not be relied upon.  Scalar
min
andmax
take part in promotion rules like they do in all
other ufuncs.
__array_interface__
offset now works as documented
The interface may use an offset
value that was mistakenly ignored.
Pickle protocol in np.savez
set to 3 for force zip64
flag
np.savez
was not using the force_zip64
flag, which limited the size of
the archive to 2GB. But using the flag requires us to use pickle protocol 3 to
write object
arrays. The protocol used was bumped to 3, meaning the archive
will be unreadable by Python2.
Structured arrays indexed with nonexistent fields raise KeyError
not ValueError
arr['bad_field']
on a structured type raises KeyError
, for consistency
with dict['bad_field']
.
.. _NEP 18
: http://www.numpy.org/neps/nep0018arrayfunctionprotocol.html
Checksums
MD5
d97e622de3c0b719231a1e1bcab1ed55 numpy1.17.0rc1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
3d113d94be12997ec19f05b00dbb55ad numpy1.17.0rc1cp35cp35mmanylinux1_i686.whl
0a6599f0492b3550843d091b0202dbe9 numpy1.17.0rc1cp35cp35mmanylinux1_x86_64.whl
aec8543b9be95a4f3c8d038fc977a471 numpy1.17.0rc1cp35cp35mwin32.whl
673ebd7abae0b7e1eb92cc23b0cd40f2 numpy1.17.0rc1cp35cp35mwin_amd64.whl
ae2bdaa0ca4999db507ce3fb1b173fd8 numpy1.17.0rc1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
fedb3f0b411b55882d43c6b54e4e1fe8 numpy1.17.0rc1cp36cp36mmanylinux1_i686.whl
e2c4c37ac91ad7aaab0af167b45c9be3 numpy1.17.0rc1cp36cp36mmanylinux1_x86_64.whl
67b54fa0ade6098f80a5b1570dca8066 numpy1.17.0rc1cp36cp36mwin32.whl
42ae66a117cbf3032a2973aaa49cc751 numpy1.17.0rc1cp36cp36mwin_amd64.whl
40a6fba952a011c1053b1867580ffe1c numpy1.17.0rc1cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
68b0c9781374584fd175366333ed16da numpy1.17.0rc1cp37cp37mmanylinux1_i686.whl
578d62bd252aa229580f74198f5fd305 numpy1.17.0rc1cp37cp37mmanylinux1_x86_64.whl
69d1ce7fbb2f4e74ce31f07e69bfce8c numpy1.17.0rc1cp37cp37mwin32.whl
3058e6f76c7216e948648be2731daa08 numpy1.17.0rc1cp37cp37mwin_amd64.whl
71a5b962f05d70c25dbe29aa76a2677b numpy1.17.0rc1.tar.gz
0d3c728ee377cdc8b7c66488557b3d07 numpy1.17.0rc1.zip
SHA256
1b46bbd810519dd3f75c7654346ef8cbc85164e9fbf263e6ab886a7b5414b4be numpy1.17.0rc1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
487034fb9f0d0a98d200b2b304dd6ca7e14b563749c184b3e9f5fb6f0b61b8e3 numpy1.17.0rc1cp35cp35mmanylinux1_i686.whl
0e574d32e251510ed8ccd1f354f4f77ae380278e294c98e5f87cde51f8775cd0 numpy1.17.0rc1cp35cp35mmanylinux1_x86_64.whl
a11e133d0de38868c3b732f0bb047ce1a2b25f37c49b841acc52ca5522095dca numpy1.17.0rc1cp35cp35mwin32.whl
c8c589628445247aebe030d456d1115de072d7f6ecc3ed5f7463f05b37dd54f6 numpy1.17.0rc1cp35cp35mwin_amd64.whl
2360b5e6ca1929db1d5132933340bdc15c37c75c8cb9f2f1d7ee63ccf8df25e0 numpy1.17.0rc1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
63279153109be338363f593f1d30b61412fc1bca258d0673244a6ae2d70fe743 numpy1.17.0rc1cp36cp36mmanylinux1_i686.whl
ce4f4b9dd33fcf5b0b2fb37cb4b48668f8f2ed579d55d9799216f5a46c3009bd numpy1.17.0rc1cp36cp36mmanylinux1_x86_64.whl
35c8f2d7b5748f87631f65502b547723c85064ef57c9f131333a2c4cf793efaa numpy1.17.0rc1cp36cp36mwin32.whl
7e00fb54174d797fff2b158223805dccc2026bce6daddbb3e5ea2b7d92304d24 numpy1.17.0rc1cp36cp36mwin_amd64.whl
6a8be628e8269c40024bb5178de25c06950eaaea99afd9784a3980f550ff7679 numpy1.17.0rc1cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
01e0f739d2dd40bccb8667f23bc26077d72ee22ac9cb4671111c680e2a067409 numpy1.17.0rc1cp37cp37mmanylinux1_i686.whl
21b1a68dffca1af1936d35d40afbeda30e290ab2d398f6af6cc79bfa23e9957b numpy1.17.0rc1cp37cp37mmanylinux1_x86_64.whl
0e415dc0509f3b44f3cbd0bc994a5862bc41a2301c2db1fe4a01259e0b3d9999 numpy1.17.0rc1cp37cp37mwin32.whl
50fc29e91ffd3052c0f2faae577e6e6792df3017100d7b9683b158c44e0a21cd numpy1.17.0rc1cp37cp37mwin_amd64.whl
79f5d946e06ddb19a8570061b6121087d4309678e52da2144f36840d6c1a1627 numpy1.17.0rc1.tar.gz
f53df05f9ca4ec5d72709ffe349704f1f7d945ed59e815574b5c5687acb282c4 numpy1.17.0rc1.zip
Assets
6
charris released this
==========================
NumPy 1.16.4 Release Notes
The NumPy 1.16.4 release fixes bugs reported against the 1.16.3 release, and
also backports several enhancements from master that seem appropriate for a
release series that is the last to support Python 2.7. The wheels on PyPI are
linked with OpenBLAS v0.3.7dev, which should fix issues on Skylake series
cpus.
Downstream developers building this release should use Cython >= 0.29.2 and,
if using OpenBLAS, OpenBLAS > v0.3.7. The supported Python versions are 2.7 and
3.53.7.
New deprecations
Writeable flag of CAPI wrapped arrays
When an array is created from the CAPI to wrap a pointer to data, the only
indication we have of the readwrite nature of the data is the writeable
flag set during creation. It is dangerous to force the flag to writeable. In
the future it will not be possible to switch the writeable flag to True
from python. This deprecation should not affect many users since arrays
created in such a manner are very rare in practice and only available through
the NumPy CAPI.
Compatibility notes
Potential changes to the random stream
Due to bugs in the application of log to random floating point numbers,
the stream may change when sampling from np.random.beta
, np.random.binomial
,
np.random.laplace
, np.random.logistic
, np.random.logseries
or
np.random.multinomial
if a 0 is generated in the underlying MT19937 random stream.
There is a 1 in :math:10^{53}
chance of this occurring, and so the probability that
the stream changes for any given seed is extremely small. If a 0 is encountered in the
underlying generator, then the incorrect value produced (either np.inf
or np.nan
) is now dropped.
Changes
numpy.lib.recfunctions.structured_to_unstructured
does not squeeze singlefield views
Previously structured_to_unstructured(arr[['a']])
would produce a squeezed
result inconsistent with structured_to_unstructured(arr[['a', b']])
. This
was accidental. The old behavior can be retained with
structured_to_unstructured(arr[['a']]).squeeze(axis=1)
or far more simply,
arr['a']
.
Contributors
A total of 10 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Charles Harris
 Eric Wieser
 Dennis Zollo +
 Hunter Damron +
 Jingbei Li +
 Kevin Sheppard
 Matti Picus
 Nicola Soranzo +
 Sebastian Berg
 Tyler Reddy
Pull requests merged
A total of 16 pull requests were merged for this release.
 #13392: BUG: Some PyPy versions lack PyStructSequence_InitType2.
 #13394: MAINT, DEP: Fix deprecated
assertEquals()
 #13396: BUG: Fix structured_to_unstructured on singlefield types (backport)
 #13549: BLD: Make CI pass again with pytest 4.5
 #13552: TST: Register markers in conftest.py.
 #13559: BUG: Removes ValueError for empty kwargs in arraymultiter_new
 #13560: BUG: Add TypeError to accepted exceptions in crackfortran.
 #13561: BUG: Handle subarrays in descr_to_dtype
 #13562: BUG: Protect generators from log(0.0)
 #13563: BUG: Always return views from structured_to_unstructured when...
 #13564: BUG: Catch stderr when checking compiler version
 #13565: BUG: longdouble(int) does not work
 #13587: BUG: distutils/system_info.py fix missing subprocess import (#13523)
 #13620: BUG,DEP: Fix writeable flag setting for arrays without base
 #13641: MAINT: Prepare for the 1.16.4 release.
 #13644: BUG: special case object arrays when printing rel, abserror
Checksums
MD5
a24c599ae3445d9d085e77ce4d072259 numpy1.16.4cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
efcfb51254d83060a2af0d30aa1d1b81 numpy1.16.4cp27cp27mmanylinux1_i686.whl
b62eca40cbab3e24c4962e22633d92a5 numpy1.16.4cp27cp27mmanylinux1_x86_64.whl
c96618196f6dfc29f4931a2f6fea44ad numpy1.16.4cp27cp27mwin32.whl
6dd36dfd23338844c1ecac8b92efd938 numpy1.16.4cp27cp27mwin_amd64.whl
52c8e342f110b2fba426fca60b1c2774 numpy1.16.4cp27cp27mumanylinux1_i686.whl
038f16384a2af6bd3db61dc773ffbe10 numpy1.16.4cp27cp27mumanylinux1_x86_64.whl
32b18d06069d3d86b8e3193b2f455c15 numpy1.16.4cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d6550e24ff69d4a175d278f39f871d39 numpy1.16.4cp35cp35mmanylinux1_i686.whl
07b33ea867cf2657e23dbf93069eff99 numpy1.16.4cp35cp35mmanylinux1_x86_64.whl
cc84f9555a711a2bc867d3b941992a68 numpy1.16.4cp35cp35mwin32.whl
cf671f2b0e651e701472456107c8e644 numpy1.16.4cp35cp35mwin_amd64.whl
1376e801040a91f8b325e827e6d53f91 numpy1.16.4cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
833f763fb0d69c850fae175c65f7b502 numpy1.16.4cp36cp36mmanylinux1_i686.whl
255ae62cf215e647ee437d432b6511c2 numpy1.16.4cp36cp36mmanylinux1_x86_64.whl
6fcb9a8f601795413ceaf06767caca2d numpy1.16.4cp36cp36mwin32.whl
de4fa9f01692ec94932a289440f18255 numpy1.16.4cp36cp36mwin_amd64.whl
dab4ec8a1c07a7a1a54932c461933992 numpy1.16.4cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c1d3c38c67396809c51f5c98aead5e13 numpy1.16.4cp37cp37mmanylinux1_i686.whl
e98fc6a8d90ff7ed26d0ed7faad3aa8d numpy1.16.4cp37cp37mmanylinux1_x86_64.whl
f84869efe5610e6ad6165237c012ea93 numpy1.16.4cp37cp37mwin32.whl
17b46c338d04cb8b4773fb6b02919f2b numpy1.16.4cp37cp37mwin_amd64.whl
6edf7334d04d8e8849ad058ccd3b3803 numpy1.16.4.tar.gz
74f7d348c55ace4d22d7ad26c65755aa numpy1.16.4.zip
SHA256
b5554368e4ede1856121b0dfa35ce71768102e4aa55e526cb8de7f374ff78722 numpy1.16.4cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
e8baab1bc7c9152715844f1faca6744f2416929de10d7639ed49555a85549f52 numpy1.16.4cp27cp27mmanylinux1_i686.whl
2a04dda79606f3d2f760384c38ccd3d5b9bb79d4c8126b67aff5eb09a253763e numpy1.16.4cp27cp27mmanylinux1_x86_64.whl
94f5bd885f67bbb25c82d80184abbf7ce4f6c3c3a41fbaa4182f034bba803e69 numpy1.16.4cp27cp27mwin32.whl
7dc253b542bfd4b4eb88d9dbae4ca079e7bf2e2afd819ee18891a43db66c60c7 numpy1.16.4cp27cp27mwin_amd64.whl
0778076e764e146d3078b17c24c4d89e0ecd4ac5401beff8e1c87879043a0633 numpy1.16.4cp27cp27mumanylinux1_i686.whl
b0348be89275fd1d4c44ffa39530c41a21062f52299b1e3ee7d1c61f060044b8 numpy1.16.4cp27cp27mumanylinux1_x86_64.whl
52c40f1a4262c896420c6ea1c6fda62cf67070e3947e3307f5562bd783a90336 numpy1.16.4cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
141c7102f20abe6cf0d54c4ced8d565b86df4d3077ba2343b61a6db996cefec7 numpy1.16.4cp35cp35mmanylinux1_i686.whl
6e4f8d9e8aa79321657079b9ac03f3cf3fd067bf31c1cca4f56d49543f4356a5 numpy1.16.4cp35cp35mmanylinux1_x86_64.whl
d79f18f41751725c56eceab2a886f021d70fd70a6188fd386e29a045945ffc10 numpy1.16.4cp35cp35mwin32.whl
14270a1ee8917d11e7753fb54fc7ffd1934f4d529235beec0b275e2ccf00333b numpy1.16.4cp35cp35mwin_amd64.whl
a89e188daa119ffa0d03ce5123dee3f8ffd5115c896c2a9d4f0dbb3d8b95bfa3 numpy1.16.4cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ec31fe12668af687b99acf1567399632a7c47b0e17cfb9ae47c098644ef36797 numpy1.16.4cp36cp36mmanylinux1_i686.whl
27e11c7a8ec9d5838bc59f809bfa86efc8a4fd02e58960fa9c49d998e14332d5 numpy1.16.4cp36cp36mmanylinux1_x86_64.whl
dc2ca26a19ab32dc475dbad9dfe723d3a64c835f4c23f625c2b6566ca32b9f29 numpy1.16.4cp36cp36mwin32.whl
ad3399da9b0ca36e2f24de72f67ab2854a62e623274607e37e0ce5f5d5fa9166 numpy1.16.4cp36cp36mwin_amd64.whl
f58ac38d5ca045a377b3b377c84df8175ab992c970a53332fa8ac2373df44ff7 numpy1.16.4cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
f12b4f7e2d8f9da3141564e6737d79016fe5336cc92de6814eba579744f65b0a numpy1.16.4cp37cp37mmanylinux1_i686.whl
cbddc56b2502d3f87fda4f98d948eb5b11f36ff3902e17cb6cc44727f2200525 numpy1.16.4cp37cp37mmanylinux1_x86_64.whl
3c26010c1b51e1224a3ca6b8df807de6e95128b0908c7e34f190e7775455b0ca numpy1.16.4cp37cp37mwin32.whl
dd9bcd4f294eb0633bb33d1a74febdd2b9018b8b8ed325f861fffcd2c7660bb8 numpy1.16.4cp37cp37mwin_amd64.whl
a3bccb70ad94091a5b9e2469fabd41ac877c140a6828c2022e35560a2ec0346c numpy1.16.4.tar.gz
7242be12a58fec245ee9734e625964b97cf7e3f2f7d016603f9e56660ce479c7 numpy1.16.4.zip
Assets
6
charris released this
==========================
NumPy 1.16.3 Release Notes
The NumPy 1.16.3 release fixes bugs reported against the 1.16.2 release, and
also backports several enhancements from master that seem appropriate for a
release series that is the last to support Python 2.7. The wheels on PyPI are
linked with OpenBLAS v0.3.4+, which should fix the known threading issues
found in previous OpenBLAS versions.
Downstream developers building this release should use Cython >= 0.29.2 and,
if using OpenBLAS, OpenBLAS > v0.3.4.
The most noticeable change in this release is that unpickling object arrays
when loading *.npy
or *.npz
files now requires an explicit optin.
This backwards incompatible change was made in response to
CVE20196446 <https://nvd.nist.gov/vuln/detail/CVE20196446>
_.
Compatibility notes
Unpickling while loading requires explicit optin
The functions np.load
, and np.lib.format.read_array
take an
allow_pickle
keyword which now defaults to False
in response to
CVE20196446 <https://nvd.nist.gov/vuln/detail/CVE20196446>
_.
Improvements
Covariance in random.mvnormal
cast to double
This should make the tolerance used when checking the singular values of the
covariance matrix more meaningful.
Changes
__array_interface__
offset now works as documented
The interface may use an offset
value that was previously mistakenly
ignored.
Checksums
MD5
7039dd60e2066e8882149a8b8bd6cf2f numpy1.16.3cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c03c7365b58deefd03e3c080660d7157 numpy1.16.3cp27cp27mmanylinux1_i686.whl
91900b9172e39c039326c56cf0149e15 numpy1.16.3cp27cp27mmanylinux1_x86_64.whl
b06d87509a2228c5952096cb11c8b007 numpy1.16.3cp27cp27mwin32.whl
88c1e91c6bd3626278b7938f12cafbe2 numpy1.16.3cp27cp27mwin_amd64.whl
98fb024d8d63f056ef7c82e772c4bfa0 numpy1.16.3cp27cp27mumanylinux1_i686.whl
d2b8da12f0855765e9cd3cc49d9885b9 numpy1.16.3cp27cp27mumanylinux1_x86_64.whl
ec4f2fd2180fd68647f38a0d4c331dcf numpy1.16.3cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
7add5c07a1679bfc086d5575be26ccc6 numpy1.16.3cp35cp35mmanylinux1_i686.whl
bd3c27deac470bce5edf6936d08966b8 numpy1.16.3cp35cp35mmanylinux1_x86_64.whl
c6ab529b105181fc846a8245e5e4d048 numpy1.16.3cp35cp35mwin32.whl
1854757b3e127614ae01b0b814762f5c numpy1.16.3cp35cp35mwin_amd64.whl
b23b0727562be62ffd943c7828822da9 numpy1.16.3cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
93a2a4b48f160ffd1bdd30023b842be2 numpy1.16.3cp36cp36mmanylinux1_i686.whl
453f5996ac600c4085656e82005fb0e5 numpy1.16.3cp36cp36mmanylinux1_x86_64.whl
773f9e76235ab5edd9ef1c083e62ea9f numpy1.16.3cp36cp36mwin32.whl
9ba2467b05eb4471817509cabff1b9a6 numpy1.16.3cp36cp36mwin_amd64.whl
00594b150e69d1776164ffa60d7fdc01 numpy1.16.3cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
fe3421cbae83004e7feca4d90043e9df numpy1.16.3cp37cp37mmanylinux1_i686.whl
4e907ac7d841018c0a9130ca45d099ee numpy1.16.3cp37cp37mmanylinux1_x86_64.whl
c7e8e9f9ded13b1356e72cd8506df224 numpy1.16.3cp37cp37mwin32.whl
370ec58a5fdfe9e7ffe90857577806c6 numpy1.16.3cp37cp37mwin_amd64.whl
0886e5b5017f08f2b7a624c0b5931e61 numpy1.16.3.tar.gz
cab84884fba39fbd352550896bf22bfd numpy1.16.3.zip
SHA256
b78a1defedb0e8f6ae1eb55fa6ac74ab42acc4569c3a2eacc2a407ee5d42ebcb numpy1.16.3cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
0e2eed77804b2a6a88741f8fcac02c5499bba3953ec9c71e8b217fad4912c56c numpy1.16.3cp27cp27mmanylinux1_i686.whl
754a6be26d938e6ca91942804eb209307b73f806a1721176278a6038869a1686 numpy1.16.3cp27cp27mmanylinux1_x86_64.whl
315fa1b1dfc16ae0f03f8fd1c55f23fd15368710f641d570236f3d78af55e340 numpy1.16.3cp27cp27mwin32.whl
80d99399c97f646e873dd8ce87c38cfdbb668956bbc39bc1e6cac4b515bba2a0 numpy1.16.3cp27cp27mwin_amd64.whl
a61255a765b3ac73ee4b110b28fccfbf758c985677f526c2b4b39c48cc4b509d numpy1.16.3cp27cp27mumanylinux1_i686.whl
88a72c1e45a0ae24d1f249a529d9f71fe82e6fa6a3fd61414b829396ec585900 numpy1.16.3cp27cp27mumanylinux1_x86_64.whl
54fe3b7ed9e7eb928bbc4318f954d133851865f062fa4bbb02ef8940bc67b5d2 numpy1.16.3cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
abbd6b1c2ef6199f4b7ca9f818eb6b31f17b73a6110aadc4e4298c3f00fab24e numpy1.16.3cp35cp35mmanylinux1_i686.whl
771147e654e8b95eea1293174a94f34e2e77d5729ad44aefb62fbf8a79747a15 numpy1.16.3cp35cp35mmanylinux1_x86_64.whl
48241759b99d60aba63b0e590332c600fc4b46ad597c9b0a53f350b871ef0634 numpy1.16.3cp35cp35mwin32.whl
b16d88da290334e33ea992c56492326ea3b06233a00a1855414360b77ca72f26 numpy1.16.3cp35cp35mwin_amd64.whl
ab4896a8c910b9a04c0142871d8800c76c8a2e5ff44763513e1dd9d9631ce897 numpy1.16.3cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
7fde5c2a3a682a9e101e61d97696687ebdba47637611378b4127fe7e47fdf2bf numpy1.16.3cp36cp36mmanylinux1_i686.whl
4b4f2924b36d857cf302aec369caac61e43500c17eeef0d7baacad1084c0ee84 numpy1.16.3cp36cp36mmanylinux1_x86_64.whl
d160e57731fcdec2beda807ebcabf39823c47e9409485b5a3a1db3a8c6ce763e numpy1.16.3cp36cp36mwin32.whl
1f46532afa7b2903bfb1b79becca2954c0a04389d19e03dc73f06b039048ac40 numpy1.16.3cp36cp36mwin_amd64.whl
1c666f04553ef70fda54adf097dbae7080645435fc273e2397f26bbf1d127bbb numpy1.16.3cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
3d5fcea4f5ed40c3280791d54da3ad2ecf896f4c87c877b113576b8280c59441 numpy1.16.3cp37cp37mmanylinux1_i686.whl
5a8f021c70e6206c317974c93eaaf9bc2b56295b6b1cacccf88846e44a1f33fc numpy1.16.3cp37cp37mmanylinux1_x86_64.whl
cfef82c43b8b29ca436560d51b2251d5117818a8d1fb74a8384a83c096745dad numpy1.16.3cp37cp37mwin32.whl
a4f4460877a16ac73302a9c077ca545498d9fe64e6a81398d8e1a67e4695e3df numpy1.16.3cp37cp37mwin_amd64.whl
adf063a3f87ab89393f5eea0eb903293b112fa0a308e8c594a75ffa585d81d4f numpy1.16.3.tar.gz
78a6f89da87eeb48014ec652a65c4ffde370c036d780a995edaeb121d3625621 numpy1.16.3.zip
Assets
6
charris released this
==========================
NumPy 1.16.2 Release Notes
NumPy 1.16.2 is a quick release fixing several problems encountered on Windows.
The Python versions supported are 2.7 and 3.53.7. The Windows problems
addressed are:
 DLL load problems for NumPy wheels on Windows,
 distutils command line parsing on Windows.
There is also a regression fix correcting signed zeros produced by divmod, see
below for details.
Downstream developers building this release should use Cython >= 0.29.2 and, if
using OpenBLAS, OpenBLAS > v0.3.4.
If you are installing using pip, you may encounter a problem with older
installed versions of NumPy that pip did not delete becoming mixed with the
current version, resulting in an ImportError
. That problem is particularly
common on Debian derived distributions due to a modified pip. The fix is to
make sure all previous NumPy versions installed by pip have been removed. See
#12736 <https://github.com/numpy/numpy/issues/12736>
__ for discussion of the
issue.
Compatibility notes
Signed zero when using divmod
Starting in version 1.12.0, numpy incorrectly returned a negatively signed zero
when using the divmod
and floor_divide
functions when the result was
zero. For example:
>>> np.zeros(10)//1
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
With this release, the result is correctly returned as a positively signed
zero:
>>> np.zeros(10)//1
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
Contributors
A total of 5 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Charles Harris
 Eric Wieser
 Matti Picus
 Tyler Reddy
 Tony LaTorre +
Pull requests merged
A total of 7 pull requests were merged for this release.
 #12909: TST: fix vmImage dispatch in Azure
 #12923: MAINT: remove complicated test of multiarray import failure mode
 #13020: BUG: fix signed zero behavior in npy_divmod
 #13026: MAINT: Add functions to parse shellstrings in the platformnative...
 #13028: BUG: Fix regression in parsing of F90 and F77 environment variables
 #13038: BUG: parse shell escaping in extra_compile_args and extra_link_args
 #13041: BLD: Windows absolute path DLL loading
Checksums
MD5
a166c7e850f9375552f9950ba95f3a8a numpy1.16.2cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
cfc866763a75e7cb247c189e141e4506 numpy1.16.2cp27cp27mmanylinux1_i686.whl
0756e1901d81033143ad55583118598e numpy1.16.2cp27cp27mmanylinux1_x86_64.whl
1242a10df37701abe8c8afc59809e1ac numpy1.16.2cp27cp27mwin32.whl
60da6aed692fc96c97efde2daca52d6f numpy1.16.2cp27cp27mwin_amd64.whl
62b92da3423dd59230c9369a43299506 numpy1.16.2cp27cp27mumanylinux1_i686.whl
5125ec60d3895d89e5d6d71d9e21b349 numpy1.16.2cp27cp27mumanylinux1_x86_64.whl
15bbe3a9ac6024ac631ed420c04fde47 numpy1.16.2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ca025ce06f5bc7b81627bc5bf523d589 numpy1.16.2cp35cp35mmanylinux1_i686.whl
ca9953287417064b44a47a6ec92c797c numpy1.16.2cp35cp35mmanylinux1_x86_64.whl
f8fa8bda14131b2714c42b775dfde349 numpy1.16.2cp35cp35mwin32.whl
ce7abc3bb59c549ffe3b56984a291eaa numpy1.16.2cp35cp35mwin_amd64.whl
4f26f55f35c58b4228cb3f60cb98f32d numpy1.16.2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ac1e770a95ff3f8a47f74e64bd034768 numpy1.16.2cp36cp36mmanylinux1_i686.whl
990a95c5f6bb34ed5588c996890bf9c7 numpy1.16.2cp36cp36mmanylinux1_x86_64.whl
79bbaffa096bbbaf42c029bf85df5ac2 numpy1.16.2cp36cp36mwin32.whl
83ddd33ccf7a434895ade64199424a07 numpy1.16.2cp36cp36mwin_amd64.whl
ee8c8d67fa75a2c4a733fc491590419a numpy1.16.2cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
4fce2fe91abe1e8b09232c5aaafa484a numpy1.16.2cp37cp37mmanylinux1_i686.whl
9cac844e1fc29972e63cb80512379805 numpy1.16.2cp37cp37mmanylinux1_x86_64.whl
38d9fccdc6ae4420c9ee5303f1298974 numpy1.16.2cp37cp37mwin32.whl
a1dcfcbe4993d77357bb2213aacf9e82 numpy1.16.2cp37cp37mwin_amd64.whl
4fc754be7ec3e0f80b042d907e99f4ad numpy1.16.2.tar.gz
ec99ec2763a6be3817675f92b8847d3c numpy1.16.2.zip
SHA256
972ea92f9c1b54cc1c1a3d8508e326c0114aaf0f34996772a30f3f52b73b942f numpy1.16.2cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
1980f8d84548d74921685f68096911585fee393975f53797614b34d4f409b6da numpy1.16.2cp27cp27mmanylinux1_i686.whl
560ceaa24f971ab37dede7ba030fc5d8fa173305d94365f814d9523ffd5d5916 numpy1.16.2cp27cp27mmanylinux1_x86_64.whl
62be044cd58da2a947b7e7b2252a10b42920df9520fc3d39f5c4c70d5460b8ba numpy1.16.2cp27cp27mwin32.whl
adab43bf657488300d3aeeb8030d7f024fcc86e3a9b8848741ea2ea903e56610 numpy1.16.2cp27cp27mwin_amd64.whl
9f1d4865436f794accdabadc57a8395bd3faa755449b4f65b88b7df65ae05f89 numpy1.16.2cp27cp27mumanylinux1_i686.whl
fb3c83554f39f48f3fa3123b9c24aecf681b1c289f9334f8215c1d3c8e2f6e5b numpy1.16.2cp27cp27mumanylinux1_x86_64.whl
6f65e37b5a331df950ef6ff03bd4136b3c0bbcf44d4b8e99135d68a537711b5a numpy1.16.2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d3b3ed87061d2314ff3659bb73896e622252da52558f2380f12c421fbdee3d89 numpy1.16.2cp35cp35mmanylinux1_i686.whl
893f4d75255f25a7b8516feb5766c6b63c54780323b9bd4bc51cdd7efc943c73 numpy1.16.2cp35cp35mmanylinux1_x86_64.whl
3a0bd1edf64f6a911427b608a894111f9fcdb25284f724016f34a84c9a3a6ea9 numpy1.16.2cp35cp35mwin32.whl
2b0b118ff547fecabc247a2668f48f48b3b1f7d63676ebc5be7352a5fd9e85a5 numpy1.16.2cp35cp35mwin_amd64.whl
bd2834d496ba9b1bdda3a6cf3de4dc0d4a0e7be306335940402ec95132ad063d numpy1.16.2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
3f25f6c7b0d000017e5ac55977a3999b0b1a74491eacb3c1aa716f0e01f6dcd1 numpy1.16.2cp36cp36mmanylinux1_i686.whl
23cc40313036cffd5d1873ef3ce2e949bdee0646c5d6f375bf7ee4f368db2511 numpy1.16.2cp36cp36mmanylinux1_x86_64.whl
22752cd809272671b273bb86df0f505f505a12368a3a5fc0aa811c7ece4dfd5c numpy1.16.2cp36cp36mwin32.whl
d20c0360940f30003a23c0adae2fe50a0a04f3e48dc05c298493b51fd6280197 numpy1.16.2cp36cp36mwin_amd64.whl
80a41edf64a3626e729a62df7dd278474fc1726836552b67a8c6396fd7e86760 numpy1.16.2cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
7a78cc4ddb253a55971115f8320a7ce28fd23a065fc33166d601f51760eecfa9 numpy1.16.2cp37cp37mmanylinux1_i686.whl
9f4cd7832b35e736b739be03b55875706c8c3e5fe334a06210f1a61e5c2c8ca5 numpy1.16.2cp37cp37mmanylinux1_x86_64.whl
dc235bf29a406dfda5790d01b998a1c01d7d37f449128c0b1b7d1c89a84fae8b numpy1.16.2cp37cp37mwin32.whl
4061c79ac2230594a7419151028e808239450e676c39e58302ad296232e3c2e8 numpy1.16.2cp37cp37mwin_amd64.whl
8088221e6e27da8d5907729f0bfe798f526836f22cc59ae83a0f867e67416a3e numpy1.16.2.tar.gz
6c692e3879dde0b67a9dc78f9bfb6f61c666b4562fd8619632d7043fb5b691b0 numpy1.16.2.zip
Assets
6
charris released this
Assets
6
==========================
NumPy 1.16.1 Release Notes
The NumPy 1.16.1 release fixes bugs reported against the 1.16.0 release, and
also backports several enhancements from master that seem appropriate for a
release series that is the last to support Python 2.7. The wheels on PyPI are
linked with OpenBLAS v0.3.4+, which should fix the known threading issues
found in previous OpenBLAS versions.
Downstream developers building this release should use Cython >= 0.29.2 and, if
using OpenBLAS, OpenBLAS > v0.3.4.
If you are installing using pip, you may encounter a problem with older
installed versions of NumPy that pip did not delete becoming mixed with the
current version, resulting in an ImportError
. That problem is particularly
common on Debian derived distributions due to a modified pip. The fix is to
make sure all previous NumPy versions installed by pip have been removed. See
#12736 <https://github.com/numpy/numpy/issues/12736>
__ for discussion of the
issue. Note that previously this problem resulted in an AttributeError
.
Contributors
A total of 16 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Antoine Pitrou
 Arcesio Castaneda Medina +
 Charles Harris
 Chris Markiewicz +
 Christoph Gohlke
 Christopher J. Markiewicz +
 Daniel Hrisca +
 EelcoPeacs +
 Eric Wieser
 Kevin Sheppard
 Matti Picus
 OBATA Akio +
 Ralf Gommers
 Sebastian Berg
 Stephan Hoyer
 Tyler Reddy
Enhancements
 #12767: ENH: add mm>q floordiv
 #12768: ENH: port np.core.overrides to C for speed
 #12769: ENH: Add np.ctypeslib.as_ctypes_type(dtype), improve
np.ctypeslib.as_ctypes
 #12773: ENH: add "max difference" messages to np.testing.assert_array_equal...
 #12820: ENH: Add mm>qm divmod
 #12890: ENH: add _dtype_ctype to namespace for freeze analysis
Compatibility notes

The changed error message emited by array comparison testing functions may
affect doctests. See below for detail. 
Casting from double and single denormals to float16 has been corrected. In
some rare cases, this may result in results being rounded up instead of down,
changing the last bit (ULP) of the result.
New Features
divmod operation is now supported for two timedelta64
operands
The divmod operator now handles two np.timedelta64
operands, with
type signature mm>qm
.
Improvements
Further improvements to ctypes
support in np.ctypeslib
A new np.ctypeslib.as_ctypes_type
function has been added, which can be
used to converts a dtype
into a bestguess ctypes
type. Thanks to this
new function, np.ctypeslib.as_ctypes
now supports a much wider range of
array types, including structures, booleans, and integers of nonnative
endianness.
Array comparison assertions include maximum differences
Error messages from array comparison tests such as
np.testing.assert_allclose
now include "max absolute difference" and
"max relative difference," in addition to the previous "mismatch" percentage.
This information makes it easier to update absolute and relative error
tolerances.
Changes
timedelta64 % 0
behavior adjusted to return NaT
The modulus operation with two np.timedelta64
operands now returns
NaT
in the case of division by zero, rather than returning zero
Checksums
MD5
456aae0a43311da1570a53baef7f5620 numpy1.16.1cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
8f39da654cd27a96877955a2fbf3883f numpy1.16.1cp27cp27mmanylinux1_i686.whl
add6fcaf9b5007dca2fc966b918d585e numpy1.16.1cp27cp27mmanylinux1_x86_64.whl
b2193c7af769169229eef8d2371929c2 numpy1.16.1cp27cp27mwin32.whl
3a7eba56bcebc52b223d63ab4b9bf029 numpy1.16.1cp27cp27mwin_amd64.whl
3bc676163ce4d526c8305bc889f0594d numpy1.16.1cp27cp27mumanylinux1_i686.whl
55ccd6d343be1e16e70159714ac74848 numpy1.16.1cp27cp27mumanylinux1_x86_64.whl
15bebbeddc5924243a010680e184b6e8 numpy1.16.1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
86aacbea051b7542a8bd3486d2fa79cd numpy1.16.1cp35cp35mmanylinux1_i686.whl
486ce91fd66ec19044d8faa7d00e619b numpy1.16.1cp35cp35mmanylinux1_x86_64.whl
f2665475de0378467d88e6d80ac47f09 numpy1.16.1cp35cp35mwin32.whl
42b9d99bf4b03e3e9ae7aee8cbdff97c numpy1.16.1cp35cp35mwin_amd64.whl
269c80fde767b2b65abec775171aebed numpy1.16.1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a9561d8a38ee7d52126dfe779429036d numpy1.16.1cp36cp36mmanylinux1_i686.whl
2d146e75063ce8aaa255ea06d6647fa2 numpy1.16.1cp36cp36mmanylinux1_x86_64.whl
3a422881207202055c7530d3c4a63cc0 numpy1.16.1cp36cp36mwin32.whl
641af9183978922d4eb610c0df1abb4a numpy1.16.1cp36cp36mwin_amd64.whl
8eca0834ffce217b61633a2ba16f9e98 numpy1.16.1cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
df387b8e8ee398f2a6a46b18981ce7e3 numpy1.16.1cp37cp37mmanylinux1_i686.whl
daaac731bf53b6f90bf381e30c0b0e35 numpy1.16.1cp37cp37mmanylinux1_x86_64.whl
7443f622e549bf116ca561c1db6a4491 numpy1.16.1cp37cp37mwin32.whl
18b7d994de469d38e26c75c27898fa4f numpy1.16.1cp37cp37mwin_amd64.whl
ae2e65a2f2d7c80a3264fb038157895c numpy1.16.1.tar.gz
dafda51934f645d888866f98424521ae numpy1.16.1.zip
SHA256
e9c88f173d31909d881a60f08a8494e63f1aff2a4052476b24d4f50e82c47e24 numpy1.16.1cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
69c152f7c11bf3b4fc11bc4cc62eb0334371c0db6844ebace43b7c815b602805 numpy1.16.1cp27cp27mmanylinux1_i686.whl
ae602ba425fb2b074e16d125cdce4f0194903da935b2e7fe284ebecca6d92e76 numpy1.16.1cp27cp27mmanylinux1_x86_64.whl
4341a39fc085f31a583be505eabf00e17c619b469fef78dc7e8241385bfddaa4 numpy1.16.1cp27cp27mwin32.whl
a863957192855c4c57f60a75a1ac06ce5362ad18506d362dd807e194b4baf3ce numpy1.16.1cp27cp27mwin_amd64.whl
62784b35df7de7ca4d0d81c5b6af5983f48c5cdef32fc3635b445674e56e3266 numpy1.16.1cp27cp27mumanylinux1_i686.whl
6ccfdcefd287f252cf1ea7a3f1656070da330c4a5658e43ad223269165cdf977 numpy1.16.1cp27cp27mumanylinux1_x86_64.whl
8bbee788d82c0ac656536de70e817af09b7694f5326b0ef08e5c1014fcb96bb3 numpy1.16.1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
f69dde0c5a137d887676a8129373e44366055cf19d1b434e853310c7a1e68f93 numpy1.16.1cp35cp35mmanylinux1_i686.whl
575cefd28d3e0da85b0864506ae26b06483ee4a906e308be5a7ad11083f9d757 numpy1.16.1cp35cp35mmanylinux1_x86_64.whl
45080f065dcaa573ebecbfe13cdd86e8c0a68c4e999aa06bd365374ea7137706 numpy1.16.1cp35cp35mwin32.whl
34dd4922aab246c39bf5df03ca653d6265e65971deca6784c956bf356bca6197 numpy1.16.1cp35cp35mwin_amd64.whl
c2c39d69266621dd7464e2bb740d6eb5abc64ddc339cc97aa669f3bb4d75c103 numpy1.16.1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
392e2ea22b41a22c0289a88053204b616181288162ba78e6823e1760309d5277 numpy1.16.1cp36cp36mmanylinux1_i686.whl
7298fbd73c0b3eff1d53dc9b9bdb7add8797bb55eeee38c8ccd7906755ba28af numpy1.16.1cp36cp36mmanylinux1_x86_64.whl
384e2dfa03da7c8d54f8f934f61b6a5e4e1ebb56a65b287567629d6c14578003 numpy1.16.1cp36cp36mwin32.whl
2b0cca1049bd39d1879fa4d598624cafe82d35529c72de1b3d528d68031cdd95 numpy1.16.1cp36cp36mwin_amd64.whl
b13faa258b20fa66d29011f99fdf498641ca74a0a6d9266bc27d83c70fea4a6a numpy1.16.1cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
485cb1eb4c9962f4cd042fed9424482ec1d83fee5dc2ef3f2552ac47852cb259 numpy1.16.1cp37cp37mmanylinux1_i686.whl
0cdbbaa30ae69281b18dd995d3079c4e552ad6d5426977f66b9a2a95f11f552a numpy1.16.1cp37cp37mmanylinux1_x86_64.whl
79463d918d1bf3aeb9186e3df17ddb0baca443f41371df422f99ee94f4f2bbfe numpy1.16.1cp37cp37mwin32.whl
f1a29267ac29fff0913de0f11f3a9edfcd3f39595f467026c29376fad243ebe3 numpy1.16.1cp37cp37mwin_amd64.whl
748369f4d5f60caf93e1d86cb22ad7fc5f82693f18804638f22bc55df27792ec numpy1.16.1.tar.gz
31d3fe5b673e99d33d70cfee2ea8fe8dccd60f265c3ed990873a88647e3dd288 numpy1.16.1.zip
charris released this
Assets
6
==========================
NumPy 1.16.0 Release Notes
This NumPy release is the last one to support Python 2.7 and will be maintained
as a long term release with bug fixes until 2020. Support for Python 3.4 been
dropped, the supported Python versions are 2.7 and 3.53.7. The wheels on PyPI
are linked with OpenBLAS v0.3.4+, which should fix the known threading issues
found in previous OpenBLAS versions.
Downstream developers building this release should use Cython >= 0.29 and, if
using OpenBLAS, OpenBLAS > v0.3.4.
This release has seen a lot of refactoring and features many bug fixes, improved
code organization, and better cross platform compatibility. Not all of these
improvements will be visible to users, but they should help make maintenance
easier going forward.
Highlights

Experimental support for overriding numpy functions,
see__array_function__
below. 
The
matmul
function is now a ufunc. This provides better
performance and allows overriding with__array_ufunc__
. 
Improved support for the ARM and POWER architectures.

Improved support for AIX and PyPy.

Improved interop with ctypes.

Improved support for PEP 3118.
New functions

New functions added to the
numpy.lib.recfuntions
module to ease the
structured assignment changes:assign_fields_by_name
structured_to_unstructured
unstructured_to_structured
apply_along_fields
require_fields
See the user guide at https://docs.scipy.org/doc/numpy/user/basics.rec.html
for more info.
New deprecations

The type dictionaries
numpy.core.typeNA
andnumpy.core.sctypeNA
are
deprecated. They were buggy and not documented and will be removed in the
1.18 release. Usenumpy.sctypeDict
instead. 
The
numpy.asscalar
function is deprecated. It is an alias to the more
powerfulnumpy.ndarray.item
, not tested, and fails for scalars. 
The
numpy.set_array_ops
andnumpy.get_array_ops
functions are deprecated.
As part ofNEP 15
, they have been deprecated along with the CAPI functions
:c:func:PyArray_SetNumericOps
and :c:func:PyArray_GetNumericOps
. Users
who wish to override the inner loop functions in builtin ufuncs should use
:c:func:PyUFunc_ReplaceLoopBySignature
. 
The
numpy.unravel_index
keyword argumentdims
is deprecated, use
shape
instead. 
The
numpy.histogram
normed
argument is deprecated. It was deprecated
previously, but no warning was issued. 
The
positive
operator (+
) applied to nonnumerical arrays is
deprecated. See below for details. 
Passing an iterator to the stack functions is deprecated
Expired deprecations

NaT comparisons now return
False
without a warning, finishing a
deprecation cycle begun in NumPy 1.11. 
np.lib.function_base.unique
was removed, finishing a deprecation cycle
begun in NumPy 1.4. Usenumpy.unique
instead. 
multifield indexing now returns views instead of copies, finishing a
deprecation cycle begun in NumPy 1.7. The change was previously attempted in
NumPy 1.14 but reverted until now. 
np.PackageLoader
andnp.pkgload
have been removed. These were
deprecated in 1.10, had no tests, and seem to no longer work in 1.15.
Future changes
 NumPy 1.17 will drop support for Python 2.7.
Compatibility notes
f2py script on Windows
On Windows, the installed script for running f2py is now an .exe
file
rather than a *.py
file and should be run from the command line as f2py
whenever the Scripts
directory is in the path. Running f2py
as a module
python m numpy.f2py [...]
will work without path modification in any
version of NumPy.
NaT comparisons
Consistent with the behavior of NaN, all comparisons other than inequality
checks with datetime64 or timedelta64 NaT ("notatime") values now always
return False
, and inequality checks with NaT now always return True
.
This includes comparisons beteween NaT values. For compatibility with the
old behavior, use np.isnat
to explicitly check for NaT or convert
datetime64/timedelta64 arrays with .astype(np.int64)
before making
comparisons.
complex64/128 alignment has changed
The memory alignment of complex types is now the same as a Cstruct composed of
two floating point values, while before it was equal to the size of the type.
For many users (for instance on x64/unix/gcc) this means that complex64 is now
4byte aligned instead of 8byte aligned. An important consequence is that
aligned structured dtypes may now have a different size. For instance,
np.dtype('c8,u1', align=True)
used to have an itemsize of 16 (on x64/gcc)
but now it is 12.
More in detail, the complex64 type now has the same alignment as a Cstruct
struct {float r, i;}
, according to the compiler used to compile numpy, and
similarly for the complex128 and complex256 types.
nd_grid len removal
len(np.mgrid)
and len(np.ogrid)
are now considered nonsensical
and raise a TypeError
.
np.unravel_index
now accepts shape
keyword argument
Previously, only the dims
keyword argument was accepted
for specification of the shape of the array to be used
for unraveling. dims
remains supported, but is now deprecated.
multifield views return a view instead of a copy
Indexing a structured array with multiple fields, e.g., arr[['f1', 'f3']]
,
returns a view into the original array instead of a copy. The returned view
will often have extra padding bytes corresponding to intervening fields in the
original array, unlike before, which will affect code such as
arr[['f1', 'f3']].view('float64')
. This change has been planned since numpy
1.7. Operations hitting this path have emitted FutureWarnings
since then.
Additional FutureWarnings
about this change were added in 1.12.
To help users update their code to account for these changes, a number of
functions have been added to the numpy.lib.recfunctions
module which
safely allow such operations. For instance, the code above can be replaced
with structured_to_unstructured(arr[['f1', 'f3']], dtype='float64')
.
See the "accessing multiple fields" section of the
user guide <https://docs.scipy.org/doc/numpy/user/basics.rec.html#accessingmultiplefields>
__.
C API changes
The :c:data:NPY_API_VERSION
was incremented to 0x0000D, due to the addition
of:
 :c:member:
PyUFuncObject.core_dim_flags
 :c:member:
PyUFuncObject.core_dim_sizes
 :c:member:
PyUFuncObject.identity_value
 :c:function:
PyUFunc_FromFuncAndDataAndSignatureAndIdentity
New Features
Integrated squared error (ISE) estimator added to histogram
This method (bins='stone'
) for optimizing the bin number is a
generalization of the Scott's rule. The Scott's rule assumes the distribution
is approximately Normal, while the ISE_ is a nonparametric method based on
crossvalidation.
.. _ISE: https://en.wikipedia.org/wiki/Histogram#Minimizing_crossvalidation_estimated_squared_error
max_rows
keyword added for np.loadtxt
New keyword max_rows
in numpy.loadtxt
sets the maximum rows of the
content to be read after skiprows
, as in numpy.genfromtxt
.
modulus operator support added for np.timedelta64
operands
The modulus (remainder) operator is now supported for two operands
of type np.timedelta64
. The operands may have different units
and the return value will match the type of the operands.
Improvements
nocopy pickling of numpy arrays
Up to protocol 4, numpy array pickling created 2 spurious copies of the data
being serialized. With pickle protocol 5, and the PickleBuffer
API, a
large variety of numpy arrays can now be serialized without any copy using
outofband buffers, and with one less copy using inband buffers. This
results, for large arrays, in an up to 66% drop in peak memory usage.
build shell independence
NumPy builds should no longer interact with the host machine
shell directly. exec_command
has been replaced with
subprocess.check_output
where appropriate.
np.polynomial.Polynomial
classes render in LaTeX in Jupyter notebooks
When used in a frontend that supports it, Polynomial
instances are now
rendered through LaTeX. The current format is experimental, and is subject to
change.
randint
and choice
now work on empty distributions
Even when no elements needed to be drawn, np.random.randint
and
np.random.choice
raised an error when the arguments described an empty
distribution. This has been fixed so that e.g.
np.random.choice([], 0) == np.array([], dtype=float64)
.
linalg.lstsq
, linalg.qr
, and linalg.svd
now work with empty arrays
Previously, a LinAlgError
would be raised when an empty matrix/empty
matrices (with zero rows and/or columns) is/are passed in. Now outputs of
appropriate shapes are returned.
Chain exceptions to give better error messages for invalid PEP3118 format strings
This should help track down problems.
Einsum optimization path updates and efficiency improvements
Einsum was synchronized with the current upstream work.
numpy.angle
and numpy.expand_dims
now work on ndarray
subclasses
In particular, they now work for masked arrays.
NPY_NO_DEPRECATED_API
compiler warning suppression
Setting NPY_NO_DEPRECATED_API
to a value of 0 will suppress the current compiler
warnings when the deprecated numpy API is used.
np.diff
Added kwargs prepend and append
New kwargs prepend
and append
, allow for values to be inserted on
either end of the differences. Similar to options for ediff1d
. Now the
inverse of cumsum
can be obtained easily via prepend=0
.
ARM support updated
Support for ARM CPUs has been updated to accommodate 32 and 64 bit targets,
and also big and little endian byte ordering. AARCH32 memory alignment issues
have been addressed. CI testing has been expanded to include AARCH64 targets
via the services of shippable.com.
Appending to build flags
numpy.distutils
has always overridden rather than appended to LDFLAGS
and
other similar such environment variables for compiling Fortran extensions.
Now, if the NPY_DISTUTILS_APPEND_FLAGS
environment variable is set to 1, the
behavior will be appending. This applied to: LDFLAGS
, F77FLAGS
,
F90FLAGS
, FREEFLAGS
, FOPT
, FDEBUG
, and FFLAGS
. See gh11525 for more
details.
Generalized ufunc signatures now allow fixedsize dimensions
By using a numerical value in the signature of a generalized ufunc, one can
indicate that the given function requires input or output to have dimensions
with the given size. E.g., the signature of a function that converts a polar
angle to a twodimensional cartesian unit vector would be ()>(2)
; that
for one that converts two spherical angles to a threedimensional unit vector
would be (),()>(3)
; and that for the cross product of two
threedimensional vectors would be (3),(3)>(3)
.
Note that to the elementary function these dimensions are not treated any
differently from variable ones indicated with a name starting with a letter;
the loop still is passed the corresponding size, but it can now count on that
size being equal to the fixed one given in the signature.
Generalized ufunc signatures now allow flexible dimensions
Some functions, in particular numpy's implementation of @
as matmul
,
are very similar to generalized ufuncs in that they operate over core
dimensions, but one could not present them as such because they were able to
deal with inputs in which a dimension is missing. To support this, it is now
allowed to postfix a dimension name with a question mark to indicate that the
dimension does not necessarily have to be present.
With this addition, the signature for matmul
can be expressed as
(m?,n),(n,p?)>(m?,p?)
. This indicates that if, e.g., the second operand
has only one dimension, for the purposes of the elementary function it will be
treated as if that input has core shape (n, 1)
, and the output has the
corresponding core shape of (m, 1)
. The actual output array, however, has
the flexible dimension removed, i.e., it will have shape (..., m)
.
Similarly, if both arguments have only a single dimension, the inputs will be
presented as having shapes (1, n)
and (n, 1)
to the elementary
function, and the output as (1, 1)
, while the actual output array returned
will have shape ()
. In this way, the signature allows one to use a
single elementary function for four related but different signatures,
(m,n),(n,p)>(m,p)
, (n),(n,p)>(p)
, (m,n),(n)>(m)
and
(n),(n)>()
.
np.clip
and the clip
method check for memory overlap
The out
argument to these functions is now always tested for memory overlap
to avoid corrupted results when memory overlap occurs.
New value unscaled
for option cov
in np.polyfit
A further possible value has been added to the cov
parameter of the
np.polyfit
function. With cov='unscaled'
the scaling of the covariance
matrix is disabled completely (similar to setting absolute_sigma=True
in
scipy.optimize.curve_fit
). This would be useful in occasions, where the
weights are given by 1/sigma with sigma being the (known) standard errors of
(Gaussian distributed) data points, in which case the unscaled matrix is
already a correct estimate for the covariance matrix.
Detailed docstrings for scalar numeric types
The help
function, when applied to numeric types such as numpy.intc
,
numpy.int_
, and numpy.longlong
, now lists all of the aliased names for that
type, distinguishing between platform dependent and independent aliases.
__module__
attribute now points to public modules
The __module__
attribute on most NumPy functions has been updated to refer
to the preferred public module from which to access a function, rather than
the module in which the function happens to be defined. This produces more
informative displays for functions in tools such as IPython, e.g., instead of
<function 'numpy.core.fromnumeric.sum'>
you now see
<function 'numpy.sum'>
.
Large allocations marked as suitable for transparent hugepages
On systems that support transparent hugepages over the madvise system call
numpy now marks that large memory allocations can be backed by hugepages which
reduces page fault overhead and can in some fault heavy cases improve
performance significantly. On Linux the setting for huge pages to be used,
/sys/kernel/mm/transparent_hugepage/enabled
, must be at least madvise
.
Systems which already have it set to always
will not see much difference as
the kernel will automatically use huge pages where appropriate.
Users of very old Linux kernels (~3.x and older) should make sure that
/sys/kernel/mm/transparent_hugepage/defrag
is not set to always
to avoid
performance problems due concurrency issues in the memory defragmentation.
Alpine Linux (and other musl c library distros) support
We now default to use fenv.h
for floating point status error reporting.
Previously we had a broken default that sometimes would not report underflow,
overflow, and invalid floating point operations. Now we can support nonglibc
distrubutions like Alpine Linux as long as they ship fenv.h
.
Speedup np.block
for large arrays
Large arrays (greater than 512 * 512
) now use a blocking algorithm based on
copying the data directly into the appropriate slice of the resulting array.
This results in significant speedups for these large arrays, particularly for
arrays being blocked along more than 2 dimensions.
arr.ctypes.data_as(...)
holds a reference to arr
Previously the caller was responsible for keeping the array alive for the
lifetime of the pointer.
Speedup ``np.take`` for readonly arrays

The implementation of ``np.take`` no longer makes an unnecessary copy of the
source array when its ``writeable`` flag is set to ``False``.
Support pathlike objects for more functions

The ``np.core.records.fromfile`` function now supports ``pathlib.Path``
and other pathlike objects in addition to a file object. Furthermore, the
``np.load`` function now also supports pathlike objects when using memory
mapping (``mmap_mode`` keyword argument).
Better behaviour of ufunc identities during reductions

Universal functions have an ``.identity`` which is used when ``.reduce`` is
called on an empty axis.
As of this release, the logical binary ufuncs, `logical_and`, `logical_or`,
and `logical_xor`, now have ``identity`` s of type `bool`, where previously they
were of type `int`. This restores the 1.14 behavior of getting ``bool`` s when
reducing empty object arrays with these ufuncs, while also keeping the 1.15
behavior of getting ``int`` s when reducing empty object arrays with arithmetic
ufuncs like ``add`` and ``multiply``.
Additionally, `logaddexp` now has an identity of ``inf``, allowing it to be
called on empty sequences, where previously it could not be.
This is possible thanks to the new
:c:function:`PyUFunc_FromFuncAndDataAndSignatureAndIdentity`, which allows
arbitrary values to be used as identities now.
Improved conversion from ctypes objects

Numpy has always supported taking a value or type from ``ctypes`` and
converting it into an array or dtype, but only behaved correctly for simpler
types. As of this release, this caveat is lifted  now:
* The ``_pack_`` attribute of ``ctypes.Structure``, used to emulate C's
``__attribute__((packed))``, is respected.
* Endianness of all ctypes objects is preserved
* ``ctypes.Union`` is supported
* Nonrepresentable constructs raise exceptions, rather than producing
dangerously incorrect results:
* Bitfields are no longer interpreted as subarrays
* Pointers are no longer replaced with the type that they point to
A new ``ndpointer.contents`` member

This matches the ``.contents`` member of normal ctypes arrays, and can be used
to construct an ``np.array`` around the pointers contents. This replaces
``np.array(some_nd_pointer)``, which stopped working in 1.15. As a side effect
of this change, ``ndpointer`` now supports dtypes with overlapping fields and
padding.
``matmul`` is now a ``ufunc``

`numpy.matmul` is now a ufunc which means that both the function and the
``__matmul__`` operator can now be overridden by ``__array_ufunc__``. Its
implementation has also changed. It uses the same BLAS routines as
`numpy.dot`, ensuring its performance is similar for large matrices.
Start and stop arrays for ``linspace``, ``logspace`` and ``geomspace``

These functions used to be limited to scalar stop and start values, but can
now take arrays, which will be properly broadcast and result in an output
which has one axis prepended. This can be used, e.g., to obtain linearly
interpolated points between sets of points.
CI extended with additional services

We now use additional free CI services, thanks to the companies that provide:
* Codecoverage testing via codecov.io
* Arm testing via shippable.com
* Additional test runs on azure pipelines
These are in addition to our continued use of travis, appveyor (for wheels) and
LGTM
Changes
=======
Comparison ufuncs will now error rather than return NotImplemented

Previously, comparison ufuncs such as ``np.equal`` would return
`NotImplemented` if their arguments had structured dtypes, to help comparison
operators such as ``__eq__`` deal with those. This is no longer needed, as the
relevant logic has moved to the comparison operators proper (which thus do
continue to return `NotImplemented` as needed). Hence, like all other ufuncs,
the comparison ufuncs will now error on structured dtypes.
Positive will now raise a deprecation warning for nonnumerical arrays

Previously, ``+array`` unconditionally returned a copy. Now, it will
raise a ``DeprecationWarning`` if the array is not numerical (i.e.,
if ``np.positive(array)`` raises a ``TypeError``. For ``ndarray``
subclasses that override the default ``__array_ufunc__`` implementation,
the ``TypeError`` is passed on.
``NDArrayOperatorsMixin`` now implements matrix multiplication

Previously, ``np.lib.mixins.NDArrayOperatorsMixin`` did not implement the
special methods for Python's matrix multiplication operator (``@``). This has
changed now that ``matmul`` is a ufunc and can be overridden using
``__array_ufunc__``.
The scaling of the covariance matrix in ``np.polyfit`` is different

So far, ``np.polyfit`` used a nonstandard factor in the scaling of the the
covariance matrix. Namely, rather than using the standard ``chisq/(MN)``, it
scaled it with ``chisq/(MN2)`` where M is the number of data points and N is the
number of parameters. This scaling is inconsistent with other fitting programs
such as e.g. ``scipy.optimize.curve_fit`` and was changed to ``chisq/(MN)``.
``maximum`` and ``minimum`` no longer emit warnings

As part of code introduced in 1.10, ``float32`` and ``float64`` set invalid
float status when a Nan is encountered in `numpy.maximum` and `numpy.minimum`,
when using SSE2 semantics. This caused a `RuntimeWarning` to sometimes be
emitted. In 1.15 we fixed the inconsistencies which caused the warnings to
become more conspicuous. Now no warnings will be emitted.
Umath and multiarray cextension modules merged into a single module

The two modules were merged, according to `NEP 15`_. Previously `np.core.umath`
and `np.core.multiarray` were seperate cextension modules. They are now python
wrappers to the single `np.core/_multiarray_math` cextension module.
.. _`NEP 15` : http://www.numpy.org/neps/nep0015mergemultiarrayumath.html
``getfield`` validity checks extended

`numpy.ndarray.getfield` now checks the dtype and offset arguments to prevent
accessing invalid memory locations.
NumPy functions now support overrides with ``__array_function__``

It is now possible to override the implementation of almost all NumPy functions
on nonNumPy arrays by defining a ``__array_function__`` method, as described
in `NEP 18`_. The sole exception are functions for explicitly casting to NumPy
arrays such as ``np.array``. As noted in the NEP, this feature remains
experimental and the details of how to implement such overrides may change in
the future.
.. _`NEP 15` : http://www.numpy.org/neps/nep0015mergemultiarrayumath.html
.. _`NEP 18` : http://www.numpy.org/neps/nep0018arrayfunctionprotocol.html
Arrays based off readonly buffers cannot be set ``writeable``

We now disallow setting the ``writeable`` flag True on arrays created
from ``fromstring(readonlybuffer)``.
Checksums
=========
MD5

67d46af4e62111285f27a9c5731f16f9 numpy1.16.0cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a1afdd521bf4480f4a5f43f39a345a80 numpy1.16.0cp27cp27mmanylinux1_i686.whl
66d2e3fee4504c371da147a56fa9f900 numpy1.16.0cp27cp27mmanylinux1_x86_64.whl
63648ca2ba0dae7f7f57cc8fc87f0fba numpy1.16.0cp27cp27mwin32.whl
9a53cf0c5e77f02ea9b5ff3587a1f8ac numpy1.16.0cp27cp27mwin_amd64.whl
7253e6e78dc1ae134abcf40201ca73ad numpy1.16.0cp27cp27mumanylinux1_i686.whl
c47496091e10e31eeb9d9b07f3136237 numpy1.16.0cp27cp27mumanylinux1_x86_64.whl
048918abcf3936c947d06f1ee629757e numpy1.16.0cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
968ea61a147bd500b5d858b91ccf709d numpy1.16.0cp35cp35mmanylinux1_i686.whl
ee52de6e269576f468285b0f45fe9618 numpy1.16.0cp35cp35mmanylinux1_x86_64.whl
608e1d02d014bda5c4081881a25f9fbc numpy1.16.0cp35cp35mwin32.whl
4ed0e6114562eefb75da7aadc3db4f8a numpy1.16.0cp35cp35mwin_amd64.whl
809ed96a113cf46e81ae50c9703e7a5c numpy1.16.0cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
26ceb7aa63fa82bc444e69156444fe6f numpy1.16.0cp36cp36mmanylinux1_i686.whl
5877c113fcd82198ad2285e3074a089c numpy1.16.0cp36cp36mmanylinux1_x86_64.whl
2ce0cc7d22e3f94e51315c1df4fd81bd numpy1.16.0cp36cp36mwin32.whl
b1e5a08c6a85c8a51f8039b3dc3dad3d numpy1.16.0cp36cp36mwin_amd64.whl
748fe792a69f79b0c3a926139b23bdbc numpy1.16.0cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d424c537c28510340f06a317608d7743 numpy1.16.0cp37cp37mmanylinux1_i686.whl
8d87c0b1f8d7ad46b1976328d6c66cef numpy1.16.0cp37cp37mmanylinux1_x86_64.whl
25da2b41f81d4862bb36a07218477ea6 numpy1.16.0cp37cp37mwin32.whl
22af7b6ff2da30fca2334886fdbf8573 numpy1.16.0cp37cp37mwin_amd64.whl
d30393335b59081555fa29c680ab4784 numpy1.16.0.tar.gz
90b5ec981eb9746785f43e9bfc003fed numpy1.16.0.zip
SHA256

a80ecac5664f420556a725a5646f2d1c60a7c0489d68a38b5056393e949e27ac numpy1.16.0cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
be43df2c563e264b38e3318574d80fc8f365df3fb745270934d2dbe54e006f41 numpy1.16.0cp27cp27mmanylinux1_i686.whl
f00a2c21f60284e024bba351875f3501c6d5817d64997a0afe4f4355161a8889 numpy1.16.0cp27cp27mmanylinux1_x86_64.whl
5774d49516c37fd3fc1f232e033d2b152f3323ca4c7bfefd7277e4c67f3c08b4 numpy1.16.0cp27cp27mwin32.whl
25600e8901012180a1b7cd1ac3e27e7793586ecd432383191929ac2edf37ff5d numpy1.16.0cp27cp27mwin_amd64.whl
803b2af862dcad6c11231ea3cd1015d1293efd6c87088be33d713a9b23e9e419 numpy1.16.0cp27cp27mumanylinux1_i686.whl
24a9c287a4a1c427c2d45bf7c4fc6180c52a08fa0990d4c94e4c86a9b1e23ba5 numpy1.16.0cp27cp27mumanylinux1_x86_64.whl
96e49a0c82b4e3130093002f625545104037c2d25866fa2e0c90d6e54f5a1fbc numpy1.16.0cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a1dd8221f0e69038748f47b8bb3248d0b9ecdf13fe837440951c3d5ff72639bb numpy1.16.0cp35cp35mmanylinux1_i686.whl
3e90a9fce378114b6c2fc01fff7423300515c7b54b7cc71b02a22bc0bd7dfdd8 numpy1.16.0cp35cp35mmanylinux1_x86_64.whl
0470c5dc32212a08ebc2405f32e8ceb9a5b1c8ac61a2daf9835ec0856a220495 numpy1.16.0cp35cp35mwin32.whl
c40cb17188f6ae3c5b6efc6f0fd43a7ddd219b7807fe179e71027849a9b91afc numpy1.16.0cp35cp35mwin_amd64.whl
00a458d6821b1e87be873f2126d5646b901047a7480e8ae9773ecf214f0e19f3 numpy1.16.0cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
f1232f98a6bbd6d1678249f94028bccc541bbc306aa5c4e1471a881b0e5a3409 numpy1.16.0cp36cp36mmanylinux1_i686.whl
2d279bd99329e72c30937bdef82b6dc7779c7607c5a379bab1bf76be1f4c1422 numpy1.16.0cp36cp36mmanylinux1_x86_64.whl
95c830b09626508f7808ce7f1344fb98068e63143e6050e5dc3063142fc60007 numpy1.16.0cp36cp36mwin32.whl
ef4ae41add536cb825d8aa029c15ef510aead06ea5b68daea64f0b9ecbff17db numpy1.16.0cp36cp36mwin_amd64.whl
32af2bcf4bb7631dac19736a6e092ec9715e770dcaa1f85fcd99dec5040b2a4d numpy1.16.0cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c6251e0f0ecac53ba2b99d9f0cc16fa9021914a78869c38213c436ba343641f0 numpy1.16.0cp37cp37mmanylinux1_i686.whl
b19a47ff1bd2fca0cacdfa830c967746764c32dca6a0c0328d9c893f4bfe2f6b numpy1.16.0cp37cp37mmanylinux1_x86_64.whl
fea682f6ddc09517df0e6d5caad9613c6d91a42232aeb082df67e4d205de19cc numpy1.16.0cp37cp37mwin32.whl
64ff21aac30d40c20ba994c94a08d439b8ced3b9c704af897e9e4ba09d10e62c numpy1.16.0cp37cp37mwin_amd64.whl
9b98898687b5dd05c4ac7bcf7e8669a50dd2bb19591b772e045e5806c23e0ca4 numpy1.16.0.tar.gz
cb189bd98b2e7ac02df389b6212846ab20661f4bafe16b5a70a6f1728c1cc7cb numpy1.16.0.zip
charris released this
Assets
6
==========================
NumPy 1.16.0 Release Notes
This NumPy release is the last one to support Python 2.7 and will be maintained
as a long term release with bug fixes until 2020. Support for Python 3.4 been
dropped, the supported Python versions are 2.7 and 3.53.7. The wheels on PyPI
are linked with OpenBLAS v0.3.4+, which should fix the known threading issues
found in previous OpenBLAS versions.
Downstream developers building this release should use Cython >= 0.29 and, if
using OpenBLAS, OpenBLAS > v0.3.4.
This release has seen a lot of refactoring and features many bug fixes, improved
code organization, and better cross platform compatibility. Not all of these
improvements will be visible to users, but they should help make maintenance
easier going forward.
Highlights

Experimental support for overriding numpy functions,
see__array_function__
below. 
The
matmul
function is now a ufunc. This provides better
performance and allows overriding with__array_ufunc__
. 
Improved support for the ARM and POWER architectures.

Improved support for AIX and PyPy.

Improved interop with ctypes.

Improved support for PEP 3118.
New functions

New functions added to the
numpy.lib.recfuntions
module to ease the
structured assignment changes:assign_fields_by_name
structured_to_unstructured
unstructured_to_structured
apply_along_fields
require_fields
See the user guide at https://docs.scipy.org/doc/numpy/user/basics.rec.html
for more info.
New deprecations

The type dictionaries
numpy.core.typeNA
andnumpy.core.sctypeNA
are
deprecated. They were buggy and not documented and will be removed in the
1.18 release. Usenumpy.sctypeDict
instead. 
The
numpy.asscalar
function is deprecated. It is an alias to the more
powerfulnumpy.ndarray.item
, not tested, and fails for scalars. 
The
numpy.set_array_ops
andnumpy.get_array_ops
functions are deprecated.
As part ofNEP 15
, they have been deprecated along with the CAPI functions
:c:func:PyArray_SetNumericOps
and :c:func:PyArray_GetNumericOps
. Users
who wish to override the inner loop functions in builtin ufuncs should use
:c:func:PyUFunc_ReplaceLoopBySignature
. 
The
numpy.unravel_index
keyword argumentdims
is deprecated, use
shape
instead. 
The
numpy.histogram
normed
argument is deprecated. It was deprecated
previously, but no warning was issued. 
The
positive
operator (+
) applied to nonnumerical arrays is
deprecated. See below for details. 
Passing an iterator to the stack functions is deprecated
Expired deprecations

NaT comparisons now return
False
without a warning, finishing a
deprecation cycle begun in NumPy 1.11. 
np.lib.function_base.unique
was removed, finishing a deprecation cycle
begun in NumPy 1.4. Usenumpy.unique
instead. 
multifield indexing now returns views instead of copies, finishing a
deprecation cycle begun in NumPy 1.7. The change was previously attempted in
NumPy 1.14 but reverted until now. 
np.PackageLoader
andnp.pkgload
have been removed. These were
deprecated in 1.10, had no tests, and seem to no longer work in 1.15.
Future changes
 NumPy 1.17 will drop support for Python 2.7.
Compatibility notes
f2py script on Windows
On Windows, the installed script for running f2py is now an .exe
file
rather than a *.py
file and should be run from the command line as f2py
whenever the Scripts
directory is in the path. Running f2py
as a module
python m numpy.f2py [...]
will work without path modification in any
version of NumPy.
NaT comparisons
Consistent with the behavior of NaN, all comparisons other than inequality
checks with datetime64 or timedelta64 NaT ("notatime") values now always
return False
, and inequality checks with NaT now always return True
.
This includes comparisons beteween NaT values. For compatibility with the
old behavior, use np.isnat
to explicitly check for NaT or convert
datetime64/timedelta64 arrays with .astype(np.int64)
before making
comparisons.
complex64/128 alignment has changed
The memory alignment of complex types is now the same as a Cstruct composed of
two floating point values, while before it was equal to the size of the type.
For many users (for instance on x64/unix/gcc) this means that complex64 is now
4byte aligned instead of 8byte aligned. An important consequence is that
aligned structured dtypes may now have a different size. For instance,
np.dtype('c8,u1', align=True)
used to have an itemsize of 16 (on x64/gcc)
but now it is 12.
More in detail, the complex64 type now has the same alignment as a Cstruct
struct {float r, i;}
, according to the compiler used to compile numpy, and
similarly for the complex128 and complex256 types.
nd_grid len removal
len(np.mgrid)
and len(np.ogrid)
are now considered nonsensical
and raise a TypeError
.
np.unravel_index
now accepts shape
keyword argument
Previously, only the dims
keyword argument was accepted
for specification of the shape of the array to be used
for unraveling. dims
remains supported, but is now deprecated.
multifield views return a view instead of a copy
Indexing a structured array with multiple fields, e.g., arr[['f1', 'f3']]
,
returns a view into the original array instead of a copy. The returned view
will often have extra padding bytes corresponding to intervening fields in the
original array, unlike before, which will affect code such as
arr[['f1', 'f3']].view('float64')
. This change has been planned since numpy
1.7. Operations hitting this path have emitted FutureWarnings
since then.
Additional FutureWarnings
about this change were added in 1.12.
To help users update their code to account for these changes, a number of
functions have been added to the numpy.lib.recfunctions
module which
safely allow such operations. For instance, the code above can be replaced
with structured_to_unstructured(arr[['f1', 'f3']], dtype='float64')
.
See the "accessing multiple fields" section of the
user guide <https://docs.scipy.org/doc/numpy/user/basics.rec.html#accessingmultiplefields>
__.
C API changes
The :c:data:NPY_API_VERSION
was incremented to 0x0000D, due to the addition
of:
 :c:member:
PyUFuncObject.core_dim_flags
 :c:member:
PyUFuncObject.core_dim_sizes
 :c:member:
PyUFuncObject.identity_value
 :c:function:
PyUFunc_FromFuncAndDataAndSignatureAndIdentity
New Features
Integrated squared error (ISE) estimator added to histogram
This method (bins='stone'
) for optimizing the bin number is a
generalization of the Scott's rule. The Scott's rule assumes the distribution
is approximately Normal, while the ISE_ is a nonparametric method based on
crossvalidation.
.. _ISE: https://en.wikipedia.org/wiki/Histogram#Minimizing_crossvalidation_estimated_squared_error
max_rows
keyword added for np.loadtxt
New keyword max_rows
in numpy.loadtxt
sets the maximum rows of the
content to be read after skiprows
, as in numpy.genfromtxt
.
modulus operator support added for np.timedelta64
operands
The modulus (remainder) operator is now supported for two operands
of type np.timedelta64
. The operands may have different units
and the return value will match the type of the operands.
Improvements
nocopy pickling of numpy arrays
Up to protocol 4, numpy array pickling created 2 spurious copies of the data
being serialized. With pickle protocol 5, and the PickleBuffer
API, a
large variety of numpy arrays can now be serialized without any copy using
outofband buffers, and with one less copy using inband buffers. This
results, for large arrays, in an up to 66% drop in peak memory usage.
build shell independence
NumPy builds should no longer interact with the host machine
shell directly. exec_command
has been replaced with
subprocess.check_output
where appropriate.
np.polynomial.Polynomial
classes render in LaTeX in Jupyter notebooks
When used in a frontend that supports it, Polynomial
instances are now
rendered through LaTeX. The current format is experimental, and is subject to
change.
randint
and choice
now work on empty distributions
Even when no elements needed to be drawn, np.random.randint
and
np.random.choice
raised an error when the arguments described an empty
distribution. This has been fixed so that e.g.
np.random.choice([], 0) == np.array([], dtype=float64)
.
linalg.lstsq
, linalg.qr
, and linalg.svd
now work with empty arrays
Previously, a LinAlgError
would be raised when an empty matrix/empty
matrices (with zero rows and/or columns) is/are passed in. Now outputs of
appropriate shapes are returned.
Chain exceptions to give better error messages for invalid PEP3118 format strings
This should help track down problems.
Einsum optimization path updates and efficiency improvements
Einsum was synchronized with the current upstream work.
numpy.angle
and numpy.expand_dims
now work on ndarray
subclasses
In particular, they now work for masked arrays.
NPY_NO_DEPRECATED_API
compiler warning suppression
Setting NPY_NO_DEPRECATED_API
to a value of 0 will suppress the current compiler
warnings when the deprecated numpy API is used.
np.diff
Added kwargs prepend and append
New kwargs prepend
and append
, allow for values to be inserted on
either end of the differences. Similar to options for ediff1d
. Now the
inverse of cumsum
can be obtained easily via prepend=0
.
ARM support updated
Support for ARM CPUs has been updated to accommodate 32 and 64 bit targets,
and also big and little endian byte ordering. AARCH32 memory alignment issues
have been addressed. CI testing has been expanded to include AARCH64 targets
via the services of shippable.com.
Appending to build flags
numpy.distutils
has always overridden rather than appended to LDFLAGS
and
other similar such environment variables for compiling Fortran extensions.
Now, if the NPY_DISTUTILS_APPEND_FLAGS
environment variable is set to 1, the
behavior will be appending. This applied to: LDFLAGS
, F77FLAGS
,
F90FLAGS
, FREEFLAGS
, FOPT
, FDEBUG
, and FFLAGS
. See gh11525 for more
details.
Generalized ufunc signatures now allow fixedsize dimensions
By using a numerical value in the signature of a generalized ufunc, one can
indicate that the given function requires input or output to have dimensions
with the given size. E.g., the signature of a function that converts a polar
angle to a twodimensional cartesian unit vector would be ()>(2)
; that
for one that converts two spherical angles to a threedimensional unit vector
would be (),()>(3)
; and that for the cross product of two
threedimensional vectors would be (3),(3)>(3)
.
Note that to the elementary function these dimensions are not treated any
differently from variable ones indicated with a name starting with a letter;
the loop still is passed the corresponding size, but it can now count on that
size being equal to the fixed one given in the signature.
Generalized ufunc signatures now allow flexible dimensions
Some functions, in particular numpy's implementation of @
as matmul
,
are very similar to generalized ufuncs in that they operate over core
dimensions, but one could not present them as such because they were able to
deal with inputs in which a dimension is missing. To support this, it is now
allowed to postfix a dimension name with a question mark to indicate that the
dimension does not necessarily have to be present.
With this addition, the signature for matmul
can be expressed as
(m?,n),(n,p?)>(m?,p?)
. This indicates that if, e.g., the second operand
has only one dimension, for the purposes of the elementary function it will be
treated as if that input has core shape (n, 1)
, and the output has the
corresponding core shape of (m, 1)
. The actual output array, however, has
the flexible dimension removed, i.e., it will have shape (..., m)
.
Similarly, if both arguments have only a single dimension, the inputs will be
presented as having shapes (1, n)
and (n, 1)
to the elementary
function, and the output as (1, 1)
, while the actual output array returned
will have shape ()
. In this way, the signature allows one to use a
single elementary function for four related but different signatures,
(m,n),(n,p)>(m,p)
, (n),(n,p)>(p)
, (m,n),(n)>(m)
and
(n),(n)>()
.
np.clip
and the clip
method check for memory overlap
The out
argument to these functions is now always tested for memory overlap
to avoid corrupted results when memory overlap occurs.
New value unscaled
for option cov
in np.polyfit
A further possible value has been added to the cov
parameter of the
np.polyfit
function. With cov='unscaled'
the scaling of the covariance
matrix is disabled completely (similar to setting absolute_sigma=True
in
scipy.optimize.curve_fit
). This would be useful in occasions, where the
weights are given by 1/sigma with sigma being the (known) standard errors of
(Gaussian distributed) data points, in which case the unscaled matrix is
already a correct estimate for the covariance matrix.
Detailed docstrings for scalar numeric types
The help
function, when applied to numeric types such as numpy.intc
,
numpy.int_
, and numpy.longlong
, now lists all of the aliased names for that
type, distinguishing between platform dependent and independent aliases.
__module__
attribute now points to public modules
The __module__
attribute on most NumPy functions has been updated to refer
to the preferred public module from which to access a function, rather than
the module in which the function happens to be defined. This produces more
informative displays for functions in tools such as IPython, e.g., instead of
<function 'numpy.core.fromnumeric.sum'>
you now see
<function 'numpy.sum'>
.
Large allocations marked as suitable for transparent hugepages
On systems that support transparent hugepages over the madvise system call
numpy now marks that large memory allocations can be backed by hugepages which
reduces page fault overhead and can in some fault heavy cases improve
performance significantly. On Linux the setting for huge pages to be used,
/sys/kernel/mm/transparent_hugepage/enabled
, must be at least madvise
.
Systems which already have it set to always
will not see much difference as
the kernel will automatically use huge pages where appropriate.
Users of very old Linux kernels (~3.x and older) should make sure that
/sys/kernel/mm/transparent_hugepage/defrag
is not set to always
to avoid
performance problems due concurrency issues in the memory defragmentation.
Alpine Linux (and other musl c library distros) support
We now default to use fenv.h
for floating point status error reporting.
Previously we had a broken default that sometimes would not report underflow,
overflow, and invalid floating point operations. Now we can support nonglibc
distrubutions like Alpine Linux as long as they ship fenv.h
.
Speedup np.block
for large arrays
Large arrays (greater than 512 * 512
) now use a blocking algorithm based on
copying the data directly into the appropriate slice of the resulting array.
This results in significant speedups for these large arrays, particularly for
arrays being blocked along more than 2 dimensions.
arr.ctypes.data_as(...)
holds a reference to arr
Previously the caller was responsible for keeping the array alive for the
lifetime of the pointer.
Speedup ``np.take`` for readonly arrays

The implementation of ``np.take`` no longer makes an unnecessary copy of the
source array when its ``writeable`` flag is set to ``False``.
Support pathlike objects for more functions

The ``np.core.records.fromfile`` function now supports ``pathlib.Path``
and other pathlike objects in addition to a file object. Furthermore, the
``np.load`` function now also supports pathlike objects when using memory
mapping (``mmap_mode`` keyword argument).
Better behaviour of ufunc identities during reductions

Universal functions have an ``.identity`` which is used when ``.reduce`` is
called on an empty axis.
As of this release, the logical binary ufuncs, `logical_and`, `logical_or`,
and `logical_xor`, now have ``identity`` s of type `bool`, where previously they
were of type `int`. This restores the 1.14 behavior of getting ``bool`` s when
reducing empty object arrays with these ufuncs, while also keeping the 1.15
behavior of getting ``int`` s when reducing empty object arrays with arithmetic
ufuncs like ``add`` and ``multiply``.
Additionally, `logaddexp` now has an identity of ``inf``, allowing it to be
called on empty sequences, where previously it could not be.
This is possible thanks to the new
:c:function:`PyUFunc_FromFuncAndDataAndSignatureAndIdentity`, which allows
arbitrary values to be used as identities now.
Improved conversion from ctypes objects

Numpy has always supported taking a value or type from ``ctypes`` and
converting it into an array or dtype, but only behaved correctly for simpler
types. As of this release, this caveat is lifted  now:
* The ``_pack_`` attribute of ``ctypes.Structure``, used to emulate C's
``__attribute__((packed))``, is respected.
* Endianness of all ctypes objects is preserved
* ``ctypes.Union`` is supported
* Nonrepresentable constructs raise exceptions, rather than producing
dangerously incorrect results:
* Bitfields are no longer interpreted as subarrays
* Pointers are no longer replaced with the type that they point to
A new ``ndpointer.contents`` member

This matches the ``.contents`` member of normal ctypes arrays, and can be used
to construct an ``np.array`` around the pointers contents. This replaces
``np.array(some_nd_pointer)``, which stopped working in 1.15. As a side effect
of this change, ``ndpointer`` now supports dtypes with overlapping fields and
padding.
``matmul`` is now a ``ufunc``

`numpy.matmul` is now a ufunc which means that both the function and the
``__matmul__`` operator can now be overridden by ``__array_ufunc__``. Its
implementation has also changed. It uses the same BLAS routines as
`numpy.dot`, ensuring its performance is similar for large matrices.
Start and stop arrays for ``linspace``, ``logspace`` and ``geomspace``

These functions used to be limited to scalar stop and start values, but can
now take arrays, which will be properly broadcast and result in an output
which has one axis prepended. This can be used, e.g., to obtain linearly
interpolated points between sets of points.
CI extended with additional services

We now use additional free CI services, thanks to the companies that provide:
* Codecoverage testing via codecov.io
* Arm testing via shippable.com
* Additional test runs on azure pipelines
These are in addition to our continued use of travis, appveyor (for wheels) and
LGTM
Changes
=======
Comparison ufuncs will now error rather than return NotImplemented

Previously, comparison ufuncs such as ``np.equal`` would return
`NotImplemented` if their arguments had structured dtypes, to help comparison
operators such as ``__eq__`` deal with those. This is no longer needed, as the
relevant logic has moved to the comparison operators proper (which thus do
continue to return `NotImplemented` as needed). Hence, like all other ufuncs,
the comparison ufuncs will now error on structured dtypes.
Positive will now raise a deprecation warning for nonnumerical arrays

Previously, ``+array`` unconditionally returned a copy. Now, it will
raise a ``DeprecationWarning`` if the array is not numerical (i.e.,
if ``np.positive(array)`` raises a ``TypeError``. For ``ndarray``
subclasses that override the default ``__array_ufunc__`` implementation,
the ``TypeError`` is passed on.
``NDArrayOperatorsMixin`` now implements matrix multiplication

Previously, ``np.lib.mixins.NDArrayOperatorsMixin`` did not implement the
special methods for Python's matrix multiplication operator (``@``). This has
changed now that ``matmul`` is a ufunc and can be overridden using
``__array_ufunc__``.
The scaling of the covariance matrix in ``np.polyfit`` is different

So far, ``np.polyfit`` used a nonstandard factor in the scaling of the the
covariance matrix. Namely, rather than using the standard ``chisq/(MN)``, it
scaled it with ``chisq/(MN2)`` where M is the number of data points and N is the
number of parameters. This scaling is inconsistent with other fitting programs
such as e.g. ``scipy.optimize.curve_fit`` and was changed to ``chisq/(MN)``.
``maximum`` and ``minimum`` no longer emit warnings

As part of code introduced in 1.10, ``float32`` and ``float64`` set invalid
float status when a Nan is encountered in `numpy.maximum` and `numpy.minimum`,
when using SSE2 semantics. This caused a `RuntimeWarning` to sometimes be
emitted. In 1.15 we fixed the inconsistencies which caused the warnings to
become more conspicuous. Now no warnings will be emitted.
Umath and multiarray cextension modules merged into a single module

The two modules were merged, according to `NEP 15`_. Previously `np.core.umath`
and `np.core.multiarray` were seperate cextension modules. They are now python
wrappers to the single `np.core/_multiarray_math` cextension module.
.. _`NEP 15` : http://www.numpy.org/neps/nep0015mergemultiarrayumath.html
``getfield`` validity checks extended

`numpy.ndarray.getfield` now checks the dtype and offset arguments to prevent
accessing invalid memory locations.
NumPy functions now support overrides with ``__array_function__``

It is now possible to override the implementation of almost all NumPy functions
on nonNumPy arrays by defining a ``__array_function__`` method, as described
in `NEP 18`_. The sole exception are functions for explicitly casting to NumPy
arrays such as ``np.array``. As noted in the NEP, this feature remains
experimental and the details of how to implement such overrides may change in
the future.
.. _`NEP 15` : http://www.numpy.org/neps/nep0015mergemultiarrayumath.html
.. _`NEP 18` : http://www.numpy.org/neps/nep0018arrayfunctionprotocol.html
Arrays based off readonly buffers cannot be set ``writeable``

We now disallow setting the ``writeable`` flag True on arrays created
from ``fromstring(readonlybuffer)``.
Checksums
=========
MD5

ab8191598ce94a21ad921e28c9271d25 numpy1.16.0rc2cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
7ee0fc316d2880ec0b1e759e1c07b3d1 numpy1.16.0rc2cp27cp27mmanylinux1_i686.whl
e5cebb3ae393456320ddfa0253cdc95d numpy1.16.0rc2cp27cp27mmanylinux1_x86_64.whl
064af8e0490c2d28cd643100697a39df numpy1.16.0rc2cp27cp27mwin32.whl
a0863b121b467d305eb1d2064ef51512 numpy1.16.0rc2cp27cp27mwin_amd64.whl
a87ec16f1a05effdd1ba28bdc3c7061f numpy1.16.0rc2cp27cp27mumanylinux1_i686.whl
f6cfdf218925e1e28e7d3fdafe92a5b2 numpy1.16.0rc2cp27cp27mumanylinux1_x86_64.whl
95cecd379d9810a9380e6828d0f08406 numpy1.16.0rc2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
6db11880170de68b69d297cf7cbbef9f numpy1.16.0rc2cp35cp35mmanylinux1_i686.whl
33b4c48e61328b1f00f5a6b6c2e3cdee numpy1.16.0rc2cp35cp35mmanylinux1_x86_64.whl
d69ffcdac09f1b5ab7fa90b9b5be784a numpy1.16.0rc2cp35cp35mwin32.whl
10ed348dd993c333236471235c1104fa numpy1.16.0rc2cp35cp35mwin_amd64.whl
831fab17f94d61b7c8a210c5924a1016 numpy1.16.0rc2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
1a694634c2343513419c2c6fb26e32e7 numpy1.16.0rc2cp36cp36mmanylinux1_i686.whl
14c493bd03f43402d4eee9f35163ea9e numpy1.16.0rc2cp36cp36mmanylinux1_x86_64.whl
c60c44b5d088450abd2ce87742355b83 numpy1.16.0rc2cp36cp36mwin32.whl
ddfbf5509840ac28fbcff7082dede343 numpy1.16.0rc2cp36cp36mwin_amd64.whl
70cd6e4609d16e425d00f3f54863257e numpy1.16.0rc2cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a4dca83e6d5f55493795b6ebde455a27 numpy1.16.0rc2cp37cp37mmanylinux1_i686.whl
6e5c2094cb896f7ee55dcfbea80aba5a numpy1.16.0rc2cp37cp37mmanylinux1_x86_64.whl
e19330756e42a4d77b58c5c34fa58f4a numpy1.16.0rc2cp37cp37mwin32.whl
4b7ed9b7be41ce44e146af1d6bc0a4c4 numpy1.16.0rc2cp37cp37mwin_amd64.whl
4f06b36a9db7d61898bf0440ffb6b273 numpy1.16.0rc2.tar.gz
feb1ad51ad96a2b1f964f64bb34a671b numpy1.16.0rc2.zip
SHA256

9c60e0261aa35ebc671a9dd8e149bb03cdc5f928188c8f13249304ad94e01bfc numpy1.16.0rc2cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
2bd4ee471f85b315a8177826126660043a1529ff9d022d958182fa274268f86c numpy1.16.0rc2cp27cp27mmanylinux1_i686.whl
d82bcdab867ba5c3fb6a68c3970a7a01f556d8ab4466fdec78394a74be2f71c6 numpy1.16.0rc2cp27cp27mmanylinux1_x86_64.whl
2811b3e77d455c657f1d46c3d1e7f274e645cb3af44008b7dc02f6ca7cc1a106 numpy1.16.0rc2cp27cp27mwin32.whl
2d6e8376b9a12ff55e63aa805315c032a9669699a312badf36b1824258561f08 numpy1.16.0rc2cp27cp27mwin_amd64.whl
d164db66a4519186ec13f2917bd2fd229021e3f3a8c78a2eb34de2b3178e5329 numpy1.16.0rc2cp27cp27mumanylinux1_i686.whl
d4e305d720c5e7c247410d794da816998aab53103bf0b05bc94090a65537b89a numpy1.16.0rc2cp27cp27mumanylinux1_x86_64.whl
cc140dd5077f2d9051af585648d3b561bbb6fb48da6458424e8ec462aebd2ee2 numpy1.16.0rc2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
0ad442c958da72443d3f35d29833aefad332f53601db19a24613f06a9731f131 numpy1.16.0rc2cp35cp35mmanylinux1_i686.whl
e05413b244108e41615697e26bdac211ca809054c027ccf59a96388b85ac2b00 numpy1.16.0rc2cp35cp35mmanylinux1_x86_64.whl
e75318498c0c5d5dc09f151bdadb8c8ac5762a236be328e33bbc0d079b349e7c numpy1.16.0rc2cp35cp35mwin32.whl
c4a023555dae1f0a1e411b67d1970cd168eff9526c0d11db47cb94d7b22948ec numpy1.16.0rc2cp35cp35mwin_amd64.whl
c064e12ebbc467baa2c3b0690b9296203d51c491546f1d13f796dc46c0dd4447 numpy1.16.0rc2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
2b716b4084770af3055352377603a9eef3f6b557bb9ec621b1c96a18242ac6f9 numpy1.16.0rc2cp36cp36mmanylinux1_i686.whl
a0e1a7b003c8a2cd204d9e7530677f7b41afa90460d1cc1bb9f52cf559abe0ab numpy1.16.0rc2cp36cp36mmanylinux1_x86_64.whl
4037b8b94345c2803474171464b366cd6727e310673a070083c79cd3a880ae71 numpy1.16.0rc2cp36cp36mwin32.whl
96a0bb7951739868bffc4a2d4c27a7452c44a276f743140be8b48439bf8714a7 numpy1.16.0rc2cp36cp36mwin_amd64.whl
62686057967dfbc391aa8a0d9eeded12250636a06bd6b639e07d067bce1282b5 numpy1.16.0rc2cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
eef36d084b7f91256b5ce95665abfe24693622fcecd3af3cc4f96624c0d93981 numpy1.16.0rc2cp37cp37mmanylinux1_i686.whl
5d6cc7098b7911401a9350d51d009bfe359a6d272e191827a9c13ebc03fc2974 numpy1.16.0rc2cp37cp37mmanylinux1_x86_64.whl
9c168f97f9af48b78ababc79c74db7ce09219ac70e01dbd92683e0731f952a08 numpy1.16.0rc2cp37cp37mwin32.whl
43d2e7c25970570d8d0a9d85d4b6c4635a6b402e823c87c10fc37657621c2d9b numpy1.16.0rc2cp37cp37mwin_amd64.whl
f3863bdc042c30a176694a8e2a16c13f8e6894a349ba79e3fbbcfe7e895436b9 numpy1.16.0rc2.tar.gz
c264fbc5f17897e124368289f53980a04880d6ebdfd8b657884ff31154d23133 numpy1.16.0rc2.zip
charris released this
Assets
6
==========================
NumPy 1.16.0 Release Notes
This NumPy release is the last one to support Python 2.7 and will be maintained
as a long term release with bug fixes until 2020. Support for Python 3.4 been
dropped, the supported Python versions are 2.7 and 3.53.7. The wheels on PyPI
are linked with OpenBLAS v0.3.4+, which should fix the known threading issues
found in previous OpenBLAS versions.
Downstream developers building this release should use Cython >= 0.29 and, if
using OpenBLAS, OpenBLAS > v0.3.4.
This release has seen a lot of refactoring and features many bug fixes, improved
code organization, and better cross platform compatibility. Not all of these
improvements will be visible to users, but they should help make maintenance
easier going forward.
Highlights

Experimental support for overriding numpy functions,
see__array_function__
below. 
The
matmul
function is now a ufunc. This provides better
performance and allows overriding with__array_ufunc__
. 
Improved support for the ARM and POWER architectures.

Improved support for AIX and PyPy.

Improved interop with ctypes.

Improved support for PEP 3118.
New functions

New functions added to the
numpy.lib.recfuntions
module to ease the
structured assignment changes:assign_fields_by_name
structured_to_unstructured
unstructured_to_structured
apply_along_fields
require_fields
See the user guide at https://docs.scipy.org/doc/numpy/user/basics.rec.html
for more info.
New deprecations

The type dictionaries
numpy.core.typeNA
andnumpy.core.sctypeNA
are
deprecated. They were buggy and not documented and will be removed in the
1.18 release. Usenumpy.sctypeDict
instead. 
The
numpy.asscalar
function is deprecated. It is an alias to the more
powerfulnumpy.ndarray.item
, not tested, and fails for scalars. 
The
numpy.set_array_ops
andnumpy.get_array_ops
functions are deprecated.
As part ofNEP 15
, they have been deprecated along with the CAPI functions
:c:func:PyArray_SetNumericOps
and :c:func:PyArray_GetNumericOps
. Users
who wish to override the inner loop functions in builtin ufuncs should use
:c:func:PyUFunc_ReplaceLoopBySignature
. 
The
numpy.unravel_index
keyword argumentdims
is deprecated, use
shape
instead. 
The
numpy.histogram
normed
argument is deprecated. It was deprecated
previously, but no warning was issued. 
The
positive
operator (+
) applied to nonnumerical arrays is
deprecated. See below for details. 
Passing an iterator to the stack functions is deprecated
Expired deprecations

NaT comparisons now return
False
without a warning, finishing a
deprecation cycle begun in NumPy 1.11. 
np.lib.function_base.unique
was removed, finishing a deprecation cycle
begun in NumPy 1.4. Usenumpy.unique
instead. 
multifield indexing now returns views instead of copies, finishing a
deprecation cycle begun in NumPy 1.7. The change was previously attempted in
NumPy 1.14 but reverted until now. 
np.PackageLoader
andnp.pkgload
have been removed. These were
deprecated in 1.10, had no tests, and seem to no longer work in 1.15.
Future changes
 NumPy 1.17 will drop support for Python 2.7.
Compatibility notes
f2py script on Windows
On Windows, the installed script for running f2py is now an .exe
file
rather than a *.py
file and should be run from the command line as f2py
whenever the Scripts
directory is in the path. Running f2py
as a module
python m numpy.f2py [...]
will work without path modification in any
version of NumPy.
NaT comparisons
Consistent with the behavior of NaN, all comparisons other than inequality
checks with datetime64 or timedelta64 NaT ("notatime") values now always
return False
, and inequality checks with NaT now always return True
.
This includes comparisons beteween NaT values. For compatibility with the
old behavior, use np.isnat
to explicitly check for NaT or convert
datetime64/timedelta64 arrays with .astype(np.int64)
before making
comparisons.
complex64/128 alignment has changed
The memory alignment of complex types is now the same as a Cstruct composed of
two floating point values, while before it was equal to the size of the type.
For many users (for instance on x64/unix/gcc) this means that complex64 is now
4byte aligned instead of 8byte aligned. An important consequence is that
aligned structured dtypes may now have a different size. For instance,
np.dtype('c8,u1', align=True)
used to have an itemsize of 16 (on x64/gcc)
but now it is 12.
More in detail, the complex64 type now has the same alignment as a Cstruct
struct {float r, i;}
, according to the compiler used to compile numpy, and
similarly for the complex128 and complex256 types.
nd_grid len removal
len(np.mgrid)
and len(np.ogrid)
are now considered nonsensical
and raise a TypeError
.
np.unravel_index
now accepts shape
keyword argument
Previously, only the dims
keyword argument was accepted
for specification of the shape of the array to be used
for unraveling. dims
remains supported, but is now deprecated.
multifield views return a view instead of a copy
Indexing a structured array with multiple fields, e.g., arr[['f1', 'f3']]
,
returns a view into the original array instead of a copy. The returned view
will often have extra padding bytes corresponding to intervening fields in the
original array, unlike before, which will affect code such as
arr[['f1', 'f3']].view('float64')
. This change has been planned since numpy
1.7. Operations hitting this path have emitted FutureWarnings
since then.
Additional FutureWarnings
about this change were added in 1.12.
To help users update their code to account for these changes, a number of
functions have been added to the numpy.lib.recfunctions
module which
safely allow such operations. For instance, the code above can be replaced
with structured_to_unstructured(arr[['f1', 'f3']], dtype='float64')
.
See the "accessing multiple fields" section of the
user guide <https://docs.scipy.org/doc/numpy/user/basics.rec.html#accessingmultiplefields>
__.
C API changes
The :c:data:NPY_API_VERSION
was incremented to 0x0000D, due to the addition
of:
 :c:member:
PyUFuncObject.core_dim_flags
 :c:member:
PyUFuncObject.core_dim_sizes
 :c:member:
PyUFuncObject.identity_value
 :c:function:
PyUFunc_FromFuncAndDataAndSignatureAndIdentity
New Features
Integrated squared error (ISE) estimator added to histogram
This method (bins='stone'
) for optimizing the bin number is a
generalization of the Scott's rule. The Scott's rule assumes the distribution
is approximately Normal, while the ISE_ is a nonparametric method based on
crossvalidation.
.. _ISE: https://en.wikipedia.org/wiki/Histogram#Minimizing_crossvalidation_estimated_squared_error
max_rows
keyword added for np.loadtxt
New keyword max_rows
in numpy.loadtxt
sets the maximum rows of the
content to be read after skiprows
, as in numpy.genfromtxt
.
modulus operator support added for np.timedelta64
operands
The modulus (remainder) operator is now supported for two operands
of type np.timedelta64
. The operands may have different units
and the return value will match the type of the operands.
Improvements
nocopy pickling of numpy arrays
Up to protocol 4, numpy array pickling created 2 spurious copies of the data
being serialized. With pickle protocol 5, and the PickleBuffer
API, a
large variety of numpy arrays can now be serialized without any copy using
outofband buffers, and with one less copy using inband buffers. This
results, for large arrays, in an up to 66% drop in peak memory usage.
build shell independence
NumPy builds should no longer interact with the host machine
shell directly. exec_command
has been replaced with
subprocess.check_output
where appropriate.
np.polynomial.Polynomial
classes render in LaTeX in Jupyter notebooks
When used in a frontend that supports it, Polynomial
instances are now
rendered through LaTeX. The current format is experimental, and is subject to
change.
randint
and choice
now work on empty distributions
Even when no elements needed to be drawn, np.random.randint
and
np.random.choice
raised an error when the arguments described an empty
distribution. This has been fixed so that e.g.
np.random.choice([], 0) == np.array([], dtype=float64)
.
linalg.lstsq
, linalg.qr
, and linalg.svd
now work with empty arrays
Previously, a LinAlgError
would be raised when an empty matrix/empty
matrices (with zero rows and/or columns) is/are passed in. Now outputs of
appropriate shapes are returned.
Chain exceptions to give better error messages for invalid PEP3118 format strings
This should help track down problems.
Einsum optimization path updates and efficiency improvements
Einsum was synchronized with the current upstream work.
numpy.angle
and numpy.expand_dims
now work on ndarray
subclasses
In particular, they now work for masked arrays.
NPY_NO_DEPRECATED_API
compiler warning suppression
Setting NPY_NO_DEPRECATED_API
to a value of 0 will suppress the current compiler
warnings when the deprecated numpy API is used.
np.diff
Added kwargs prepend and append
New kwargs prepend
and append
, allow for values to be inserted on
either end of the differences. Similar to options for ediff1d
. Now the
inverse of cumsum
can be obtained easily via prepend=0
.
ARM support updated
Support for ARM CPUs has been updated to accommodate 32 and 64 bit targets,
and also big and little endian byte ordering. AARCH32 memory alignment issues
have been addressed. CI testing has been expanded to include AARCH64 targets
via the services of shippable.com.
Appending to build flags
numpy.distutils
has always overridden rather than appended to LDFLAGS
and
other similar such environment variables for compiling Fortran extensions.
Now, if the NPY_DISTUTILS_APPEND_FLAGS
environment variable is set to 1, the
behavior will be appending. This applied to: LDFLAGS
, F77FLAGS
,
F90FLAGS
, FREEFLAGS
, FOPT
, FDEBUG
, and FFLAGS
. See gh11525 for more
details.
Generalized ufunc signatures now allow fixedsize dimensions
By using a numerical value in the signature of a generalized ufunc, one can
indicate that the given function requires input or output to have dimensions
with the given size. E.g., the signature of a function that converts a polar
angle to a twodimensional cartesian unit vector would be ()>(2)
; that
for one that converts two spherical angles to a threedimensional unit vector
would be (),()>(3)
; and that for the cross product of two
threedimensional vectors would be (3),(3)>(3)
.
Note that to the elementary function these dimensions are not treated any
differently from variable ones indicated with a name starting with a letter;
the loop still is passed the corresponding size, but it can now count on that
size being equal to the fixed one given in the signature.
Generalized ufunc signatures now allow flexible dimensions
Some functions, in particular numpy's implementation of @
as matmul
,
are very similar to generalized ufuncs in that they operate over core
dimensions, but one could not present them as such because they were able to
deal with inputs in which a dimension is missing. To support this, it is now
allowed to postfix a dimension name with a question mark to indicate that the
dimension does not necessarily have to be present.
With this addition, the signature for matmul
can be expressed as
(m?,n),(n,p?)>(m?,p?)
. This indicates that if, e.g., the second operand
has only one dimension, for the purposes of the elementary function it will be
treated as if that input has core shape (n, 1)
, and the output has the
corresponding core shape of (m, 1)
. The actual output array, however, has
the flexible dimension removed, i.e., it will have shape (..., m)
.
Similarly, if both arguments have only a single dimension, the inputs will be
presented as having shapes (1, n)
and (n, 1)
to the elementary
function, and the output as (1, 1)
, while the actual output array returned
will have shape ()
. In this way, the signature allows one to use a
single elementary function for four related but different signatures,
(m,n),(n,p)>(m,p)
, (n),(n,p)>(p)
, (m,n),(n)>(m)
and
(n),(n)>()
.
np.clip
and the clip
method check for memory overlap
The out
argument to these functions is now always tested for memory overlap
to avoid corrupted results when memory overlap occurs.
New value unscaled
for option cov
in ``np.polyfit''
A further possible value has been added to the cov
parameter of the
np.polyfit
function. With cov='unscaled'
the scaling of the covariance
matrix is disabled completely (similar to setting absolute_sigma=True'' in
scipy.optimize.curve_fit``). This would be useful in occasions, where the
weights are given by 1/sigma with sigma being the (known) standard errors of
(Gaussian distributed) data points, in which case the unscaled matrix is
already a correct estimate for the covariance matrix.
Detailed docstrings for scalar numeric types
The help
function, when applied to numeric types such as numpy.intc
,
numpy.int_
, and numpy.longlong
, now lists all of the aliased names for that
type, distinguishing between platform dependent and independent aliases.
__module__
attribute now points to public modules
The __module__
attribute on most NumPy functions has been updated to refer
to the preferred public module from which to access a function, rather than
the module in which the function happens to be defined. This produces more
informative displays for functions in tools such as IPython, e.g., instead of
<function 'numpy.core.fromnumeric.sum'>
you now see
<function 'numpy.sum'>
.
Large allocations marked as suitable for transparent hugepages
On systems that support transparent hugepages over the madvise system call
numpy now marks that large memory allocations can be backed by hugepages which
reduces page fault overhead and can in some fault heavy cases improve
performance significantly. On Linux the setting for huge pages to be used,
/sys/kernel/mm/transparent_hugepage/enabled
, must be at least madvise
.
Systems which already have it set to always
will not see much difference as
the kernel will automatically use huge pages where appropriate.
Users of very old Linux kernels (~3.x and older) should make sure that
/sys/kernel/mm/transparent_hugepage/defrag
is not set to always
to avoid
performance problems due concurrency issues in the memory defragmentation.
Alpine Linux (and other musl c library distros) support
We now default to use fenv.h
for floating point status error reporting.
Previously we had a broken default that sometimes would not report underflow,
overflow, and invalid floating point operations. Now we can support nonglibc
distrubutions like Alpine Linux as long as they ship fenv.h
.
Speedup np.block
for large arrays
Large arrays (greater than 512 * 512
) now use a blocking algorithm based on
copying the data directly into the appropriate slice of the resulting array.
This results in significant speedups for these large arrays, particularly for
arrays being blocked along more than 2 dimensions.
arr.ctypes.data_as(...)
holds a reference to arr
Previously the caller was responsible for keeping the array alive for the
lifetime of the pointer.
Speedup ``np.take`` for readonly arrays

The implementation of ``np.take`` no longer makes an unnecessary copy of the
source array when its ``writeable`` flag is set to ``False``.
Support pathlike objects for more functions

The ``np.core.records.fromfile`` function now supports ``pathlib.Path``
and other pathlike objects in addition to a file object. Furthermore, the
``np.load`` function now also supports pathlike objects when using memory
mapping (``mmap_mode`` keyword argument).
Better behaviour of ufunc identities during reductions

Universal functions have an ``.identity`` which is used when ``.reduce`` is
called on an empty axis.
As of this release, the logical binary ufuncs, `logical_and`, `logical_or`,
and `logical_xor`, now have ``identity`` s of type `bool`, where previously they
were of type `int`. This restores the 1.14 behavior of getting ``bool`` s when
reducing empty object arrays with these ufuncs, while also keeping the 1.15
behavior of getting ``int`` s when reducing empty object arrays with arithmetic
ufuncs like ``add`` and ``multiply``.
Additionally, `logaddexp` now has an identity of ``inf``, allowing it to be
called on empty sequences, where previously it could not be.
This is possible thanks to the new
:c:function:`PyUFunc_FromFuncAndDataAndSignatureAndIdentity`, which allows
arbitrary values to be used as identities now.
Improved conversion from ctypes objects

Numpy has always supported taking a value or type from ``ctypes`` and
converting it into an array or dtype, but only behaved correctly for simpler
types. As of this release, this caveat is lifted  now:
* The ``_pack_`` attribute of ``ctypes.Structure``, used to emulate C's
``__attribute__((packed))``, is respected.
* Endianness of all ctypes objects is preserved
* ``ctypes.Union`` is supported
* Nonrepresentable constructs raise exceptions, rather than producing
dangerously incorrect results:
* Bitfields are no longer interpreted as subarrays
* Pointers are no longer replaced with the type that they point to
A new ``ndpointer.contents`` member

This matches the ``.contents`` member of normal ctypes arrays, and can be used
to construct an ``np.array`` around the pointers contents. This replaces
``np.array(some_nd_pointer)``, which stopped working in 1.15. As a side effect
of this change, ``ndpointer`` now supports dtypes with overlapping fields and
padding.
``matmul`` is now a ``ufunc``

`numpy.matmul` is now a ufunc which means that both the function and the
``__matmul__`` operator can now be overridden by ``__array_ufunc__``. Its
implementation has also changed. It uses the same BLAS routines as
`numpy.dot`, ensuring its performance is similar for large matrices.
Start and stop arrays for ``linspace``, ``logspace`` and ``geomspace``

These functions used to be limited to scalar stop and start values, but can
now take arrays, which will be properly broadcast and result in an output
which has one axis prepended. This can be used, e.g., to obtain linearly
interpolated points between sets of points.
CI extended with additional services

We now use additional free CI services, thanks to the companies that provide:
* Codecoverage testing via codecov.io
* Arm testing via shippable.com
* Additional test runs on azure pipelines
These are in addition to our continued use of travis, appveyor (for wheels) and
LGTM
Changes
=======
Comparison ufuncs will now error rather than return NotImplemented

Previously, comparison ufuncs such as ``np.equal`` would return
`NotImplemented` if their arguments had structured dtypes, to help comparison
operators such as ``__eq__`` deal with those. This is no longer needed, as the
relevant logic has moved to the comparison operators proper (which thus do
continue to return `NotImplemented` as needed). Hence, like all other ufuncs,
the comparison ufuncs will now error on structured dtypes.
Positive will now raise a deprecation warning for nonnumerical arrays

Previously, ``+array`` unconditionally returned a copy. Now, it will
raise a ``DeprecationWarning`` if the array is not numerical (i.e.,
if ``np.positive(array)`` raises a ``TypeError``. For ``ndarray``
subclasses that override the default ``__array_ufunc__`` implementation,
the ``TypeError`` is passed on.
``NDArrayOperatorsMixin`` now implements matrix multiplication

Previously, ``np.lib.mixins.NDArrayOperatorsMixin`` did not implement the
special methods for Python's matrix multiplication operator (``@``). This has
changed now that ``matmul`` is a ufunc and can be overridden using
``__array_ufunc__``.
The scaling of the covariance matrix in ``np.polyfit`` is different

So far, ``np.polyfit`` used a nonstandard factor in the scaling of the the
covariance matrix. Namely, rather than using the standard ``chisq/(MN)``, it
scaled it with ``chisq/(MN2)`` where M is the number of data points and N is the
number of parameters. This scaling is inconsistent with other fitting programs
such as e.g. ``scipy.optimize.curve_fit`` and was changed to ``chisq/(MN)``.
``maximum`` and ``minimum`` no longer emit warnings

As part of code introduced in 1.10, ``float32`` and ``float64`` set invalid
float status when a Nan is encountered in `numpy.maximum` and `numpy.minimum`,
when using SSE2 semantics. This caused a `RuntimeWarning` to sometimes be
emitted. In 1.15 we fixed the inconsistencies which caused the warnings to
become more conspicuous. Now no warnings will be emitted.
Umath and multiarray cextension modules merged into a single module

The two modules were merged, according to `NEP 15`_. Previously `np.core.umath`
and `np.core.multiarray` were seperate cextension modules. They are now python
wrappers to the single `np.core/_multiarray_math` cextension module.
.. _`NEP 15` : http://www.numpy.org/neps/nep0015mergemultiarrayumath.html
``getfield`` validity checks extended

`numpy.ndarray.getfield` now checks the dtype and offset arguments to prevent
accessing invalid memory locations.
NumPy functions now support overrides with ``__array_function__``

It is now possible to override the implementation of almost all NumPy functions
on nonNumPy arrays by defining a ``__array_function__`` method, as described
in `NEP 18`_. The sole exception are functions for explicitly casting to NumPy
arrays such as ``np.array``. As noted in the NEP, this feature remains
experimental and the details of how to implement such overrides may change in
the future.
.. _`NEP 15` : http://www.numpy.org/neps/nep0015mergemultiarrayumath.html
.. _`NEP 18` : http://www.numpy.org/neps/nep0018arrayfunctionprotocol.html
Arrays based off readonly buffers cannot be set ``writeable``

We now disallow setting the ``writeable`` flag True on arrays created
from ``fromstring(readonlybuffer)``.
Checksums
=========
MD5

4cfd167c553c15cbffacad828e37fa1b numpy1.16.0rc1cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
fc7acd76d8f2f5b69af7b14435ff6e5f numpy1.16.0rc1cp27cp27mmanylinux1_i686.whl
d3d05c0ade6bd5ed26c0d2f045cc2545 numpy1.16.0rc1cp27cp27mmanylinux1_x86_64.whl
78acdc2844f3711e670b5b0d6112fd46 numpy1.16.0rc1cp27cp27mwin32.whl
e24b99a1b2584e5c89a8bb25b755a229 numpy1.16.0rc1cp27cp27mwin_amd64.whl
28df62b2e4162a0be66a65b0405d2974 numpy1.16.0rc1cp27cp27mumanylinux1_i686.whl
443d09ffded8b4f52d4158e7e53d5e02 numpy1.16.0rc1cp27cp27mumanylinux1_x86_64.whl
4709d3b87b56e8d706baf998a746baa0 numpy1.16.0rc1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
e3895e61d89db8219e01e263f342c91b numpy1.16.0rc1cp35cp35mmanylinux1_i686.whl
b0e7842ece6d07568341ec8c4e850466 numpy1.16.0rc1cp35cp35mmanylinux1_x86_64.whl
4f5de37348d5ab67661277a713e26317 numpy1.16.0rc1cp35cp35mwin32.whl
a629f86585a6a7f22afdcc953df543b5 numpy1.16.0rc1cp35cp35mwin_amd64.whl
69860375de9a74698322e9608d039e24 numpy1.16.0rc1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d75b3ec49d27915ea9ee0866a45b1606 numpy1.16.0rc1cp36cp36mmanylinux1_i686.whl
b103bc43115f9c5760e0f86de7191682 numpy1.16.0rc1cp36cp36mmanylinux1_x86_64.whl
b3c6cbd582b502b6069b9a85a4b52d3f numpy1.16.0rc1cp36cp36mwin32.whl
efde86e04767a20af7d7b671aa43a74e numpy1.16.0rc1cp36cp36mwin_amd64.whl
0da1b6b0fddea9eebcc6d06c161b109d numpy1.16.0rc1cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
439fefdac5de6e80c0213aa5dd3aed83 numpy1.16.0rc1cp37cp37mmanylinux1_i686.whl
a238bdbdaece30f8bdd68cb17b8fc0f3 numpy1.16.0rc1cp37cp37mmanylinux1_x86_64.whl
f27e4791cc0696451572350a64fc3509 numpy1.16.0rc1cp37cp37mwin32.whl
b90d6fefb38650b5a343171dfabe1e38 numpy1.16.0rc1cp37cp37mwin_amd64.whl
acfd5138cd9ba5a0ee434c112866e1d1 numpy1.16.0rc1.tar.gz
f9a9356b066174b1375d509d7fdf03a6 numpy1.16.0rc1.zip
SHA256

1d94a5649fb8412784d9edda539b266801ee87fc89b812ebf5ec0fdab96444a3 numpy1.16.0rc1cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
f901fa2232562abf9250e4a86d2b50f008b2fe0f9d91bc1ca6a3ffd17c81d2a4 numpy1.16.0rc1cp27cp27mmanylinux1_i686.whl
4c725b6557eb043b963a8b4b5da560fec4500b5e2a9c4794adb408de838aeb94 numpy1.16.0rc1cp27cp27mmanylinux1_x86_64.whl
867ed40b1bebb50f8b060a1b2a76c227a436a7d9fc73bf873dbc8e79862a56af numpy1.16.0rc1cp27cp27mwin32.whl
70279fa434b878692c15bdb9b3376765ff63a91d5f1f6e5973eb34b0bddd7aa5 numpy1.16.0rc1cp27cp27mwin_amd64.whl
c5db80fc344977d3df5435ded1a8ce05719283aeacaaf60a818a4baf63c756e4 numpy1.16.0rc1cp27cp27mumanylinux1_i686.whl
026a3b7c46e01a736bdf27853ce2a4f56a4feb3147ff879dbd463ed4da0a511b numpy1.16.0rc1cp27cp27mumanylinux1_x86_64.whl
2a17337e1980e753d4bac3dd4859bc1300e995ddf05fc09828b8d60d932ce4d3 numpy1.16.0rc1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
0efbe5f61044e7b0ed5583380aca26995c10cd625266f09b2d6ccef243499f2e numpy1.16.0rc1cp35cp35mmanylinux1_i686.whl
60dd924257899a44d55a7e548aba2a41c12e5d963b900ec138e0b15f3e6f3ef5 numpy1.16.0rc1cp35cp35mmanylinux1_x86_64.whl
078efe4fc53079acb4a70f378a1fbf97f22a1f864321788ae1fd9ca4c952bb10 numpy1.16.0rc1cp35cp35mwin32.whl
3dd416deba0e6b734e653961354ac2bee2888c832835304853b14299a8c3169a numpy1.16.0rc1cp35cp35mwin_amd64.whl
ff9859fffc4a03b196d742fe683684921e3d3819aa97d935b92d573b7ff0bf7b numpy1.16.0rc1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ad0a948011cafe20323944aea7570cea77c3659cf970ee4e94993a75fdf1bf3a numpy1.16.0rc1cp36cp36mmanylinux1_i686.whl
b53714c56ee9a1f1b46f7558ca1aa005704dba35334ff61288390be01b96b3b0 numpy1.16.0rc1cp36cp36mmanylinux1_x86_64.whl
e299aaed551f16c3822e261adc6d5685ad7067536ae6af00e53837b637dc1270 numpy1.16.0rc1cp36cp36mwin32.whl
9c76c0f114b729606081b0e4c49d2f7887946004872576f51b8bd50461f4110b numpy1.16.0rc1cp36cp36mwin_amd64.whl
bcf57e4694e32d7ebb9402cd3fcd9c4fd913a29f372fbefc8edd675a32262558 numpy1.16.0rc1cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c953969e4b9a65998be1d7e895613be77bd42d438b54f9ce8c2453616ca8f5c9 numpy1.16.0rc1cp37cp37mmanylinux1_i686.whl
09d327e93f2b13dfbfd6a7c2534441478896a24e9521f59f1ec64c775eff0066 numpy1.16.0rc1cp37cp37mmanylinux1_x86_64.whl
ff73c826d81442f00b38360e52618d94f811c8db9047546d135c0e56117f3812 numpy1.16.0rc1cp37cp37mwin32.whl
f735dad0d72598ca0e19f50a0891e83e496288038628addd86c05650fab49181 numpy1.16.0rc1cp37cp37mwin_amd64.whl
90aa92d9c1bf0cbde34c0eb3964b87d15f2a6de01da99af18615925e3b7d8a05 numpy1.16.0rc1.tar.gz
6e638a8d56af542aebf625efdacdfb555943c08044795ee7550789407f5b905c numpy1.16.0rc1.zip
charris released this
Assets
6
==========================
NumPy 1.15.4 Release Notes
This is a bugfix release for bugs and regressions reported following the 1.15.3
release. The Python versions supported by this release are 2.7, 3.43.7. The
wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg
problems reported for NumPy 1.14.
Compatibility Note
The NumPy 1.15.x OS X wheels released on PyPI no longer contain 32bit
binaries. That will also be the case in future releases. See
#11625 <https://github.com/numpy/numpy/issues/11625>
__ for the related
discussion. Those needing 32bit support should look elsewhere or build
from source.
Contributors
A total of 4 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Charles Harris
 Matti Picus
 Sebastian Berg
 bbbbbbbbba +
Pull requests merged
A total of 4 pull requests were merged for this release.
 #12296: BUG: Dealloc cached buffer info
 #12297: BUG: Fix fill value in masked array '==' and '!=' ops.
 #12307: DOC: Correct the default value of
optimize
innumpy.einsum
 #12320: REL: Prepare for the NumPy 1.15.4 release
Checksums
MD5
277c501cfcc67767d73d83a53ba69ecb numpy1.15.4cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
4c687d8cd7833e0b549d4a20905f29a2 numpy1.15.4cp27cp27mmanylinux1_i686.whl
988d0b321d0b7576b105528fc948ddc3 numpy1.15.4cp27cp27mmanylinux1_x86_64.whl
ea6bd39d05539847a0ebb12ff955251a numpy1.15.4cp27cp27mumanylinux1_i686.whl
8ef2d1ea4571cdd0e7e8dfd5128436b4 numpy1.15.4cp27cp27mumanylinux1_x86_64.whl
b550d4cc012623a0c38f1392e08f4805 numpy1.15.4cp27nonewin32.whl
cb38e4778d9db33199dc7bb6a69ce089 numpy1.15.4cp27nonewin_amd64.whl
fa0acf5b2f852454346df5486a4ff4d9 numpy1.15.4cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a7614f6318899aa1bfbc337232c4647f numpy1.15.4cp34cp34mmanylinux1_i686.whl
ae16e02274996ff926a30f23f6d6d7e8 numpy1.15.4cp34cp34mmanylinux1_x86_64.whl
c1e1f381de7abc96509d4c5463903755 numpy1.15.4cp34nonewin32.whl
c269c8f2fce6cefdffe5e3821fc04fb5 numpy1.15.4cp34nonewin_amd64.whl
8906282c374b9b008c5c6401e5dc750b numpy1.15.4cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
537949e404ecc5814cb0db534bdfef36 numpy1.15.4cp35cp35mmanylinux1_i686.whl
3b10a2fcf8610bbbfe08161e1d9d176e numpy1.15.4cp35cp35mmanylinux1_x86_64.whl
b67621a1c9b8dcac707ca22055629e9f numpy1.15.4cp35nonewin32.whl
25b45b69d624cb07a8c05a5f82779b0a numpy1.15.4cp35nonewin_amd64.whl
76ed46a4d4e9cdb7076bf1359d9df1d4 numpy1.15.4cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
b98cbad7770856dc12c827dca7c201b4 numpy1.15.4cp36cp36mmanylinux1_i686.whl
6293fa6db83849aab3a8b1a606cf3d03 numpy1.15.4cp36cp36mmanylinux1_x86_64.whl
21df485f92248c13cab3838762d717f6 numpy1.15.4cp36nonewin32.whl
c9cf7a267f8d2f57dc6384cc8b9f5acf numpy1.15.4cp36nonewin_amd64.whl
1f6990e094c6b2bb47c6a528ac7b1263 numpy1.15.4cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
e79239cd9a3ce3cbfa5e7345bfb2ca56 numpy1.15.4cp37cp37mmanylinux1_i686.whl
fc046ba978ef4dd0556af09643c57d30 numpy1.15.4cp37cp37mmanylinux1_x86_64.whl
6291159933eb5a7f9c0bf28ae9707739 numpy1.15.4cp37nonewin32.whl
6097910d675f9e81d5d131b91a6c5c61 numpy1.15.4cp37nonewin_amd64.whl
b3626fec2f39ab01cad8bbb63a103742 numpy1.15.4.tar.gz
219ac537d12cf06ed14f478662096ebc numpy1.15.4.zip
SHA256
18e84323cdb8de3325e741a7a8dd4a82db74fde363dce32b625324c7b32aa6d7 numpy1.15.4cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
154c35f195fd3e1fad2569930ca51907057ae35e03938f89a8aedae91dd1b7c7 numpy1.15.4cp27cp27mmanylinux1_i686.whl
4d8d3e5aa6087490912c14a3c10fbdd380b40b421c13920ff468163bc50e016f numpy1.15.4cp27cp27mmanylinux1_x86_64.whl
c857ae5dba375ea26a6228f98c195fec0898a0fd91bcf0e8a0cae6d9faf3eca7 numpy1.15.4cp27cp27mumanylinux1_i686.whl
0df89ca13c25eaa1621a3f09af4c8ba20da849692dcae184cb55e80952c453fb numpy1.15.4cp27cp27mumanylinux1_x86_64.whl
36e36b6868e4440760d4b9b44587ea1dc1f06532858d10abba98e851e154ca70 numpy1.15.4cp27nonewin32.whl
99d59e0bcadac4aa3280616591fb7bcd560e2218f5e31d5223a2e12a1425d495 numpy1.15.4cp27nonewin_amd64.whl
edfa6fba9157e0e3be0f40168eb142511012683ac3dc82420bee4a3f3981b30e numpy1.15.4cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
b261e0cb0d6faa8fd6863af26d30351fd2ffdb15b82e51e81e96b9e9e2e7ba16 numpy1.15.4cp34cp34mmanylinux1_i686.whl
db9814ff0457b46f2e1d494c1efa4111ca089e08c8b983635ebffb9c1573361f numpy1.15.4cp34cp34mmanylinux1_x86_64.whl
df04f4bad8a359daa2ff74f8108ea051670cafbca533bb2636c58b16e962989e numpy1.15.4cp34nonewin32.whl
7da99445fd890206bfcc7419f79871ba8e73d9d9e6b82fe09980bc5bb4efc35f numpy1.15.4cp34nonewin_amd64.whl
56994e14b386b5c0a9b875a76d22d707b315fa037affc7819cda08b6d0489756 numpy1.15.4cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ecf81720934a0e18526177e645cbd6a8a21bb0ddc887ff9738de07a1df5c6b61 numpy1.15.4cp35cp35mmanylinux1_i686.whl
cf5bb4a7d53a71bb6a0144d31df784a973b36d8687d615ef6a7e9b1809917a9b numpy1.15.4cp35cp35mmanylinux1_x86_64.whl
561ef098c50f91fbac2cc9305b68c915e9eb915a74d9038ecf8af274d748f76f numpy1.15.4cp35nonewin32.whl
4f41fd159fba1245e1958a99d349df49c616b133636e0cf668f169bce2aeac2d numpy1.15.4cp35nonewin_amd64.whl
416a2070acf3a2b5d586f9a6507bb97e33574df5bd7508ea970bbf4fc563fa52 numpy1.15.4cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
24fd645a5e5d224aa6e39d93e4a722fafa9160154f296fd5ef9580191c755053 numpy1.15.4cp36cp36mmanylinux1_i686.whl
23557bdbca3ccbde3abaa12a6e82299bc92d2b9139011f8c16ca1bb8c75d1e95 numpy1.15.4cp36cp36mmanylinux1_x86_64.whl
b1853df739b32fa913cc59ad9137caa9cc3d97ff871e2bbd89c2a2a1d4a69451 numpy1.15.4cp36nonewin32.whl
73a1f2a529604c50c262179fcca59c87a05ff4614fe8a15c186934d84d09d9a5 numpy1.15.4cp36nonewin_amd64.whl
1e8956c37fc138d65ded2d96ab3949bd49038cc6e8a4494b1515b0ba88c91565 numpy1.15.4cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a4cc09489843c70b22e8373ca3dfa52b3fab778b57cf81462f1203b0852e95e3 numpy1.15.4cp37cp37mmanylinux1_i686.whl
4a22dc3f5221a644dfe4a63bf990052cc674ef12a157b1056969079985c92816 numpy1.15.4cp37cp37mmanylinux1_x86_64.whl
b1f44c335532c0581b77491b7715a871d0dd72e97487ac0f57337ccf3ab3469b numpy1.15.4cp37nonewin32.whl
a61dc29cfca9831a03442a21d4b5fd77e3067beca4b5f81f1a89a04a71cf93fa numpy1.15.4cp37nonewin_amd64.whl
766e09248298e3ad4ae4a805159f358610bbe7dcc7b4a14e5df2128c05655b80 numpy1.15.4.tar.gz
3d734559db35aa3697dadcea492a423118c5c55d176da2f3be9c98d4803fc2a7 numpy1.15.4.zip
charris released this
Assets
6
==========================
NumPy 1.15.3 Release Notes
This is a bugfix release for bugs and regressions reported following the 1.15.2
release. The Python versions supported by this release are 2.7, 3.43.7. The
wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg
problems reported for NumPy 1.14.
Compatibility Note
The NumPy 1.15.x OS X wheels released on PyPI no longer contain 32bit
binaries. That will also be the case in future releases. See
#11625 <https://github.com/numpy/numpy/issues/11625>
__ for the related
discussion. Those needing 32bit support should look elsewhere or build
from source.
Contributors
A total of 7 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Allan Haldane
 Charles Harris
 Jeroen Demeyer
 Kevin Sheppard
 Matthew Bowden +
 Matti Picus
 Tyler Reddy
Pull requests merged
A total of 12 pull requests were merged for this release.
 #12080: MAINT: Blacklist some MSVC complex functions.
 #12083: TST: Add azure CI testing to 1.15.x branch.
 #12084: BUG: test_path() now uses Path.resolve()
 #12085: TST, MAINT: Fix some failing tests on azurepipelines mac and...
 #12187: BUG: Fix memory leak in mapping.c
 #12188: BUG: Allow boolean subtract in histogram
 #12189: BUG: Fix inplace permutation
 #12190: BUG: limit default for get_num_build_jobs() to 8
 #12191: BUG: OBJECT_to_* should check for errors
 #12192: DOC: Prepare for NumPy 1.15.3 release.
 #12237: BUG: Fix MaskedArray fill_value type conversion.
 #12238: TST: Backport azurepipeline testing fixes for Mac
Checksums
MD5
fc1ae8356a65804d02e5c7d9c1c07f65 numpy1.15.3cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
85faf750ff68d76dad812eb6410cc417 numpy1.15.3cp27cp27mmanylinux1_i686.whl
6d92d50f6235501475b642fc35212ad7 numpy1.15.3cp27cp27mmanylinux1_x86_64.whl
f7430f4ca8d179a9e34072c0d1c1ca9c numpy1.15.3cp27cp27mumanylinux1_i686.whl
ebd394af280ee41b55add821f84dc180 numpy1.15.3cp27cp27mumanylinux1_x86_64.whl
3bac2fd14dc19c20a0ced77bb8c395de numpy1.15.3cp27nonewin32.whl
da69a44d0292379a261f1bf33b2afe3e numpy1.15.3cp27nonewin_amd64.whl
c021f69eeed541202947d11c0ec3c2f4 numpy1.15.3cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
4c2a4a7685c7431937aa0b5e6425b7de numpy1.15.3cp34cp34mmanylinux1_i686.whl
2eb4e845844b91853743bb4d4316e237 numpy1.15.3cp34cp34mmanylinux1_x86_64.whl
47b03a3e34152c7e1ae7056f672674a5 numpy1.15.3cp34nonewin32.whl
64ebc4e0a722e5a6f1bd697309c3f951 numpy1.15.3cp34nonewin_amd64.whl
f7a9b021b45372fa39e009ae396d6108 numpy1.15.3cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
7a7578978757cb69507ab680a2f9b8f3 numpy1.15.3cp35cp35mmanylinux1_i686.whl
52d5bd16e06561e735cb7f461370e697 numpy1.15.3cp35cp35mmanylinux1_x86_64.whl
c1421e59a425b6cd1307a45612c4911f numpy1.15.3cp35nonewin32.whl
2ea2c18feb7f92ebd6b64261265d1b7f numpy1.15.3cp35nonewin_amd64.whl
ed7b1d79ad554f59c65b6c2d15924624 numpy1.15.3cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
bece3ef7768bfa7b354b8d1014aa85b3 numpy1.15.3cp36cp36mmanylinux1_i686.whl
4ed669d22449b6e1759b320ff9b37eb7 numpy1.15.3cp36cp36mmanylinux1_x86_64.whl
a3c7ce17e1fdf009950f2f41adcde29b numpy1.15.3cp36nonewin32.whl
890f23c488a00a2c64578bcb3737533e numpy1.15.3cp36nonewin_amd64.whl
c3a332b97d53c60d8c129a1a8e062652 numpy1.15.3cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
096f70a3a147a596a9317ce8ac9bf1bd numpy1.15.3cp37cp37mmanylinux1_i686.whl
2317122b49e79ffad91250a428ca54f9 numpy1.15.3cp37cp37mmanylinux1_x86_64.whl
2719106f42758fd285bce25fa3c1a78e numpy1.15.3cp37nonewin32.whl
9a692a2bbcbaabf98f19fbd9c0c5c163 numpy1.15.3cp37nonewin_amd64.whl
274dd6db3a13c6b6c47a05b5365e1749 numpy1.15.3.tar.gz
7f1b9e521c2a662cecf3708026e8bdad numpy1.15.3.zip
SHA256
3c7959f750b54b445f14962a3ddc41b9eadbab00b86da55fbb1967b2b79aad10 numpy1.15.3cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
9d1598573d310104acb90377f0a8c2319f737084689f5eb18012becaf345cda5 numpy1.15.3cp27cp27mmanylinux1_i686.whl
a988db28f54e104a01e8573ceb6f28202b4c15635b1450b2e3b2b822c6564f9b numpy1.15.3cp27cp27mmanylinux1_x86_64.whl
3d8f9273c763a139a99e65c2a3c10f1109df30bedae7f011b10d95c538364704 numpy1.15.3cp27cp27mumanylinux1_i686.whl
919f65e0732195474897b1cafefb4d4e7c2bb8174a725e506b62e9096e4df28d numpy1.15.3cp27cp27mumanylinux1_x86_64.whl
d263f8f14f2da0c079c0297e829e550d8f2c4e0ffef215506bd1d0ddd2bff3de numpy1.15.3cp27nonewin32.whl
b12fe6f31babb9477aa0f9692730654b3ee0e71f33b4568170dfafd439caf0a2 numpy1.15.3cp27nonewin_amd64.whl
febd31cd0d2fd2509ca2ec53cb339f8bf593c1bd245b9fc55c1917a68532a0af numpy1.15.3cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d0f36a24cf8061a2c03e151be3418146717505b9b4ec17502fa3bbdb04ec1431 numpy1.15.3cp34cp34mmanylinux1_i686.whl
63bca71691339d2d6f8a7c970821f2b12098a53afccc0190d4e1555e75e5223a numpy1.15.3cp34cp34mmanylinux1_x86_64.whl
b7599ff4acd23f5de983e3aec772153b1043e131487a5c6ad0f94b41a828877a numpy1.15.3cp34nonewin32.whl
c9f4dafd6065c4c782be84cd67ceeb9b1d4380af60a7af32be10ebecd723385e numpy1.15.3cp34nonewin_amd64.whl
32a07241cb624e104b88b08dea2851bf4ec5d65a1f599d7735041ced7171fd7a numpy1.15.3cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
8bc4b92a273659e44ca3f3a2f8786cfa39d8302223bcfe7df794429c63d5f5a1 numpy1.15.3cp35cp35mmanylinux1_i686.whl
2f5ebc7a04885c7d69e5daa05208faef4db7f1ae6a99f4d36962df8cd54cdc76 numpy1.15.3cp35cp35mmanylinux1_x86_64.whl
ce3622b73ccd844ba301c1aea65d36cf9d8331e7c25c16b1725d0f14db99aaf4 numpy1.15.3cp35nonewin32.whl
9fff90c88bfaad2901be50453d5cd7897a826c1d901f0654ee1d73ab3a48cd18 numpy1.15.3cp35nonewin_amd64.whl
032df9b6571c5f1d41ea6f6a189223208cb488990373aa686aca55570fcccb42 numpy1.15.3cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
866a7c8774ccc7d603667fad95456b4cf56d79a2bb5a7648ac9f0082e0b9416e numpy1.15.3cp36cp36mmanylinux1_i686.whl
7ae9c3baff3b989859c88e0168ad10902118595b996bf781eaf011bb72428798 numpy1.15.3cp36cp36mmanylinux1_x86_64.whl
d8837ff272800668aabdfe70b966631914b0d6513aed4fc1b1428446f771834d numpy1.15.3cp36nonewin32.whl
fa337b6bd5fe2b8c4e705f4102186feb9985de9bb8536d32d5129a658f1789e0 numpy1.15.3cp36nonewin_amd64.whl
2aa0910eaeb603b1a5598193cc3bc8eacf1baf6c95cbc3955eb8e15fa380c133 numpy1.15.3cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ef694fe72a3995aa778a5095bda946e0d31f7efabd5e8063ad8c6238ab7d3f78 numpy1.15.3cp37cp37mmanylinux1_i686.whl
f1fd1a6f40a501ba4035f5ed2c1f4faa68245d1407bf97d2ee401e4f23d1720b numpy1.15.3cp37cp37mmanylinux1_x86_64.whl
094f8a83e5bd0a44a7557fa24a46db6ba7d5299c389ddbc9e0e18722f567fb63 numpy1.15.3cp37nonewin32.whl
a245464ddf6d90e2d6287e9cef6bcfda2a99467fdcf1b677b99cd0b6c7b43de2 numpy1.15.3cp37nonewin_amd64.whl
4656ea0d66a3724fd88aafa39a0c5cef216d1257a71b40534fe589abd46ba77b numpy1.15.3.tar.gz
1c0c80e74759fa4942298044274f2c11b08c86230b25b8b819e55e644f5ff2b6 numpy1.15.3.zip
v1.15.0
charris released this
Assets
==========================
NumPy 1.15.0 Release Notes
NumPy 1.15.0 is a release with an unusual number of cleanups, many deprecations
of old functions, and improvements to many existing functions. Please read the
detailed descriptions below to see if you are affected.
For testing, we have switched to pytest as a replacement for the no longer
maintained nose framework. The old nose based interface remains for downstream
projects who may still be using it.
The Python versions supported by this release are 2.7, 3.43.7. The wheels are
linked with OpenBLAS v0.3.0, which should fix some of the linalg problems
reported for NumPy 1.14.
Highlights
 NumPy has switched to pytest for testing.
 A new
numpy.printoptions
context manager.  Many improvements to the histogram functions.
 Support for unicode field names in python 2.7.
 Improved support for PyPy.
 Fixes and improvements to
numpy.einsum
.
New functions

numpy.gcd
andnumpy.lcm
, to compute the greatest common divisor and least
common multiple. 
numpy.ma.stack
, thenumpy.stack
arrayjoining function generalized to
masked arrays. 
numpy.quantile
function, an interface topercentile
without factors of
100 
numpy.nanquantile
function, an interface tonanpercentile
without
factors of 100 
numpy.printoptions
, a context manager that sets print options temporarily
for the scope of thewith
block::with np.printoptions(precision=2):
... print(np.array([2.0]) / 3)
[0.67] 
numpy.histogram_bin_edges
, a function to get the edges of the bins used by a
histogram without needing to calculate the histogram. 
C functions
npy_get_floatstatus_barrier
andnpy_clear_floatstatus_barrier
have been added to deal with compiler optimization changing the order of
operations. See below for details.
Deprecations

Aliases of builtin
pickle
functions are deprecated, in favor of their
unaliasedpickle.<func>
names:numpy.loads
numpy.core.numeric.load
numpy.core.numeric.loads
numpy.ma.loads
,numpy.ma.dumps
numpy.ma.load
,numpy.ma.dump
 these functions already failed on
python 3 when called with a string.

Multidimensional indexing with anything but a tuple is deprecated. This means
that the index list inind = [slice(None), 0]; arr[ind]
should be changed
to a tuple, e.g.,ind = [slice(None), 0]; arr[tuple(ind)]
or
arr[(slice(None), 0)]
. That change is necessary to avoid ambiguity in
expressions such asarr[[[0, 1], [0, 1]]]
, currently interpreted as
arr[array([0, 1]), array([0, 1])]
, that will be interpreted
asarr[array([[0, 1], [0, 1]])]
in the future. 
Imports from the following submodules are deprecated, they will be removed
at some future date.numpy.testing.utils
numpy.testing.decorators
numpy.testing.nosetester
numpy.testing.noseclasses
numpy.core.umath_tests

Giving a generator to
numpy.sum
is now deprecated. This was undocumented
behavior, but worked. Previously, it would calculate the sum of the generator
expression. In the future, it might return a different result. Use
np.sum(np.from_iter(generator))
or the builtin Pythonsum
instead. 
Users of the CAPI should call
PyArrayResolveWriteBackIfCopy
or
PyArray_DiscardWritbackIfCopy
on any array with theWRITEBACKIFCOPY
flag set, before deallocating the array. A deprecation warning will be
emitted if those calls are not used when needed. 
Users of
nditer
should use the nditer object as a context manager
anytime one of the iterator operands is writeable, so that numpy can
manage writeback semantics, or should callit.close()
. A
RuntimeWarning
may be emitted otherwise in these cases. 
The
normed
argument ofnp.histogram
, deprecated long ago in 1.6.0,
now emits aDeprecationWarning
.
Future Changes
 NumPy 1.16 will drop support for Python 3.4.
 NumPy 1.17 will drop support for Python 2.7.
Compatibility notes
Compiled testing modules renamed and made private
The following compiled modules have been renamed and made private:
umath_tests
>_umath_tests
test_rational
>_rational_tests
multiarray_tests
>_multiarray_tests
struct_ufunc_test
>_struct_ufunc_tests
operand_flag_tests
>_operand_flag_tests
The umath_tests
module is still available for backwards compatibility, but
will be removed in the future.
The NpzFile
returned by np.savez
is now a collections.abc.Mapping
This means it behaves like a readonly dictionary, and has a new .values()
method and len()
implementation.
For python 3, this means that .iteritems()
, .iterkeys()
have been
deprecated, and .keys()
and .items()
now return views and not lists.
This is consistent with how the builtin dict
type changed between python 2
and python 3.
Under certain conditions, nditer
must be used in a context manager
When using an numpy.nditer
with the "writeonly"
or "readwrite"
flags, there
are some circumstances where nditer doesn't actually give you a view of the
writable array. Instead, it gives you a copy, and if you make changes to the
copy, nditer later writes those changes back into your actual array. Currently,
this writeback occurs when the array objects are garbage collected, which makes
this API errorprone on CPython and entirely broken on PyPy. Therefore,
nditer
should now be used as a context manager whenever it is used
with writeable arrays, e.g., with np.nditer(...) as it: ...
. You may also
explicitly call it.close()
for cases where a context manager is unusable,
for instance in generator expressions.
Numpy has switched to using pytest instead of nose for testing
The last nose release was 1.3.7 in June, 2015, and development of that tool has
ended, consequently NumPy has now switched to using pytest. The old decorators
and nose tools that were previously used by some downstream projects remain
available, but will not be maintained. The standard testing utilities,
assert_almost_equal
and such, are not be affected by this change except for
the nose specific functions import_nose
and raises
. Those functions are
not used in numpy, but are kept for downstream compatibility.
Numpy no longer monkeypatches ctypes
with __array_interface__
Previously numpy added __array_interface__
attributes to all the integer
types from ctypes
.
np.ma.notmasked_contiguous
and np.ma.flatnotmasked_contiguous
always return lists
This is the documented behavior, but previously the result could be any of
slice, None, or list.
All downstream users seem to check for the None
result from
flatnotmasked_contiguous
and replace it with []
. Those callers will
continue to work as before.
np.squeeze
restores old behavior of objects that cannot handle an axis
argument
Prior to version 1.7.0
, numpy.squeeze
did not have an axis
argument and
all empty axes were removed by default. The incorporation of an axis
argument made it possible to selectively squeeze single or multiple empty axes,
but the old API expectation was not respected because axes could still be
selectively removed (silent success) from an object expecting all empty axes to
be removed. That silent, selective removal of empty axes for objects expecting
the old behavior has been fixed and the old behavior restored.
unstructured void array's .item
method now returns a bytes object
.item
now returns a bytes
object instead of a buffer or byte array.
This may affect code which assumed the return value was mutable, which is no
longer the case.
copy.copy
and copy.deepcopy
no longer turn masked
into an array
Since np.ma.masked
is a readonly scalar, copying should be a noop. These
functions now behave consistently with np.copy()
.
Multifield Indexing of Structured Arrays will still return a copy
The change that multifield indexing of structured arrays returns a view
instead of a copy is pushed back to 1.16. A new method
numpy.lib.recfunctions.repack_fields
has been introduced to help mitigate
the effects of this change, which can be used to write code compatible with
both numpy 1.15 and 1.16. For more information on how to update code to account
for this future change see the "accessing multiple fields" section of the
user guide <https://docs.scipy.org/doc/numpy/user/basics.rec.html>
__.
C API changes
New functions npy_get_floatstatus_barrier
and npy_clear_floatstatus_barrier
Functions npy_get_floatstatus_barrier
and npy_clear_floatstatus_barrier
have been added and should be used in place of the npy_get_floatstatus
and
npy_clear_status
functions. Optimizing compilers like GCC 8.1 and Clang
were rearranging the order of operations when the previous functions were used
in the ufunc SIMD functions, resulting in the floatstatus flags being checked
before the operation whose status we wanted to check was run. See #10339 <https://github.com/numpy/numpy/issues/10370>
__.
Changes to PyArray_GetDTypeTransferFunction
PyArray_GetDTypeTransferFunction
now defaults to using userdefined
copyswapn
/ copyswap
for userdefined dtypes. If this causes a
significant performance hit, consider implementing copyswapn
to reflect the
implementation of PyArray_GetStridedCopyFn
. See #10898 <https://github.com/numpy/numpy/pull/10898>
__.
 Functions
npy_get_floatstatus_barrier
andnpy_clear_floatstatus_barrier
have been added and should be used in place of thenpy_get_floatstatus
and
npy_clear_status
functions. Optimizing compilers like GCC 8.1 and Clang
were rearranging the order of operations when the previous functions were
used in the ufunc SIMD functions, resulting in the floatstatus flags being '
checked before the operation whose status we wanted to check was run.
See#10339 <https://github.com/numpy/numpy/issues/10370>
__.
New Features
np.gcd
and np.lcm
ufuncs added for integer and objects types
These compute the greatest common divisor, and lowest common multiple,
respectively. These work on all the numpy integer types, as well as the
builtin arbitraryprecision Decimal
and long
types.
Support for crossplatform builds for iOS
The build system has been modified to add support for the
_PYTHON_HOST_PLATFORM
environment variable, used by distutils
when
compiling on one platform for another platform. This makes it possible to
compile NumPy for iOS targets.
This only enables you to compile NumPy for one specific platform at a time.
Creating a full iOScompatible NumPy package requires building for the 5
architectures supported by iOS (i386, x86_64, armv7, armv7s and arm64), and
combining these 5 compiled builds products into a single "fat" binary.
return_indices
keyword added for np.intersect1d
New keyword return_indices
returns the indices of the two input arrays
that correspond to the common elements.
np.quantile
and np.nanquantile
Like np.percentile
and np.nanpercentile
, but takes quantiles in [0, 1]
rather than percentiles in [0, 100]. np.percentile
is now a thin wrapper
around np.quantile
with the extra step of dividing by 100.
Build system
Added experimental support for the 64bit RISCV architecture.
Improvements
np.einsum
updates
Syncs einsum path optimization tech between numpy
and opt_einsum
. In
particular, the greedy
path has received many enhancements by @jcmgray. A
full list of issues fixed are:
 Arbitrary memory can be passed into the
greedy
path. Fixes gh11210.  The greedy path has been updated to contain more dynamic programming ideas
preventing a large number of duplicate (and expensive) calls that figure out
the actual pair contraction that takes place. Now takes a few seconds on
several hundred input tensors. Useful for matrix product state theories.  Reworks the broadcasting dot error catching found in gh11218 gh10352 to be
a bit earlier in the process.  Enhances the
can_dot
functionality that previous missed an edge case (part
of gh11308).
np.ufunc.reduce
and related functions now accept an initial value
np.ufunc.reduce
, np.sum
, np.prod
, np.min
and np.max
all
now accept an initial
keyword argument that specifies the value to start
the reduction with.
np.flip
can operate over multiple axes
np.flip
now accepts None, or tuples of int, in its axis
argument. If
axis is None, it will flip over all the axes.
histogram
and histogramdd
functions have moved to np.lib.histograms
These were originally found in np.lib.function_base
. They are still
available under their unscoped np.histogram(dd)
names, and
to maintain compatibility, aliased at np.lib.function_base.histogram(dd)
.
Code that does from np.lib.function_base import *
will need to be updated
with the new location, and should consider not using import *
in future.
histogram
will accept NaN values when explicit bins are given
Previously it would fail when trying to compute a finite range for the data.
Since the range is ignored anyway when the bins are given explicitly, this error
was needless.
Note that calling histogram
on NaN values continues to raise the
RuntimeWarning
s typical of working with nan values, which can be silenced
as usual with errstate
.
histogram
works on datetime types, when explicit bin edges are given
Dates, times, and timedeltas can now be histogrammed. The bin edges must be
passed explicitly, and are not yet computed automatically.
histogram
"auto" estimator handles limited variance better
No longer does an IQR of 0 result in n_bins=1
, rather the number of bins
chosen is related to the data size in this situation.
The edges retuned by `histogramand
histogramdd`` now match the data float type
When passed np.float16
, np.float32
, or np.longdouble
data, the
returned edges are now of the same dtype. Previously, histogram
would only
return the same type if explicit bins were given, and histogram
would
produce float64
bins no matter what the inputs.
histogramdd
allows explicit ranges to be given in a subset of axes
The range
argument of numpy.histogramdd
can now contain None
values to
indicate that the range for the corresponding axis should be computed from the
data. Previously, this could not be specified on a peraxis basis.
The normed arguments of histogramdd
and histogram2d
have been renamed
These arguments are now called density
, which is consistent with
histogram
. The old argument continues to work, but the new name should be
preferred.
np.r_
works with 0d arrays, and np.ma.mr_
works with np.ma.masked
0d arrays passed to the r_
and mr_
concatenation helpers are now treated as
though they are arrays of length 1. Previously, passing these was an error.
As a result, numpy.ma.mr_
now works correctly on the masked
constant.
np.ptp
accepts a keepdims
argument, and extended axis tuples
np.ptp
(peaktopeak) can now work over multiple axes, just like np.max
and np.min
.
MaskedArray.astype
now is identical to ndarray.astype
This means it takes all the same arguments, making more code written for
ndarray work for masked array too.
Enable AVX2/AVX512 at compile time
Change to simd.inc.src to allow use of AVX2 or AVX512 at compile time. Previously
compilation for avx2 (or 512) with march=native would still use the SSE
code for the simd functions even when the rest of the code got AVX2.
nan_to_num
always returns scalars when receiving scalar or 0d inputs
Previously an array was returned for integer scalar inputs, which is
inconsistent with the behavior for float inputs, and that of ufuncs in general.
For all types of scalar or 0d input, the result is now a scalar.
np.flatnonzero
works on numpyconvertible types
np.flatnonzero
now uses np.ravel(a)
instead of a.ravel()
, so it
works for lists, tuples, etc.
np.interp
returns numpy scalars rather than builtin scalars
Previously np.interp(0.5, [0, 1], [10, 20])
would return a float
, but
now it returns a np.float64
object, which more closely matches the behavior
of other functions.
Additionally, the special case of np.interp(object_array_0d, ...)
is no
longer supported, as np.interp(object_array_nd)
was never supported anyway.
As a result of this change, the period
argument can now be used on 0d
arrays.
Allow dtype field names to be unicode in Python 2
Previously np.dtype([(u'name', float)])
would raise a TypeError
in
Python 2, as only bytestrings were allowed in field names. Now any unicode
string field names will be encoded with the ascii
codec, raising a
UnicodeEncodeError
upon failure.
This change makes it easier to write Python 2/3 compatible code using
from __future__ import unicode_literals
, which previously would cause
string literal field names to raise a TypeError in Python 2.
Comparison ufuncs accept dtype=object
, overriding the default bool
This allows object arrays of symbolic types, which override ==
and other
operators to return expressions, to be compared elementwise with
np.equal(a, b, dtype=object)
.
sort
functions accept kind='stable'
Up until now, to perform a stable sort on the data, the user must do:
>>> np.sort([5, 2, 6, 2, 1], kind='mergesort')
[1, 2, 2, 5, 6]
because merge sort is the only stable sorting algorithm available in
NumPy. However, having kind='mergesort' does not make it explicit that
the user wants to perform a stable sort thus harming the readability.
This change allows the user to specify kind='stable' thus clarifying
the intent.
Do not make temporary copies for inplace accumulation
When ufuncs perform accumulation they no longer make temporary copies because
of the overlap between input an output, that is, the next element accumulated
is added before the accumulated result is stored in its place, hence the
overlap is safe. Avoiding the copy results in faster execution.
linalg.matrix_power
can now handle stacks of matrices
Like other functions in linalg
, matrix_power
can now deal with arrays
of dimension larger than 2, which are treated as stacks of matrices. As part
of the change, to further improve consistency, the name of the first argument
has been changed to a
(from M
), and the exceptions for nonsquare
matrices have been changed to LinAlgError
(from ValueError
).
Increased performance in random.permutation
for multidimensional arrays
permutation
uses the fast path in random.shuffle
for all input
array dimensions. Previously the fast path was only used for 1d arrays.
Generalized ufuncs now accept axes
, axis
and keepdims
arguments
One can control over which axes a generalized ufunc operates by passing in an
axes
argument, a list of tuples with indices of particular axes. For
instance, for a signature of (i,j),(j,k)>(i,k)
appropriate for matrix
multiplication, the base elements are twodimensional matrices and these are
taken to be stored in the two last axes of each argument. The corresponding
axes keyword would be [(2, 1), (2, 1), (2, 1)]
. If one wanted to
use leading dimensions instead, one would pass in [(0, 1), (0, 1), (0, 1)]
.
For simplicity, for generalized ufuncs that operate on 1dimensional arrays
(vectors), a single integer is accepted instead of a singleelement tuple, and
for generalized ufuncs for which all outputs are scalars, the (empty) output
tuples can be omitted. Hence, for a signature of (i),(i)>()
appropriate
for an inner product, one could pass in axes=[0, 0]
to indicate that the
vectors are stored in the first dimensions of the two inputs arguments.
As a shortcut for generalized ufuncs that are similar to reductions, i.e.,
that act on a single, shared core dimension such as the inner product example
above, one can pass an axis
argument. This is equivalent to passing in
axes
with identical entries for all arguments with that core dimension
(e.g., for the example above, axes=[(axis,), (axis,)]
).
Furthermore, like for reductions, for generalized ufuncs that have inputs that
all have the same number of core dimensions and outputs with no core dimension,
one can pass in keepdims
to leave a dimension with size 1 in the outputs,
thus allowing proper broadcasting against the original inputs. The location of
the extra dimension can be controlled with axes
. For instance, for the
innerproduct example, keepdims=True, axes=[2, 2, 2]
would act on the
innerproduct example, keepdims=True, axis=2
would act on the
onebutlast dimension of the input arguments, and leave a size 1 dimension in
that place in the output.
float128 values now print correctly on ppc systems
Previously printing float128 values was buggy on ppc, since the special
doubledouble floatingpointformat on these systems was not accounted for.
float128s now print with correct rounding and uniqueness.
Warning to ppc users: You should upgrade glibc if it is version <=2.23,
especially if using float128. On ppc, glibc's malloc in these version often
misaligns allocated memory which can crash numpy when using float128 values.
New np.take_along_axis
and np.put_along_axis
functions
When used on multidimensional arrays, argsort
, argmin
, argmax
, and
argpartition
return arrays that are difficult to use as indices.
take_along_axis
provides an easy way to use these indices to lookup values
within an array, so that::
np.take_along_axis(a, np.argsort(a, axis=axis), axis=axis)
is the same as::
np.sort(a, axis=axis)
np.put_along_axis
acts as the dual operation for writing to these indices
within an array.
Checksums
MD5
4957a50c1125fdecb4cb51829f5feba1 numpy1.15.0cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d5ffa73c6a3eeba8cfcab283e7db3c2f numpy1.15.0cp27cp27mmanylinux1_i686.whl
a6f7aa33d4d1598dc33831a4bb36570d numpy1.15.0cp27cp27mmanylinux1_x86_64.whl
cbdd2291782deb29f41c9b7d121264e0 numpy1.15.0cp27cp27mumanylinux1_i686.whl
0bd79da73435161850099bfcacc75fae numpy1.15.0cp27cp27mumanylinux1_x86_64.whl
73f930c046ac09e518d0b4cf2f8ff642 numpy1.15.0cp27nonewin32.whl
7ba5b463728a792dced42fd6259e511f numpy1.15.0cp27nonewin_amd64.whl
badfc9f713510d59f478037c88b3d963 numpy1.15.0cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
662f2536cac7b841f86e9b7488e52371 numpy1.15.0cp34cp34mmanylinux1_i686.whl
346d9239f7f12bb7042f8bc847928dc1 numpy1.15.0cp34cp34mmanylinux1_x86_64.whl
fd03012584359cd05cee08408df5897d numpy1.15.0cp34nonewin32.whl
1032db03cefd82e87f72f2b04b15b7ae numpy1.15.0cp34nonewin_amd64.whl
cc463ee62af94c8410fdf95ce9933c3c numpy1.15.0cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
77655199a4e18719dd5a0b348c44fc92 numpy1.15.0cp35cp35mmanylinux1_i686.whl
d76c54272549cf3a2165d40d3fea5e30 numpy1.15.0cp35cp35mmanylinux1_x86_64.whl
956c6f7c216b677b27628a97150cd069 numpy1.15.0cp35nonewin32.whl
2ab8080576932775167a6f9c772b91e4 numpy1.15.0cp35nonewin_amd64.whl
1a01c8d089d488565acc2836d03a7482 numpy1.15.0cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
5606fa1c1e13e789b802102699d613e2 numpy1.15.0cp36cp36mmanylinux1_i686.whl
5635343a70f7cdd17f372966db1526d3 numpy1.15.0cp36cp36mmanylinux1_x86_64.whl
166e901c1a86da5ffb8c6d3090ed917e numpy1.15.0cp36nonewin32.whl
6423497ad5a610c1deed606ce44893bd numpy1.15.0cp36nonewin_amd64.whl
e232fbba29585812bf7fa547f671b768 numpy1.15.0cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
b2fc4551651fae84eb01b8a37f2e1e69 numpy1.15.0cp37cp37mmanylinux1_i686.whl
36ed60bef7c5cb252b9d0e8dc5029e08 numpy1.15.0cp37cp37mmanylinux1_x86_64.whl
4482a89fa4540c8bbf76028621931266 numpy1.15.0cp37nonewin32.whl
cfef18ee246468752f1686147c70bd0a numpy1.15.0cp37nonewin_amd64.whl
5cf4daff88042326334266f80ad38884 numpy1.15.0.tar.gz
20e13185089011116a98e11c9bf8aa07 numpy1.15.0.zip
SHA256
a17a8fd5df4fec5b56b4d11c9ba8b9ebfb883c90ec361628d07be00aaa4f009a numpy1.15.0cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c3ac359ace241707e5a48fe2922e566ac666aacacf4f8031f2994ac429c31344 numpy1.15.0cp27cp27mmanylinux1_i686.whl
e2317cf091c2e7f0dacdc2e72c693cc34403ca1f8e3807622d0bb653dc978616 numpy1.15.0cp27cp27mmanylinux1_x86_64.whl
64c6acf5175745fd1b7b7e17c74fdbfb7191af3b378bc54f44560279f41238d3 numpy1.15.0cp27cp27mumanylinux1_i686.whl
924f37e66db78464b4b85ed4b6d2e5cda0c0416e657cac7ccbef14b9fa2c40b5 numpy1.15.0cp27cp27mumanylinux1_x86_64.whl
674ea7917f0657ddb6976bd102ac341bc493d072c32a59b98e5b8c6eaa2d5ec0 numpy1.15.0cp27nonewin32.whl
ae3864816287d0e86ead580b69921daec568fe680857f07ee2a87bf7fd77ce24 numpy1.15.0cp27nonewin_amd64.whl
78c35dc7ad184aebf3714dbf43f054714c6e430e14b9c06c49a864fb9e262030 numpy1.15.0cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c7c660cc0209fdf29a4e50146ca9ac9d8664acaded6b6ae2f5d0ae2e91a0f0cd numpy1.15.0cp34cp34mmanylinux1_i686.whl
3fbccb399fe9095b1c1d7b41e7c7867db8aa0d2347fc44c87a7a180cedda112b numpy1.15.0cp34cp34mmanylinux1_x86_64.whl
aaa519335a71f87217ca8a680c3b66b61960e148407bdf5c209c42f50fe30f49 numpy1.15.0cp34nonewin32.whl
62cb836506f40ce2529bfba9d09edc4b2687dd18c56cf4457e51c3e7145402fd numpy1.15.0cp34nonewin_amd64.whl
55daf757e5f69aa75b4477cf4511bf1f96325c730e4ad32d954ccb593acd2585 numpy1.15.0cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
b5f8c15cb9173f6cdf0f994955e58d1265331029ae26296232379461a297e5f2 numpy1.15.0cp35cp35mmanylinux1_i686.whl
24f3bb9a5f6c3936a8ccd4ddfc1210d9511f4aeb879a12efd2e80bec647b8695 numpy1.15.0cp35cp35mmanylinux1_x86_64.whl
34033b581bc01b1135ca2e3e93a94daea7c739f21a97a75cca93e29d9f0c8e71 numpy1.15.0cp35nonewin32.whl
f5a758252502b466b9c2b201ea397dae5a914336c987f3a76c3741a82d43c96e numpy1.15.0cp35nonewin_amd64.whl
14fb76bde161c87dcec52d91c78f65aa8a23aa2e1530a71f412dabe03927d917 numpy1.15.0cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
816645178f2180be257a576b735d3ae245b1982280b97ae819550ce8bcdf2b6b numpy1.15.0cp36cp36mmanylinux1_i686.whl
f2a778dd9bb3e4590dbe3bbac28e7c7134280c4ec97e3bf8678170ee58c67b21 numpy1.15.0cp36cp36mmanylinux1_x86_64.whl
7f17efe9605444fcbfd990ba9b03371552d65a3c259fc2d258c24fb95afdd728 numpy1.15.0cp36nonewin32.whl
73a816e441dace289302e04a7a34ec4772ed234ab6885c968e3ca2fc2d06fe2d numpy1.15.0cp36nonewin_amd64.whl
21041014b7529237994a6b578701c585703fbb3b1bea356cdb12a5ea7804241c numpy1.15.0cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d690a2ff49f6c3bc35336693c9924fe5916be3cc0503fe1ea6c7e2bf951409ee numpy1.15.0cp37cp37mmanylinux1_i686.whl
50718eea8e77a1bedcc85befd22c8dbf5a24c9d2c0c1e36bbb8d7a38da847eb3 numpy1.15.0cp37cp37mmanylinux1_x86_64.whl
fb4c33a404d9eff49a0cdc8ead0af6453f62f19e071b60d283f9dc05581e4134 numpy1.15.0cp37nonewin32.whl
61efc65f325770bbe787f34e00607bc124f08e6c25fdf04723848585e81560dc numpy1.15.0cp37nonewin_amd64.whl
259934a941663e93fdd5d28ce3f6aa2a81ce7dda85c395dd07b1f1edff2e0236 numpy1.15.0.tar.gz
f28e73cf18d37a413f7d5de35d024e6b98f14566a10d82100f9dc491a7d449f9 numpy1.15.0.zip
v1.15.0rc2
charris released this
Assets
==========================
NumPy 1.15.0 Release Notes
NumPy 1.15.0 is a release with an unusual number of cleanups, many deprecations
of old functions, and improvements to many existing functions. Please read the
detailed descriptions below to see if you are affected.
For testing, we have switched to pytest as a replacement for the no longer
maintained nose framework. The old nose based interface remains for downstream
projects who may still be using it.
The Python versions supported by this release are 2.7, 3.43.7. The wheels are
linked with OpenBLAS v0.3.0, which should fix some of the linalg problems
reported for NumPy 1.14.
Highlights
 NumPy has switched to pytest for testing.
 A new
numpy.printoptions
context manager.  Many improvements to the histogram functions.
 Support for unicode field names in python 2.7.
 Improved support for PyPy.
 Fixes and improvements to
numpy.einsum
.
New functions

numpy.gcd
andnumpy.lcm
, to compute the greatest common divisor and least
common multiple. 
numpy.ma.stack
, thenumpy.stack
arrayjoining function generalized to
masked arrays. 
numpy.quantile
function, an interface topercentile
without factors of
100 
numpy.nanquantile
function, an interface tonanpercentile
without
factors of 100 
numpy.printoptions
, a context manager that sets print options temporarily
for the scope of thewith
block::with np.printoptions(precision=2):
... print(np.array([2.0]) / 3)
[0.67] 
numpy.histogram_bin_edges
, a function to get the edges of the bins used by a
histogram without needing to calculate the histogram. 
C functions
npy_get_floatstatus_barrier
andnpy_clear_floatstatus_barrier
have been added to deal with compiler optimization changing the order of
operations. See below for details.
Deprecations

Aliases of builtin
pickle
functions are deprecated, in favor of their
unaliasedpickle.<func>
names:numpy.loads
numpy.core.numeric.load
numpy.core.numeric.loads
numpy.ma.loads
,numpy.ma.dumps
numpy.ma.load
,numpy.ma.dump
 these functions already failed on
python 3 when called with a string.

Multidimensional indexing with anything but a tuple is deprecated. This means
that the index list inind = [slice(None), 0]; arr[ind]
should be changed
to a tuple, e.g.,ind = [slice(None), 0]; arr[tuple(ind)]
or
arr[(slice(None), 0)]
. That change is necessary to avoid ambiguity in
expressions such asarr[[[0, 1], [0, 1]]]
, currently interpreted as
arr[array([0, 1]), array([0, 1])]
, that will be interpreted
asarr[array([[0, 1], [0, 1]])]
in the future. 
Imports from the following submodules are deprecated, they will be removed
at some future date.numpy.testing.utils
numpy.testing.decorators
numpy.testing.nosetester
numpy.testing.noseclasses
numpy.core.umath_tests

Giving a generator to
numpy.sum
is now deprecated. This was undocumented
behavior, but worked. Previously, it would calculate the sum of the generator
expression. In the future, it might return a different result. Use
np.sum(np.from_iter(generator))
or the builtin Pythonsum
instead. 
Users of the CAPI should call
PyArrayResolveWriteBackIfCopy
or
PyArray_DiscardWritbackIfCopy
on any array with theWRITEBACKIFCOPY
flag set, before deallocating the array. A deprecation warning will be
emitted if those calls are not used when needed. 
Users of
nditer
should use the nditer object as a context manager
anytime one of the iterator operands is writeable, so that numpy can
manage writeback semantics, or should callit.close()
. A
RuntimeWarning
may be emitted otherwise in these cases. 
The
normed
argument ofnp.histogram
, deprecated long ago in 1.6.0,
now emits aDeprecationWarning
.
Future Changes
 NumPy 1.16 will drop support for Python 3.4.
 NumPy 1.17 will drop support for Python 2.7.
Compatibility notes
Compiled testing modules renamed and made private
The following compiled modules have been renamed and made private:
umath_tests
>_umath_tests
test_rational
>_rational_tests
multiarray_tests
>_multiarray_tests
struct_ufunc_test
>_struct_ufunc_tests
operand_flag_tests
>_operand_flag_tests
The umath_tests
module is still available for backwards compatibility, but
will be removed in the future.
The NpzFile
returned by np.savez
is now a collections.abc.Mapping
This means it behaves like a readonly dictionary, and has a new .values()
method and len()
implementation.
For python 3, this means that .iteritems()
, .iterkeys()
have been
deprecated, and .keys()
and .items()
now return views and not lists.
This is consistent with how the builtin dict
type changed between python 2
and python 3.
Under certain conditions, nditer
must be used in a context manager
When using an numpy.nditer
with the "writeonly"
or "readwrite"
flags, there
are some circumstances where nditer doesn't actually give you a view of the
writable array. Instead, it gives you a copy, and if you make changes to the
copy, nditer later writes those changes back into your actual array. Currently,
this writeback occurs when the array objects are garbage collected, which makes
this API errorprone on CPython and entirely broken on PyPy. Therefore,
nditer
should now be used as a context manager whenever it is used
with writeable arrays, e.g., with np.nditer(...) as it: ...
. You may also
explicitly call it.close()
for cases where a context manager is unusable,
for instance in generator expressions.
Numpy has switched to using pytest instead of nose for testing
The last nose release was 1.3.7 in June, 2015, and development of that tool has
ended, consequently NumPy has now switched to using pytest. The old decorators
and nose tools that were previously used by some downstream projects remain
available, but will not be maintained. The standard testing utilities,
assert_almost_equal
and such, are not be affected by this change except for
the nose specific functions import_nose
and raises
. Those functions are
not used in numpy, but are kept for downstream compatibility.
Numpy no longer monkeypatches ctypes
with __array_interface__
Previously numpy added __array_interface__
attributes to all the integer
types from ctypes
.
np.ma.notmasked_contiguous
and np.ma.flatnotmasked_contiguous
always return lists
This is the documented behavior, but previously the result could be any of
slice, None, or list.
All downstream users seem to check for the None
result from
flatnotmasked_contiguous
and replace it with []
. Those callers will
continue to work as before.
np.squeeze
restores old behavior of objects that cannot handle an axis
argument
Prior to version 1.7.0
, numpy.squeeze
did not have an axis
argument and
all empty axes were removed by default. The incorporation of an axis
argument made it possible to selectively squeeze single or multiple empty axes,
but the old API expectation was not respected because axes could still be
selectively removed (silent success) from an object expecting all empty axes to
be removed. That silent, selective removal of empty axes for objects expecting
the old behavior has been fixed and the old behavior restored.
unstructured void array's .item
method now returns a bytes object
.item
now returns a bytes
object instead of a buffer or byte array.
This may affect code which assumed the return value was mutable, which is no
longer the case.
copy.copy
and copy.deepcopy
no longer turn masked
into an array
Since np.ma.masked
is a readonly scalar, copying should be a noop. These
functions now behave consistently with np.copy()
.
Multifield Indexing of Structured Arrays will still return a copy
The change that multifield indexing of structured arrays returns a view
instead of a copy is pushed back to 1.16. A new method
numpy.lib.recfunctions.repack_fields
has been introduced to help mitigate
the effects of this change, which can be used to write code compatible with
both numpy 1.15 and 1.16. For more information on how to update code to account
for this future change see the "accessing multiple fields" section of the
user guide <https://docs.scipy.org/doc/numpy/user/basics.rec.html>
__.
C API changes
New functions npy_get_floatstatus_barrier
and npy_clear_floatstatus_barrier
Functions npy_get_floatstatus_barrier
and npy_clear_floatstatus_barrier
have been added and should be used in place of the npy_get_floatstatus
and
npy_clear_status
functions. Optimizing compilers like GCC 8.1 and Clang
were rearranging the order of operations when the previous functions were used
in the ufunc SIMD functions, resulting in the floatstatus flags being checked
before the operation whose status we wanted to check was run. See #10339 <https://github.com/numpy/numpy/issues/10370>
__.
Changes to PyArray_GetDTypeTransferFunction
PyArray_GetDTypeTransferFunction
now defaults to using userdefined
copyswapn
/ copyswap
for userdefined dtypes. If this causes a
significant performance hit, consider implementing copyswapn
to reflect the
implementation of PyArray_GetStridedCopyFn
. See #10898 <https://github.com/numpy/numpy/pull/10898>
__.
 Functions
npy_get_floatstatus_barrier
andnpy_clear_floatstatus_barrier
have been added and should be used in place of thenpy_get_floatstatus
and
npy_clear_status
functions. Optimizing compilers like GCC 8.1 and Clang
were rearranging the order of operations when the previous functions were
used in the ufunc SIMD functions, resulting in the floatstatus flags being '
checked before the operation whose status we wanted to check was run.
See#10339 <https://github.com/numpy/numpy/issues/10370>
__.
New Features
np.gcd
and np.lcm
ufuncs added for integer and objects types
These compute the greatest common divisor, and lowest common multiple,
respectively. These work on all the numpy integer types, as well as the
builtin arbitraryprecision Decimal
and long
types.
Support for crossplatform builds for iOS
The build system has been modified to add support for the
_PYTHON_HOST_PLATFORM
environment variable, used by distutils
when
compiling on one platform for another platform. This makes it possible to
compile NumPy for iOS targets.
This only enables you to compile NumPy for one specific platform at a time.
Creating a full iOScompatible NumPy package requires building for the 5
architectures supported by iOS (i386, x86_64, armv7, armv7s and arm64), and
combining these 5 compiled builds products into a single "fat" binary.
return_indices
keyword added for np.intersect1d
New keyword return_indices
returns the indices of the two input arrays
that correspond to the common elements.
np.quantile
and np.nanquantile
Like np.percentile
and np.nanpercentile
, but takes quantiles in [0, 1]
rather than percentiles in [0, 100]. np.percentile
is now a thin wrapper
around np.quantile
with the extra step of dividing by 100.
Build system
Added experimental support for the 64bit RISCV architecture.
Improvements
np.einsum
updates
Syncs einsum path optimization tech between numpy
and opt_einsum
. In
particular, the greedy
path has received many enhancements by @jcmgray. A
full list of issues fixed are:
 Arbitrary memory can be passed into the
greedy
path. Fixes gh11210.  The greedy path has been updated to contain more dynamic programming ideas
preventing a large number of duplicate (and expensive) calls that figure out
the actual pair contraction that takes place. Now takes a few seconds on
several hundred input tensors. Useful for matrix product state theories.  Reworks the broadcasting dot error catching found in gh11218 gh10352 to be
a bit earlier in the process.  Enhances the
can_dot
functionality that previous missed an edge case (part
of gh11308).
np.ufunc.reduce
and related functions now accept an initial value
np.ufunc.reduce
, np.sum
, np.prod
, np.min
and np.max
all
now accept an initial
keyword argument that specifies the value to start
the reduction with.
np.flip
can operate over multiple axes
np.flip
now accepts None, or tuples of int, in its axis
argument. If
axis is None, it will flip over all the axes.
histogram
and histogramdd
functions have moved to np.lib.histograms
These were originally found in np.lib.function_base
. They are still
available under their unscoped np.histogram(dd)
names, and
to maintain compatibility, aliased at np.lib.function_base.histogram(dd)
.
Code that does from np.lib.function_base import *
will need to be updated
with the new location, and should consider not using import *
in future.
histogram
will accept NaN values when explicit bins are given
Previously it would fail when trying to compute a finite range for the data.
Since the range is ignored anyway when the bins are given explicitly, this error
was needless.
Note that calling histogram
on NaN values continues to raise the
RuntimeWarning
s typical of working with nan values, which can be silenced
as usual with errstate
.
histogram
works on datetime types, when explicit bin edges are given
Dates, times, and timedeltas can now be histogrammed. The bin edges must be
passed explicitly, and are not yet computed automatically.
histogram
"auto" estimator handles limited variance better
No longer does an IQR of 0 result in n_bins=1
, rather the number of bins
chosen is related to the data size in this situation.
The edges retuned by `histogramand
histogramdd`` now match the data float type
When passed np.float16
, np.float32
, or np.longdouble
data, the
returned edges are now of the same dtype. Previously, histogram
would only
return the same type if explicit bins were given, and histogram
would
produce float64
bins no matter what the inputs.
histogramdd
allows explicit ranges to be given in a subset of axes
The range
argument of numpy.histogramdd
can now contain None
values to
indicate that the range for the corresponding axis should be computed from the
data. Previously, this could not be specified on a peraxis basis.
The normed arguments of histogramdd
and histogram2d
have been renamed
These arguments are now called density
, which is consistent with
histogram
. The old argument continues to work, but the new name should be
preferred.
np.r_
works with 0d arrays, and np.ma.mr_
works with np.ma.masked
0d arrays passed to the r_
and mr_
concatenation helpers are now treated as
though they are arrays of length 1. Previously, passing these was an error.
As a result, numpy.ma.mr_
now works correctly on the masked
constant.
np.ptp
accepts a keepdims
argument, and extended axis tuples
np.ptp
(peaktopeak) can now work over multiple axes, just like np.max
and np.min
.
MaskedArray.astype
now is identical to ndarray.astype
This means it takes all the same arguments, making more code written for
ndarray work for masked array too.
Enable AVX2/AVX512 at compile time
Change to simd.inc.src to allow use of AVX2 or AVX512 at compile time. Previously
compilation for avx2 (or 512) with march=native would still use the SSE
code for the simd functions even when the rest of the code got AVX2.
nan_to_num
always returns scalars when receiving scalar or 0d inputs
Previously an array was returned for integer scalar inputs, which is
inconsistent with the behavior for float inputs, and that of ufuncs in general.
For all types of scalar or 0d input, the result is now a scalar.
np.flatnonzero
works on numpyconvertible types
np.flatnonzero
now uses np.ravel(a)
instead of a.ravel()
, so it
works for lists, tuples, etc.
np.interp
returns numpy scalars rather than builtin scalars
Previously np.interp(0.5, [0, 1], [10, 20])
would return a float
, but
now it returns a np.float64
object, which more closely matches the behavior
of other functions.
Additionally, the special case of np.interp(object_array_0d, ...)
is no
longer supported, as np.interp(object_array_nd)
was never supported anyway.
As a result of this change, the period
argument can now be used on 0d
arrays.
Allow dtype field names to be unicode in Python 2
Previously np.dtype([(u'name', float)])
would raise a TypeError
in
Python 2, as only bytestrings were allowed in field names. Now any unicode
string field names will be encoded with the ascii
codec, raising a
UnicodeEncodeError
upon failure.
This change makes it easier to write Python 2/3 compatible code using
from __future__ import unicode_literals
, which previously would cause
string literal field names to raise a TypeError in Python 2.
Comparison ufuncs accept dtype=object
, overriding the default bool
This allows object arrays of symbolic types, which override ==
and other
operators to return expressions, to be compared elementwise with
np.equal(a, b, dtype=object)
.
sort
functions accept kind='stable'
Up until now, to perform a stable sort on the data, the user must do:
>>> np.sort([5, 2, 6, 2, 1], kind='mergesort')
[1, 2, 2, 5, 6]
because merge sort is the only stable sorting algorithm available in
NumPy. However, having kind='mergesort' does not make it explicit that
the user wants to perform a stable sort thus harming the readability.
This change allows the user to specify kind='stable' thus clarifying
the intent.
Do not make temporary copies for inplace accumulation
When ufuncs perform accumulation they no longer make temporary copies because
of the overlap between input an output, that is, the next element accumulated
is added before the accumulated result is stored in its place, hence the
overlap is safe. Avoiding the copy results in faster execution.
linalg.matrix_power
can now handle stacks of matrices
Like other functions in linalg
, matrix_power
can now deal with arrays
of dimension larger than 2, which are treated as stacks of matrices. As part
of the change, to further improve consistency, the name of the first argument
has been changed to a
(from M
), and the exceptions for nonsquare
matrices have been changed to LinAlgError
(from ValueError
).
Increased performance in random.permutation
for multidimensional arrays
permutation
uses the fast path in random.shuffle
for all input
array dimensions. Previously the fast path was only used for 1d arrays.
Generalized ufuncs now accept axes
, axis
and keepdims
arguments
One can control over which axes a generalized ufunc operates by passing in an
axes
argument, a list of tuples with indices of particular axes. For
instance, for a signature of (i,j),(j,k)>(i,k)
appropriate for matrix
multiplication, the base elements are twodimensional matrices and these are
taken to be stored in the two last axes of each argument. The corresponding
axes keyword would be [(2, 1), (2, 1), (2, 1)]
. If one wanted to
use leading dimensions instead, one would pass in [(0, 1), (0, 1), (0, 1)]
.
For simplicity, for generalized ufuncs that operate on 1dimensional arrays
(vectors), a single integer is accepted instead of a singleelement tuple, and
for generalized ufuncs for which all outputs are scalars, the (empty) output
tuples can be omitted. Hence, for a signature of (i),(i)>()
appropriate
for an inner product, one could pass in axes=[0, 0]
to indicate that the
vectors are stored in the first dimensions of the two inputs arguments.
As a shortcut for generalized ufuncs that are similar to reductions, i.e.,
that act on a single, shared core dimension such as the inner product example
above, one can pass an axis
argument. This is equivalent to passing in
axes
with identical entries for all arguments with that core dimension
(e.g., for the example above, axes=[(axis,), (axis,)]
).
Furthermore, like for reductions, for generalized ufuncs that have inputs that
all have the same number of core dimensions and outputs with no core dimension,
one can pass in keepdims
to leave a dimension with size 1 in the outputs,
thus allowing proper broadcasting against the original inputs. The location of
the extra dimension can be controlled with axes
. For instance, for the
innerproduct example, keepdims=True, axes=[2, 2, 2]
would act on the
innerproduct example, keepdims=True, axis=2
would act on the
onebutlast dimension of the input arguments, and leave a size 1 dimension in
that place in the output.
float128 values now print correctly on ppc systems
Previously printing float128 values was buggy on ppc, since the special
doubledouble floatingpointformat on these systems was not accounted for.
float128s now print with correct rounding and uniqueness.
Warning to ppc users: You should upgrade glibc if it is version <=2.23,
especially if using float128. On ppc, glibc's malloc in these version often
misaligns allocated memory which can crash numpy when using float128 values.
New np.take_along_axis
and np.put_along_axis
functions
When used on multidimensional arrays, argsort
, argmin
, argmax
, and
argpartition
return arrays that are difficult to use as indices.
take_along_axis
provides an easy way to use these indices to lookup values
within an array, so that::
np.take_along_axis(a, np.argsort(a, axis=axis), axis=axis)
is the same as::
np.sort(a, axis=axis)
np.put_along_axis
acts as the dual operation for writing to these indices
within an array.
Checksums
MD5
8316260e8887fc8bcf5f0b05f63c5019 numpy1.15.0rc2cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
2891ad8dbc338eba71726d460542a081 numpy1.15.0rc2cp27cp27mmanylinux1_i686.whl
6d222985f3f97c5e2fc1153eb8373808 numpy1.15.0rc2cp27cp27mmanylinux1_x86_64.whl
a07824b238cfb6a28997802e5196b59a numpy1.15.0rc2cp27cp27mumanylinux1_i686.whl
bdcdf5b7af86c3c9e7986443f958088a numpy1.15.0rc2cp27cp27mumanylinux1_x86_64.whl
03402a54a4160992470418bb2d8b80ce numpy1.15.0rc2cp27nonewin32.whl
8d43fa19d44eb1984103a3d6a36ca1d8 numpy1.15.0rc2cp27nonewin_amd64.whl
584955fb44be27fdeb98403fc7377570 numpy1.15.0rc2cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
85f2e7d543d164fbd3fd8eaebc8e37b0 numpy1.15.0rc2cp34cp34mmanylinux1_i686.whl
305290d750a6d3d6b0730faac3bdd918 numpy1.15.0rc2cp34cp34mmanylinux1_x86_64.whl
ca67388f3ab2de181caaf35b219e4bb0 numpy1.15.0rc2cp34nonewin32.whl
112a63e88d58a841e286015f213246e5 numpy1.15.0rc2cp34nonewin_amd64.whl
fd8aa9b7261e96694546956f6580e930 numpy1.15.0rc2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a95d9721714724c129a804d37e226b8c numpy1.15.0rc2cp35cp35mmanylinux1_i686.whl
199229506044c8d47b8dba19a093c7a6 numpy1.15.0rc2cp35cp35mmanylinux1_x86_64.whl
cd560aae25afd852181a9f89c82eecac numpy1.15.0rc2cp35nonewin32.whl
981140d5b42ad1457ddff565576073a3 numpy1.15.0rc2cp35nonewin_amd64.whl
1b83a71e5021a582d9f77427394c36e1 numpy1.15.0rc2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
791f0204b92772284472af1769ecbcba numpy1.15.0rc2cp36cp36mmanylinux1_i686.whl
24679506658bee564e9c4c96de5cffaf numpy1.15.0rc2cp36cp36mmanylinux1_x86_64.whl
daeb5f3144795c51039f79fdf15da10d numpy1.15.0rc2cp36nonewin32.whl
8a32e40e2d2a82bb86a2887fe7b72120 numpy1.15.0rc2cp36nonewin_amd64.whl
a6856a9ee8e6faae5d6d7424029d5390 numpy1.15.0rc2cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
566a8a2fd66be5fec607254abdc001be numpy1.15.0rc2cp37cp37mmanylinux1_i686.whl
ed94c261b602b88fabd9de497adfe461 numpy1.15.0rc2cp37cp37mmanylinux1_x86_64.whl
6045f7e99b4e29ec5e5255aafafa9546 numpy1.15.0rc2cp37nonewin32.whl
d0cafbac87ba71cea7b3617931f1a71e numpy1.15.0rc2cp37nonewin_amd64.whl
c2e3c18e470506059b44e50d5153609a numpy1.15.0rc2.tar.gz
1709c599dcc04f37316df85df451b3d9 numpy1.15.0rc2.zip
SHA256
5e4f9a3ea77cfeae16e1227ddd887c33b24dcc38e90add9630d71bd3ad96c13a numpy1.15.0rc2cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
8d1f49ea7f50aeddbe5bead5af75aba20e15237908aedc6f35e3cd8548372783 numpy1.15.0rc2cp27cp27mmanylinux1_i686.whl
28cb017a0502e46d27a1f4af25c199e4609e3193c1f39b24b4a677d7a737f477 numpy1.15.0rc2cp27cp27mmanylinux1_x86_64.whl
8c02ccade177d82a366dba221eb6fcc85f63c3147817526883084c8b50aba471 numpy1.15.0rc2cp27cp27mumanylinux1_i686.whl
bc2073c9a97821b8bbf8cc58a3480aaf5897ee3c812427410aa03bd0615ed24e numpy1.15.0rc2cp27cp27mumanylinux1_x86_64.whl
316122b90b48dc7cd93232b8d0e6b82d73ef34e18f96d9c4d49f7be3f2b86759 numpy1.15.0rc2cp27nonewin32.whl
e2c57051f9126291b82043aefd01aa3f3523a7db27f20f6e0959e02983ee601f numpy1.15.0rc2cp27nonewin_amd64.whl
04847c434f6a9dce1785f4f6adf6d15d057677ec86ad7139e089f505040fc02f numpy1.15.0rc2cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
714b87ffc1cb76eb658898f0105cfec673615458b472f0c838a69d1de28ddaaf numpy1.15.0rc2cp34cp34mmanylinux1_i686.whl
8ddb2abf160e25b1c0a0dd648c686332c33d52df88eb7ed1df248eb25ffd2191 numpy1.15.0rc2cp34cp34mmanylinux1_x86_64.whl
558e102282d330234cfcc1b68e163e9ceb5baac26585a5506fd12c8ae406e0d2 numpy1.15.0rc2cp34nonewin32.whl
7db1973b8dd352a923c875c522c3f414c3e286fd12278e806ad635430cf7e906 numpy1.15.0rc2cp34nonewin_amd64.whl
8c962a352744e1f1df47665d12c24b59a8f30d6c1c492b6a1fb0a4be5a1a383c numpy1.15.0rc2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
3f9fa0257a0aab9ec18a205b3d5a10bf6c727913065d62fa61344604729559f4 numpy1.15.0rc2cp35cp35mmanylinux1_i686.whl
79049cfc7222de51bd8f58eddcd99196851a0401d91a82df293c6e9451b44b3e numpy1.15.0rc2cp35cp35mmanylinux1_x86_64.whl
0014321634f10f96f135b25183eaaa7fe595067534374f8ba80b9099ca90d74e numpy1.15.0rc2cp35nonewin32.whl
b12e5339885f291ff42c308aa1e0dd643899e2df73fa96b41121e2a921a0ac08 numpy1.15.0rc2cp35nonewin_amd64.whl
1a10572879d88786303e6ba12a9045b44a08d796b81a4fed3eaaaffa055c3730 numpy1.15.0rc2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
2d2a599d500e1654a8b1ee6e2ff255a8b6a2aff432bed1507a43f0adce2d0793 numpy1.15.0rc2cp36cp36mmanylinux1_i686.whl
c8d1495be39a8f04ebf0dd6ef9a0c6818d68f572da884b9b8e860cff99066701 numpy1.15.0rc2cp36cp36mmanylinux1_x86_64.whl
8a858dc23e49ae8cc4f8a9ee4806e2a271c4fb897c88ffcc1e72407e6331ec43 numpy1.15.0rc2cp36nonewin32.whl
4f20759b5244e80a063aa2224d8fe7a14802572d6a96ebd95a13ba72b6d3d5cc numpy1.15.0rc2cp36nonewin_amd64.whl
0a1d8a25093527532109405482522e61eaa77d5618897a5783beeb0f04d27de8 numpy1.15.0rc2cp37cp37mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c3a0fee0fa2228288cfd0f5dc63f529dac46791fa8f489d3ad2ef99a3e2f37bd numpy1.15.0rc2cp37cp37mmanylinux1_i686.whl
5227554a410cf6dbefb76f63b53381a4761cf8c9e9ca2f0e3bab6a27110ef9c6 numpy1.15.0rc2cp37cp37mmanylinux1_x86_64.whl
67005ca9a63c65d7bef2c9200bc15165dee30b7c977fe1d8eef1c78f3270d3e5 numpy1.15.0rc2cp37nonewin32.whl
9886b43c330e122855b8b6573db8444dd0fe5a4b407f156f08305b7b441a564d numpy1.15.0rc2cp37nonewin_amd64.whl
917faceae30edd62f29a9cc16a6f70200fa07ae15228f3eda3d4555e16285484 numpy1.15.0rc2.tar.gz
e402d58467cec78c6fd7f60bacf7105bf31e2b863e4982bdf6b3c8f9d6ca9b23 numpy1.15.0rc2.zip
v1.15.0rc1
charris released this
Assets
==========================
NumPy 1.15.0 Release Notes
NumPy 1.15.0 is a release with an unusual number of cleanups, many deprecations
of old functions, and improvements to many existing functions. Please read the
detailed descriptions below to see if you are affected.
For testing, we have switched to pytest as a replacement for the no longer
maintained nose framework. The old nose based interface remains for downstream
projects who may still be using it.
The Python versions supported by this release are 2.7, 3.43.6. The upcoming
3.7 release should also work, but you will need to compile from source using
Cython 0.28.2 or later. The wheels will be linked with OpenBLAS 3.0, which
should fix some of the linalg problems reported for NumPy 1.14.
Highlights
 NumPy has switched to pytest for testing.
 A new
numpy.printoptions
context manager.  Many improvements to the histogram functions.
 Support for unicode field names in python 2.7.
 Improved support for PyPy.
New functions

numpy.gcd
andnumpy.lcm
, to compute the greatest common divisor and least
common multiple. 
numpy.ma.stack
, thenumpy.stack
arrayjoining function generalized to
masked arrays. 
numpy.quantile
function, an interface topercentile
without factors of
100 
numpy.nanquantile
function, an interface tonanpercentile
without
factors of 100 
numpy.printoptions
, a context manager that sets print options temporarily
for the scope of thewith
block::with np.printoptions(precision=2):
... print(np.array([2.0]) / 3)
[0.67] 
numpy.histogram_bin_edges
, a function to get the edges of the bins used by a
histogram without needing to calculate the histogram. 
C functions
npy_get_floatstatus_barrier
andnpy_clear_floatstatus_barrier
have been added to deal with compiler optimization changing the order of
operations. See below for details.
Deprecations

Aliases of builtin
pickle
functions are deprecated, in favor of their
unaliasedpickle.<func>
names:numpy.loads
numpy.core.numeric.load
numpy.core.numeric.loads
numpy.ma.loads
,numpy.ma.dumps
numpy.ma.load
,numpy.ma.dump
 these functions already failed on
python 3 when called with a string.

Multidimensional indexing with anything but a tuple is deprecated. This means
that the index list inind = [slice(None), 0]; arr[ind]
should be changed
to a tuple, e.g.,ind = [slice(None), 0]; arr[tuple(ind)]
or
arr[(slice(None), 0)]
. That change is necessary to avoid ambiguity in
expressions such asarr[[[0, 1], [0, 1]]]
, currently interpreted as
arr[array([0, 1]), array([0, 1])]
, that will be interpreted
asarr[array([[0, 1], [0, 1]])]
in the future. 
Imports from the following submodules are deprecated, they will be removed
at some future date.numpy.testing.utils
numpy.testing.decorators
numpy.testing.nosetester
numpy.testing.noseclasses
numpy.core.umath_tests

Giving a generator to
numpy.sum
is now deprecated. This was undocumented
behavior, but worked. Previously, it would calculate the sum of the generator
expression. In the future, it might return a different result. Use
np.sum(np.from_iter(generator))
or the builtin Pythonsum
instead. 
Users of the CAPI should call
PyArrayResolveWriteBackIfCopy
or
PyArray_DiscardWritbackIfCopy
on any array with theWRITEBACKIFCOPY
flag set, before deallocating the array. A deprecation warning will be
emitted if those calls are not used when needed. 
Users of
numpy.nditer
should use the nditer object as a context manager
whenever one of the iterator operands is writeable so that numpy can manage
writeback semantics, or alternately, one can callit.close()
to trigger a
writeback. ARuntimeWarning
will otherwise be raised in those cases. Users
of the CAPI should callNpyIter_Close
beforeNpyIter_Deallocate
. 
Users of
nditer
should use the nditer object as a context manager
anytime one of the iterator operands is writeable, so that numpy can
manage writeback semantics, or should callit.close()
. A
RuntimeWarning
may be emitted otherwise in these cases. 
The
normed
argument ofnp.histogram
, deprecated long ago in 1.6.0,
now emits aDeprecationWarning
.
Future Changes
 NumPy 1.16 will drop support for Python 3.4.
 NumPy 1.17 will drop support for Python 2.7.
Compatibility notes
Compiled testing modules renamed and made private
The following compiled modules have been renamed and made private:
umath_tests
>_umath_tests
test_rational
>_rational_tests
multiarray_tests
>_multiarray_tests
struct_ufunc_test
>_struct_ufunc_tests
operand_flag_tests
>_operand_flag_tests
The umath_tests
module is still available for backwards compatibility, but
will be removed in the future.
The NpzFile
returned by np.savez
is now a collections.abc.Mapping
This means it behaves like a readonly dictionary, and has a new .values()
method and len()
implementation.
For python 3, this means that .iteritems()
, .iterkeys()
have been
deprecated, and .keys()
and .items()
now return views and not lists.
This is consistent with how the builtin dict
type changed between python 2
and python 3.
Under certain conditions, nditer
must be used in a context manager
When using an numpy.nditer
with the "writeonly"
or "readwrite"
flags, there
are some circumstances where nditer doesn't actually give you a view of the
writable array. Instead, it gives you a copy, and if you make changes to the
copy, nditer later writes those changes back into your actual array. Currently,
this writeback occurs when the array objects are garbage collected, which makes
this API errorprone on CPython and entirely broken on PyPy. Therefore,
nditer
should now be used as a context manager whenever it is used
with writeable arrays, e.g., with np.nditer(...) as it: ...
. You may also
explicitly call it.close()
for cases where a context manager is unusable,
for instance in generator expressions.
Numpy has switched to using pytest instead of nose for testing
The last nose release was 1.3.7 in June, 2015, and development of that tool has
ended, consequently NumPy has now switched to using pytest. The old decorators
and nose tools that were previously used by some downstream projects remain
available, but will not be maintained. The standard testing utilities,
assert_almost_equal
and such, are not be affected by this change except for
the nose specific functions import_nose
and raises
. Those functions are
not used in numpy, but are kept for downstream compatibility.
Numpy no longer monkeypatches ctypes
with __array_interface__
Previously numpy added __array_interface__
attributes to all the integer
types from ctypes
.
np.ma.notmasked_contiguous
and np.ma.flatnotmasked_contiguous
always return lists
This is the documented behavior, but previously the result could be any of
slice, None, or list.
All downstream users seem to check for the None
result from
flatnotmasked_contiguous
and replace it with []
. Those callers will
continue to work as before.
np.squeeze
restores old behavior of objects that cannot handle an axis
argument
Prior to version 1.7.0
, numpy.squeeze
did not have an axis
argument and
all empty axes were removed by default. The incorporation of an axis
argument made it possible to selectively squeeze single or multiple empty axes,
but the old API expectation was not respected because axes could still be
selectively removed (silent success) from an object expecting all empty axes to
be removed. That silent, selective removal of empty axes for objects expecting
the old behavior has been fixed and the old behavior restored.
unstructured void array's .item
method now returns a bytes object
.item
now returns a bytes
object instead of a buffer or byte array.
This may affect code which assumed the return value was mutable, which is no
longer the case.
copy.copy
and copy.deepcopy
no longer turn masked
into an array
Since np.ma.masked
is a readonly scalar, copying should be a noop. These
functions now behave consistently with np.copy()
.
Multifield Indexing of Structured Arrays will still return a copy
The change that multifield indexing of structured arrays returns a view
instead of a copy is pushed back to 1.16. A new method
numpy.lib.recfunctions.repack_fields
has been introduced to help mitigate
the effects of this change, which can be used to write code compatible with
both numpy 1.15 and 1.16. For more information on how to update code to account
for this future change see the "accessing multiple fields" section of the
user guide <https://docs.scipy.org/doc/numpy/user/basics.rec.html>
__.
C API changes
New function NpyIter_Close
The function NpyIter_Close
has been added and should be called before
NpyIter_Deallocate
to resolve possible writebackenabled arrays.
New functions npy_get_floatstatus_barrier
and npy_clear_floatstatus_barrier
Functions npy_get_floatstatus_barrier
and npy_clear_floatstatus_barrier
have been added and should be used in place of the npy_get_floatstatus
and
npy_clear_status
functions. Optimizing compilers like GCC 8.1 and Clang
were rearranging the order of operations when the previous functions were used
in the ufunc SIMD functions, resulting in the floatstatus flags being checked
before the operation whose status we wanted to check was run. See #10339 <https://github.com/numpy/numpy/issues/10370>
__.
Changes to PyArray_GetDTypeTransferFunction
PyArray_GetDTypeTransferFunction
now defaults to using userdefined
copyswapn
/ copyswap
for userdefined dtypes. If this causes a
significant performance hit, consider implementing copyswapn
to reflect the
implementation of PyArray_GetStridedCopyFn
. See #10898 <https://github.com/numpy/numpy/pull/10898>
__.
 Functions
npy_get_floatstatus_barrier
andnpy_clear_floatstatus_barrier
have been added and should be used in place of thenpy_get_floatstatus
and
npy_clear_status
functions. Optimizing compilers like GCC 8.1 and Clang
were rearranging the order of operations when the previous functions were
used in the ufunc SIMD functions, resulting in the floatstatus flags being '
checked before the operation whose status we wanted to check was run.
See#10339 <https://github.com/numpy/numpy/issues/10370>
__.
New Features
np.gcd
and np.lcm
ufuncs added for integer and objects types
These compute the greatest common divisor, and lowest common multiple,
respectively. These work on all the numpy integer types, as well as the
builtin arbitraryprecision Decimal
and long
types.
Support for crossplatform builds for iOS
The build system has been modified to add support for the
_PYTHON_HOST_PLATFORM
environment variable, used by distutils
when
compiling on one platform for another platform. This makes it possible to
compile NumPy for iOS targets.
This only enables you to compile NumPy for one specific platform at a time.
Creating a full iOScompatible NumPy package requires building for the 5
architectures supported by iOS (i386, x86_64, armv7, armv7s and arm64), and
combining these 5 compiled builds products into a single "fat" binary.
return_indices
keyword added for np.intersect1d
New keyword return_indices
returns the indices of the two input arrays
that correspond to the common elements.
np.quantile
and np.nanquantile
Like np.percentile
and np.nanpercentile
, but takes quantiles in [0, 1]
rather than percentiles in [0, 100]. np.percentile
is now a thin wrapper
around np.quantile
with the extra step of dividing by 100.
Build system
Added experimental support for the 64bit RISCV architecture.
Improvements
np.ufunc.reduce
and related functions now accept an initial value
np.ufunc.reduce
, np.sum
, np.prod
, np.min
and np.max
all
now accept an initial
keyword argument that specifies the value to start
the reduction with.
np.flip
can operate over multiple axes
np.flip
now accepts None, or tuples of int, in its axis
argument. If
axis is None, it will flip over all the axes.
histogram
and histogramdd
functions have moved to np.lib.histograms
These were originally found in np.lib.function_base
. They are still
available under their unscoped np.histogram(dd)
names, and
to maintain compatibility, aliased at np.lib.function_base.histogram(dd)
.
Code that does from np.lib.function_base import *
will need to be updated
with the new location, and should consider not using import *
in future.
histogram
will accept NaN values when explicit bins are given
Previously it would fail when trying to compute a finite range for the data.
Since the range is ignored anyway when the bins are given explicitly, this error
was needless.
Note that calling histogram
on NaN values continues to raise the
RuntimeWarning
s typical of working with nan values, which can be silenced
as usual with errstate
.
histogram
works on datetime types, when explicit bin edges are given
Dates, times, and timedeltas can now be histogrammed. The bin edges must be
passed explicitly, and are not yet computed automatically.
histogram
"auto" estimator handles limited variance better
No longer does an IQR of 0 result in n_bins=1
, rather the number of bins
chosen is related to the data size in this situation.
The edges retuned by `histogramand
histogramdd`` now match the data float type
When passed np.float16
, np.float32
, or np.longdouble
data, the
returned edges are now of the same dtype. Previously, histogram
would only
return the same type if explicit bins were given, and histogram
would
produce float64
bins no matter what the inputs.
histogramdd
allows explicit ranges to be given in a subset of axes
The range
argument of numpy.histogramdd
can now contain None
values to
indicate that the range for the corresponding axis should be computed from the
data. Previously, this could not be specified on a peraxis basis.
np.r_
works with 0d arrays, and np.ma.mr_
works with np.ma.masked
0d arrays passed to the r_
and mr_
concatenation helpers are now treated as
though they are arrays of length 1. Previously, passing these was an error.
As a result, numpy.ma.mr_
now works correctly on the masked
constant.
np.ptp
accepts a keepdims
argument, and extended axis tuples
np.ptp
(peaktopeak) can now work over multiple axes, just like np.max
and np.min
.
MaskedArray.astype
now is identical to ndarray.astype
This means it takes all the same arguments, making more code written for
ndarray work for masked array too.
Enable AVX2/AVX512 at compile time
Change to simd.inc.src to allow use of AVX2 or AVX512 at compile time. Previously
compilation for avx2 (or 512) with march=native would still use the SSE
code for the simd functions even when the rest of the code got AVX2.
nan_to_num
always returns scalars when receiving scalar or 0d inputs
Previously an array was returned for integer scalar inputs, which is
inconsistent with the behavior for float inputs, and that of ufuncs in general.
For all types of scalar or 0d input, the result is now a scalar.
np.flatnonzero
works on numpyconvertible types
np.flatnonzero
now uses np.ravel(a)
instead of a.ravel()
, so it
works for lists, tuples, etc.
np.interp
returns numpy scalars rather than builtin scalars
Previously np.interp(0.5, [0, 1], [10, 20])
would return a float
, but
now it returns a np.float64
object, which more closely matches the behavior
of other functions.
Additionally, the special case of np.interp(object_array_0d, ...)
is no
longer supported, as np.interp(object_array_nd)
was never supported anyway.
As a result of this change, the period
argument can now be used on 0d
arrays.
Allow dtype field names to be unicode in Python 2
Previously np.dtype([(u'name', float)])
would raise a TypeError
in
Python 2, as only bytestrings were allowed in field names. Now any unicode
string field names will be encoded with the ascii
codec, raising a
UnicodeEncodeError
upon failure.
This change makes it easier to write Python 2/3 compatible code using
from __future__ import unicode_literals
, which previously would cause
string literal field names to raise a TypeError in Python 2.
Comparison ufuncs accept dtype=object
, overriding the default bool
This allows object arrays of symbolic types, which override ==
and other
operators to return expressions, to be compared elementwise with
np.equal(a, b, dtype=object)
.
sort
functions accept kind='stable'
Up until now, to perform a stable sort on the data, the user must do:
>>> np.sort([5, 2, 6, 2, 1], kind='mergesort')
[1, 2, 2, 5, 6]
because merge sort is the only stable sorting algorithm available in
NumPy. However, having kind='mergesort' does not make it explicit that
the user wants to perform a stable sort thus harming the readability.
This change allows the user to specify kind='stable' thus clarifying
the intent.
Do not make temporary copies for inplace accumulation
When ufuncs perform accumulation they no longer make temporary copies because
of the overlap between input an output, that is, the next element accumulated
is added before the accumulated result is stored in its place, hence the
overlap is safe. Avoiding the copy results in faster execution.
linalg.matrix_power
can now handle stacks of matrices
Like other functions in linalg
, matrix_power
can now deal with arrays
of dimension larger than 2, which are treated as stacks of matrices. As part
of the change, to further improve consistency, the name of the first argument
has been changed to a
(from M
), and the exceptions for nonsquare
matrices have been changed to LinAlgError
(from ValueError
).
Increased performance in random.permutation
for multidimensional arrays
permutation
uses the fast path in random.shuffle
for all input
array dimensions. Previously the fast path was only used for 1d arrays.
Generalized ufuncs now accept axes
, axis
and keepdims
arguments
One can control over which axes a generalized ufunc operates by passing in an
axes
argument, a list of tuples with indices of particular axes. For
instance, for a signature of (i,j),(j,k)>(i,k)
appropriate for matrix
multiplication, the base elements are twodimensional matrices and these are
taken to be stored in the two last axes of each argument. The corresponding
axes keyword would be [(2, 1), (2, 1), (2, 1)]
. If one wanted to
use leading dimensions instead, one would pass in [(0, 1), (0, 1), (0, 1)]
.
For simplicity, for generalized ufuncs that operate on 1dimensional arrays
(vectors), a single integer is accepted instead of a singleelement tuple, and
for generalized ufuncs for which all outputs are scalars, the (empty) output
tuples can be omitted. Hence, for a signature of (i),(i)>()
appropriate
for an inner product, one could pass in axes=[0, 0]
to indicate that the
vectors are stored in the first dimensions of the two inputs arguments.
As a shortcut for generalized ufuncs that are similar to reductions, i.e.,
that act on a single, shared core dimension such as the inner product example
above, one can pass an axis
argument. This is equivalent to passing in
axes
with identical entries for all arguments with that core dimension
(e.g., for the example above, axes=[(axis,), (axis,)]
).
Furthermore, like for reductions, for generalized ufuncs that have inputs that
all have the same number of core dimensions and outputs with no core dimension,
one can pass in keepdims
to leave a dimension with size 1 in the outputs,
thus allowing proper broadcasting against the original inputs. The location of
the extra dimension can be controlled with axes
. For instance, for the
innerproduct example, keepdims=True, axes=[2, 2, 2]
would act on the
innerproduct example, keepdims=True, axis=2
would act on the
onebutlast dimension of the input arguments, and leave a size 1 dimension in
that place in the output.
float128 values now print correctly on ppc systems
Previously printing float128 values was buggy on ppc, since the special
doubledouble floatingpointformat on these systems was not accounted for.
float128s now print with correct rounding and uniqueness.
Warning to ppc users: You should upgrade glibc if it is version <=2.23,
especially if using float128. On ppc, glibc's malloc in these version often
misaligns allocated memory which can crash numpy when using float128 values.
New np.take_along_axis
and np.put_along_axis
functions
When used on multidimensional arrays, argsort
, argmin
, argmax
, and
argpartition
return arrays that are difficult to use as indices.
take_along_axis
provides an easy way to use these indices to lookup values
within an array, so that::
np.take_along_axis(a, np.argsort(a, axis=axis), axis=axis)
is the same as::
np.sort(a, axis=axis)
np.put_along_axis
acts as the dual operation for writing to these indices
within an array.
Checksums
MD5
ae603a7948555f5a877aa9e62d4de4a5 numpy1.15.0rc1cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
2b2bdf4a2e2d2be118740c036952b12a numpy1.15.0rc1cp27cp27mmanylinux1_i686.whl
d0f34f5a96b108e39c5f7c349de4b079 numpy1.15.0rc1cp27cp27mmanylinux1_x86_64.whl
91156245b11f2606fb9679ad11cd3788 numpy1.15.0rc1cp27cp27mumanylinux1_i686.whl
34f0cc01a35fd61bbf25ee64f2dac5ff numpy1.15.0rc1cp27cp27mumanylinux1_x86_64.whl
3d003bfc970de7364c7a509f1905b017 numpy1.15.0rc1cp27nonewin32.whl
2e63c6cef05817b00aec3550075e4a32 numpy1.15.0rc1cp27nonewin_amd64.whl
976c3898f88d06f2fd4e7e4acd454e37 numpy1.15.0rc1cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
faa3445ef691307efc371c82d34dbbfb numpy1.15.0rc1cp34cp34mmanylinux1_i686.whl
fe5ef50a0f8b21dd16283cbfd05ff438 numpy1.15.0rc1cp34cp34mmanylinux1_x86_64.whl
77bad7aeff1472e6777aedd62f6b7a06 numpy1.15.0rc1cp34nonewin32.whl
e8890f675820efb7718a02b071edb3d3 numpy1.15.0rc1cp34nonewin_amd64.whl
5a095e7fef444bb70cf43e33fd71a2b0 numpy1.15.0rc1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
cf92df0e604414593f21976b998f97ba numpy1.15.0rc1cp35cp35mmanylinux1_i686.whl
0cb3a14f65a556652a143fd8cdff21e6 numpy1.15.0rc1cp35cp35mmanylinux1_x86_64.whl
e146ae6eb6bd78b928ae624a9db6a323 numpy1.15.0rc1cp35nonewin32.whl
e77c2df92eec2f87a89b5ecffe31de8e numpy1.15.0rc1cp35nonewin_amd64.whl
ed423c6807ae7b5488546436259d281f numpy1.15.0rc1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d7455ee275bae39c68e130e4848ebb80 numpy1.15.0rc1cp36cp36mmanylinux1_i686.whl
a7e88e6d9c6f5bd59b354b16538a3cc5 numpy1.15.0rc1cp36cp36mmanylinux1_x86_64.whl
e5f8e934ff03979bdb3dc6041ef40859 numpy1.15.0rc1cp36nonewin32.whl
a0a932cc07062bb70ad9ff893b57d2b7 numpy1.15.0rc1cp36nonewin_amd64.whl
f6c1139993cce7bea5b78418ecf56ed1 numpy1.15.0rc1.tar.gz
ff5045d88b409bfeff664b13a110400e numpy1.15.0rc1.zip
SHA256
d5e4c5c34745d626d8f6613e4dd9b8d88b2dd9a52ea8764ed934cc5a8cb9cc22 numpy1.15.0rc1cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
744d8c46272a5f2240fc750f7da1d831d90d0f1ce938d5540bcaabfb0f762a53 numpy1.15.0rc1cp27cp27mmanylinux1_i686.whl
9fe328aa046c5c9359d07f5161bdcdaaae8cd6d4fcf0761a41db424628f805d3 numpy1.15.0rc1cp27cp27mmanylinux1_x86_64.whl
85dbc672c5f2683147f5ee1af0793a5159411340f84fea99469dfd699def5bfd numpy1.15.0rc1cp27cp27mumanylinux1_i686.whl
9870ddc0055dbe5d77f1a7f5abd493737f0728f88e15fdafc459ea5e64a82efa numpy1.15.0rc1cp27cp27mumanylinux1_x86_64.whl
23ef8080613e5f8743b94d6e075e5894418a4a8a95a2eb7da3e524d180370512 numpy1.15.0rc1cp27nonewin32.whl
647dfec3cad0ab6a443a5661ad09cc35c2dd317f843909535d4183b05fea1860 numpy1.15.0rc1cp27nonewin_amd64.whl
fb78cb51abd23395a320b3608f35b8a2afcd76f32954184cf84b5db07e3c8649 numpy1.15.0rc1cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
baf9a2aa084e184cbf9b91702a26491fa263826ae941160527645cff84bf96b5 numpy1.15.0rc1cp34cp34mmanylinux1_i686.whl
2afb65982702da7905640afc63688b6b38c183f410e8df9dfb88c45a430d34f3 numpy1.15.0rc1cp34cp34mmanylinux1_x86_64.whl
00fa0b94566db5512fd402150dbadaeb38e0e78521673242f8ef687c343efcfe numpy1.15.0rc1cp34nonewin32.whl
fc1fa913fd0b3d80aed6744b7837176d755e0a6e023364db006c8d17679d64aa numpy1.15.0rc1cp34nonewin_amd64.whl
2d17cf40bd5b97c504fb4da00f1c0686c1ef9ebf363b8d5667269e66b07a2544 numpy1.15.0rc1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
01f46c1149d7571860f758299e5a0b6153d6d34f8821adf0c87d8d6f3e9517c5 numpy1.15.0rc1cp35cp35mmanylinux1_i686.whl
d80d04f9ea96c5d8fc27b0bc47122ad3459946f63fb49d26259decda25677221 numpy1.15.0rc1cp35cp35mmanylinux1_x86_64.whl
f2394a623f83c75dec54ab366ccac879ae01dcff9fa3391c97bda40c2b4b41b3 numpy1.15.0rc1cp35nonewin32.whl
3cff020d7beba3668c7e67a5921a4596a6abd917815691b93a5c87c5ae2f2ed3 numpy1.15.0rc1cp35nonewin_amd64.whl
ce9295610854f1dc749cc05a1f705539c983cfd4e99f3e7c01106f2d0f49d132 numpy1.15.0rc1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
8a211172894d6b21e8d2133dbdced490b95492707982cffce32b97fcada718ca numpy1.15.0rc1cp36cp36mmanylinux1_i686.whl
e16b6b066a19fb595eea0bd29ec0f9429af6bda3d0f7be3f31e57bff2b735ac5 numpy1.15.0rc1cp36cp36mmanylinux1_x86_64.whl
b1dcad0333986cbbbfa547d57807047d9777d5e1fd56c47eb47c59050e4485b1 numpy1.15.0rc1cp36nonewin32.whl
0e1871bb9307fbc3173c198f5536792185d20750cd5ad9907a14d49f767464b5 numpy1.15.0rc1cp36nonewin_amd64.whl
c57f33f83f61ad819e3fcb41afa54d224d03377d6f33be57289924cc193ead63 numpy1.15.0rc1.tar.gz
592657828982b13ff48a56c5f75fb2f286709f7b830ec211029ac7970027b54d numpy1.15.0rc1.zip
v1.14.5
mattip released this
Assets
NumPy 1.14.5 Release Notes
This is a bugfix release for bugs reported following the 1.14.4 release. The
most significant fixes are:
 fixes for compilation errors on alpine and NetBSD
The Python versions supported in this release are 2.7 and 3.4  3.6. The Python
3.6 wheels available from PIP are built with Python 3.6.2 and should be
compatible with all previous versions of Python 3.6. The source releases were
cythonized with Cython 0.28.2 and should work for the upcoming Python 3.7.
Contributors
A total of 1 person contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Charles Harris
Pull requests merged
A total of 2 pull requests were merged for this release.
#11274 <https://github.com/numpy/numpy/pull/11274>
__: BUG: Correct use of NPY_UNUSED.#11294 <https://github.com/numpy/numpy/pull/11294>
__: BUG: Remove extra trailing parentheses.
Checksums
MD5
429afa5c8720016214a79779f774d3a4 numpy1.14.5cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
de8f5c6c0e46eedf8d92c1a7ba3fccf7 numpy1.14.5cp27cp27mmanylinux1_i686.whl
6315999b5142d22ce7bd9e74b1b4e3ab numpy1.14.5cp27cp27mmanylinux1_x86_64.whl
397a64608b5809983ff07842ebe0d353 numpy1.14.5cp27cp27mumanylinux1_i686.whl
6759e2f4bd57727f1ab9d6c9611b3f9d numpy1.14.5cp27cp27mumanylinux1_x86_64.whl
2d5609f384fccf9fe4e6172dd4fed3d0 numpy1.14.5cp27nonewin32.whl
c0d5fc38ab45f19cbd12200ff4ea45dd numpy1.14.5cp27nonewin_amd64.whl
0a77f36af749e5c3546c3d310f571256 numpy1.14.5cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ae15c8254a4a3ebfc45894617ce030a2 numpy1.14.5cp34cp34mmanylinux1_i686.whl
78c67b4b4f8f3f8bd9c2f897f9d40f60 numpy1.14.5cp34cp34mmanylinux1_x86_64.whl
5263ec59028d508992c15263993698d0 numpy1.14.5cp34nonewin32.whl
193365c9f1bb2086b47afe9c797ff415 numpy1.14.5cp34nonewin_amd64.whl
90caeba061eec5dbebadad5c8bad3a0c numpy1.14.5cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
129848206c41b68071fe9cb469a66846 numpy1.14.5cp35cp35mmanylinux1_i686.whl
395c0058b7ec0ae0cad1e052362e9aeb numpy1.14.5cp35cp35mmanylinux1_x86_64.whl
a542ea0d9047df0da8ab69e90d60dbdc numpy1.14.5cp35nonewin32.whl
c5c86e11b5071c0ca0bb11f6a84f20e6 numpy1.14.5cp35nonewin_amd64.whl
350120bd20a0a45857b4c39e901af41b numpy1.14.5cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
5a0682a984fcf6f87a9f10760d896b70 numpy1.14.5cp36cp36mmanylinux1_i686.whl
c5596c3d232345d0f0176cd02e6efe92 numpy1.14.5cp36cp36mmanylinux1_x86_64.whl
c0306cbad68f8084e977121ba104b634 numpy1.14.5cp36nonewin32.whl
01b5bd7897e1306660c7ea6a30391cc4 numpy1.14.5cp36nonewin_amd64.whl
e3189ee851c3a0e2e6e4c6e80a711ec8 numpy1.14.5.tar.gz
02d940a6931703de2c41fa5590ac7e98 numpy1.14.5.zip
SHA256
e1864a4e9f93ddb2dc6b62ccc2ec1f8250ff4ac0d3d7a15c8985dd4e1fbd6418 numpy1.14.5cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
085afac75bbc97a096744fcfc97a4b321c5a87220286811e85089ae04885acdd numpy1.14.5cp27cp27mmanylinux1_i686.whl
6c57f973218b776195d0356e556ec932698f3a563e2f640cfca7020086383f50 numpy1.14.5cp27cp27mmanylinux1_x86_64.whl
589336ba5199c8061239cf446ee2f2f1fcc0c68e8531ee1382b6fc0c66b2d388 numpy1.14.5cp27cp27mumanylinux1_i686.whl
5edf1acc827ed139086af95ce4449b7b664f57a8c29eb755411a634be280d9f2 numpy1.14.5cp27cp27mumanylinux1_x86_64.whl
6b82b81c6b3b70ed40bc6d0b71222ebfcd6b6c04a6e7945a936e514b9113d5a3 numpy1.14.5cp27nonewin32.whl
385f1ce46e08676505b692bfde918c1e0b350963a15ef52d77691c2cf0f5dbf6 numpy1.14.5cp27nonewin_amd64.whl
758d1091a501fd2d75034e55e7e98bfd1370dc089160845c242db1c760d944d9 numpy1.14.5cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c725d11990a9243e6ceffe0ab25a07c46c1cc2c5dc55e305717b5afe856c9608 numpy1.14.5cp34cp34mmanylinux1_i686.whl
07379fe0b450f6fd6e5934a9bc015025bb4ce1c8fbed3ca8bef29328b1bc9570 numpy1.14.5cp34cp34mmanylinux1_x86_64.whl
9e1f53afae865cc32459ad211493cf9e2a3651a7295b7a38654ef3d123808996 numpy1.14.5cp34nonewin32.whl
4d278c2261be6423c5e63d8f0ceb1b0c6db3ff83f2906f4b860db6ae99ca1bb5 numpy1.14.5cp34nonewin_amd64.whl
d696a8c87315a83983fc59dd27efe034292b9e8ad667aeae51a68b4be14690d9 numpy1.14.5cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
2df854df882d322d5c23087a4959e145b953dfff2abe1774fec4f639ac2f3160 numpy1.14.5cp35cp35mmanylinux1_i686.whl
baadc5f770917ada556afb7651a68176559f4dca5f4b2d0947cd15b9fb84fb51 numpy1.14.5cp35cp35mmanylinux1_x86_64.whl
2d6481c6bdab1c75affc0fc71eb1bd4b3ecef620d06f2f60c3f00521d54be04f numpy1.14.5cp35nonewin32.whl
51c5dcb51cf88b34b7d04c15f600b07c6ccbb73a089a38af2ab83c02862318da numpy1.14.5cp35nonewin_amd64.whl
8b8dcfcd630f1981f0f1e3846fae883376762a0c1b472baa35b145b911683b7b numpy1.14.5cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
9d69967673ab7b028c2df09cae05ba56bf4e39e3cb04ebe452b6035c3b49848e numpy1.14.5cp36cp36mmanylinux1_i686.whl
8622db292b766719810e0cb0f62ef6141e15fe32b04e4eb2959888319e59336b numpy1.14.5cp36cp36mmanylinux1_x86_64.whl
97fa8f1dceffab782069b291e38c4c2227f255cdac5f1e3346666931df87373e numpy1.14.5cp36nonewin32.whl
381ad13c30cd1d0b2f3da8a0c1a4aa697487e8bb0e9e0cbeb7439776bcb645f8 numpy1.14.5cp36nonewin_amd64.whl
1b4a02758fb68a65ea986d808867f1d6383219c234aef553a8741818e795b529 numpy1.14.5.tar.gz
a4a433b3a264dbc9aa9c7c241e87c0358a503ea6394f8737df1683c7c9a102ac numpy1.14.5.zip
v1.14.4
charris released this
Assets
==========================
NumPy 1.14.4 Release Notes
This is a bugfix release for bugs reported following the 1.14.3 release. The
most significant fixes are:

fixes for compiler instruction reordering that resulted in NaN's not being
properly propagated innp.max
andnp.min
, 
fixes for bus faults on SPARC and older ARM due to incorrect alignment
checks.
There are also improvements to printing of long doubles on PPC platforms. All
is not yet perfect on that platform, the whitespace padding is still incorrect
and is to be fixed in numpy 1.15, consequently NumPy still fails some
printingrelated (and other) unit tests on ppc systems. However, the printed
values are now correct.
Note that NumPy will error on import if it detects incorrect float32 dot
results. This problem has been seen on the Mac when working in the Anaconda
enviroment and is due to a subtle interaction between MKL and PyQt5. It is not
strictly a NumPy problem, but it is best that users be aware of it. See the
gh8577 NumPy issue for more information.
The Python versions supported in this release are 2.7 and 3.4  3.6. The Python
3.6 wheels available from PIP are built with Python 3.6.2 and should be
compatible with all previous versions of Python 3.6. The source releases were
cythonized with Cython 0.28.2 and should work for the upcoming Python 3.7.
Contributors
A total of 7 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Allan Haldane
 Charles Harris
 Marten van Kerkwijk
 Matti Picus
 Pauli Virtanen
 Ryan Soklaski +
 Sebastian Berg
Pull requests merged
A total of 11 pull requests were merged for this release.
 #11104: BUG: str of DOUBLE_DOUBLE format wrong on ppc64
 #11170: TST: linalg: add regression test for gh8577
 #11174: MAINT: add sanitychecks to be run at import time
 #11181: BUG: void dtype setup checked offset not actual pointer for alignment
 #11194: BUG: Python2 doubles don't print correctly in interactive shell.
 #11198: BUG: optimizing compilers can reorder call to npy_get_floatstatus
 #11199: BUG: reduce using SSE only warns if inside SSE loop
 #11203: BUG: Bytes delimiter/comments in genfromtxt should be decoded
 #11211: BUG: Fix reference count/memory leak exposed by better testing
 #11219: BUG: Fixes einsum broadcasting bug when optimize=True
 #11251: DOC: Document 1.14.4 release.
Checksums
MD5
118e010f76fba91f05111e775d08b9d2 numpy1.14.4cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a08af11af72e8393d61f1724e2a42258 numpy1.14.4cp27cp27mmanylinux1_i686.whl
bbf56f4de32bb2c4215e01ea4f1b9445 numpy1.14.4cp27cp27mmanylinux1_x86_64.whl
b5e17dcc08205a278ffd33c6baeb7562 numpy1.14.4cp27cp27mumanylinux1_i686.whl
e6844d6134fed4f79b52cd89d66edb76 numpy1.14.4cp27cp27mumanylinux1_x86_64.whl
e9d4ab30ffee0f57da2292ed2c42bdcb numpy1.14.4cp27nonewin32.whl
ff04e3451a90fdf9ae8b6db8b3e8c2d6 numpy1.14.4cp27nonewin_amd64.whl
fbe6a5a9a0de9f85bcb729702a132769 numpy1.14.4cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
33a177cf9d60fa26d30dc80b7163a374 numpy1.14.4cp34cp34mmanylinux1_i686.whl
6335ee571648d8db7561a619328b69c7 numpy1.14.4cp34cp34mmanylinux1_x86_64.whl
e53dd3796a0cdec43037b18c5c54d1a3 numpy1.14.4cp34nonewin32.whl
aab911c898c58073b47a2d1f28228a41 numpy1.14.4cp34nonewin_amd64.whl
a05e215d9443c838a531119eb5c1eadc numpy1.14.4cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
7c5f7ff2cccb13c22b87f768ac1cc6e2 numpy1.14.4cp35cp35mmanylinux1_i686.whl
d22105d03a15c9fd6ec4ecffa4b1f764 numpy1.14.4cp35cp35mmanylinux1_x86_64.whl
7a5d4c66c7f6e430eb73b5683d99cacb numpy1.14.4cp35nonewin32.whl
cf0c074d9243f8bf6eff8291ac12a003 numpy1.14.4cp35nonewin_amd64.whl
79233bdad30a65beb515c86a4612102d numpy1.14.4cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
135139bd2ec26e2b52bdd2d36be94c44 numpy1.14.4cp36cp36mmanylinux1_i686.whl
9c56d525cf6da2b8489e723d72ccc9a2 numpy1.14.4cp36cp36mmanylinux1_x86_64.whl
ec9af9e19aac597e1a245ada9c333e2d numpy1.14.4cp36nonewin32.whl
f8ec9c6167f2b0d08066ec78c3a01a4c numpy1.14.4cp36nonewin_amd64.whl
7de00fc3be91a3ab913d4efe206b3928 numpy1.14.4.tar.gz
a8a23723342a561e579757553e9db73a numpy1.14.4.zip
SHA256
c0c4bdcb771a147cb14286e3aeb72267e1664652d4150b0df255f0c210166a62 numpy1.14.4cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
939376b3b8d9bd42529a2713534c9bae7f11c774614d4d2f7f2a38cae96101f1 numpy1.14.4cp27cp27mmanylinux1_i686.whl
6105d909e56c4f3f173a7294154eee5da80853104e9c3ebcf9e523fb3bb6cf70 numpy1.14.4cp27cp27mmanylinux1_x86_64.whl
3ed68b8ef0635e12b06c216d3ed33572d9c15b05a5a5d6ab870d073190c3eef3 numpy1.14.4cp27cp27mumanylinux1_i686.whl
1dc831683f18c11e6b5b7ad3610b9f00417b8d3fc63a8adcdbe68844d9dd6f62 numpy1.14.4cp27cp27mumanylinux1_x86_64.whl
8d87ac65d830ee3087e6bd02b0201e68aed4c715ff2e227e3640e7ded38d8a2e numpy1.14.4cp27nonewin32.whl
7fbceea93b6877419d84516705a265dfc4626939a29107a4d04db599bf6cdf8d numpy1.14.4cp27nonewin_amd64.whl
a1b4a80d59658fc438716095deb1971c6315482b461d976f760d920b6509fd5d numpy1.14.4cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ef7a07f6a77658a1038e6d22e53458129c04a95b5770f080b5741320d9491e32 numpy1.14.4cp34cp34mmanylinux1_i686.whl
c5065b3aec37cd1b7ec2882b3ab86e200d15219a0fb96fea65a16c6b59d3c0f0 numpy1.14.4cp34cp34mmanylinux1_x86_64.whl
b2b2741da83b1e016094b2fef2cadec1abd3ccd3d97428634ec6afe1dcb699b8 numpy1.14.4cp34nonewin32.whl
419dfe9bcb09d2e87ecf296c5ebf2b047c568419c89588acc9dbce6d2d761bea numpy1.14.4cp34nonewin_amd64.whl
be4664fe153ca6dbd961fb06f99b9b88b114ab44649376253b540aafbf42e469 numpy1.14.4cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
0d6d7bbcb54babaf39fe658bcc6f79641c9c62813c6d477802d783c7ba1a437c numpy1.14.4cp35cp35mmanylinux1_i686.whl
f54114395aabe13c7c4e4b425145cfd998eaf0781e87a9e9b2e77426f1ec8a82 numpy1.14.4cp35cp35mmanylinux1_x86_64.whl
eb6ccd2b47d43199ec9a7c39bd45e399ccb5756e7367aaf92ced3c46fa67b16b numpy1.14.4cp35nonewin32.whl
f6a4ae8d5e1126bf4d8520a9aa6a82d067ab3ce7d21f58f0d50ead2aebda7bfb numpy1.14.4cp35nonewin_amd64.whl
b037993dfb1175a68b6a2bfc6b1c2af57c09031d1332fea3ab25a539b43bd475 numpy1.14.4cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
e6c24c83ca64d447a18f041bd53cbe96c74405f59939b6006755105583b62629 numpy1.14.4cp36cp36mmanylinux1_i686.whl
f29a9c5607b0fded7a9f0871dbd06918a88cb0a465acfac5c67f92d1a4115d48 numpy1.14.4cp36cp36mmanylinux1_x86_64.whl
d9ceb6c680ffbe55ef6cf9d93558e0ddb72d616b885d77c536920f3da2112703 numpy1.14.4cp36nonewin32.whl
9e6694912f13afd8b1e15aa8002e9c951a377c94080c5442de154d743a69b3ff numpy1.14.4cp36nonewin_amd64.whl
c9a83644685edf8b5383b7632daa37df115b41aa20ca6ec3139e707d88f7c903 numpy1.14.4.tar.gz
2185a0f31ecaa0792264fa968c8e0ba6d96acf144b26e2e1d1cd5b77fc11a691 numpy1.14.4.zip
v1.14.3
ahaldane released this
Assets
==========================
NumPy 1.14.3 Release Notes
This is a bugfix release for a few bugs reported following the 1.14.2 release:
 np.lib.recfunctions.fromrecords accepts a listoflists, until 1.15
 In python2, float types use the new print style when printing to a file
 style arg in "legacy" print mode now works for 0d arrays
The Python versions supported in this release are 2.7 and 3.4  3.6. The Python
3.6 wheels available from PIP are built with Python 3.6.2 and should be
compatible with all previous versions of Python 3.6. The source releases were
cythonized with Cython 0.28.2.
Contributors
A total of 6 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Allan Haldane
 Charles Harris
 Jonathan March +
 Malcolm Smith +
 Matti Picus
 Pauli Virtanen
Pull requests merged
A total of 8 pull requests were merged for this release.
 #10862: BUG: floating types should override tp_print (1.14 backport)
 #10905: BUG: for 1.14 backcompat, accept listoflists in fromrecords
 #10947: BUG: 'style' arg to array2string broken in legacy mode (1.14...
 #10959: BUG: test, fix for missing flags['WRITEBACKIFCOPY'] key
 #10960: BUG: Add missing underscore to prototype in check_embedded_lapack
 #10961: BUG: Fix encoding regression in ma/bench.py (Issue #10868)
 #10962: BUG: core: fix NPY_TITLE_KEY macro on pypy
 #10974: BUG: test, fix PyArray_DiscardWritebackIfCopy...
Checksums
MD5
14b675b1f5c0e33dea22735df8ecf5d1 numpy1.14.3cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
501b9237037beee4c1262180c317f527 numpy1.14.3cp27cp27mmanylinux1_i686.whl
51f3c8de7bac77ce864a8a28dc0c3f10 numpy1.14.3cp27cp27mmanylinux1_x86_64.whl
37bfe26b655464a77356ee053deafad2 numpy1.14.3cp27cp27mumanylinux1_i686.whl
c8243f0d6a77c88acf48235aaedf1497 numpy1.14.3cp27cp27mumanylinux1_x86_64.whl
9c616eb6134c92ca42cca5883e7861b7 numpy1.14.3cp27nonewin32.whl
fa3f732464bc83eb08fc6748aeb01ba0 numpy1.14.3cp27nonewin_amd64.whl
711dd188cf3269e092adb4240742731b numpy1.14.3cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
0450e19513ff2406055bdffcdfef8d82 numpy1.14.3cp34cp34mmanylinux1_i686.whl
1a0fc864b3b1aea403b426eb2e83276c numpy1.14.3cp34cp34mmanylinux1_x86_64.whl
13fa200925025289dbd120078c54377f numpy1.14.3cp34nonewin32.whl
fc74d7d13da26e2ffc8bf39d5c24d171 numpy1.14.3cp34nonewin_amd64.whl
faee14118dea28c6e2be5aadaa1613ca numpy1.14.3cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
e93edc38b9e31d774af60b45ad25d3d7 numpy1.14.3cp35cp35mmanylinux1_i686.whl
6d7ced18705cdd82030472b7a0b106c9 numpy1.14.3cp35cp35mmanylinux1_x86_64.whl
42000f9cfef06906e25c0020a9c92366 numpy1.14.3cp35nonewin32.whl
b7cd0a630d24ef8ed245cde71e50c46e numpy1.14.3cp35nonewin_amd64.whl
d728ee343c54c8b9b1186747bae6800b numpy1.14.3cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
0f8ed907b7c37d7e8c0508ee30ac5e0b numpy1.14.3cp36cp36mmanylinux1_i686.whl
04428f5a071531dd463504250c194de3 numpy1.14.3cp36cp36mmanylinux1_x86_64.whl
a376953ac6bfca04371899d70126ebd4 numpy1.14.3cp36nonewin32.whl
955959dbc1a743308bfcafb4d867da29 numpy1.14.3cp36nonewin_amd64.whl
7c3c806ae27196c92d2fb3fbd4991e81 numpy1.14.3.tar.gz
97416212c0a172db4bc6b905e9c4634b numpy1.14.3.zip
SHA256
a8dbab311d4259de5eeaa5b4e83f5f8545e4808f9144e84c0f424a6ee55a7b98 numpy1.14.3cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
034717bfef517858abc79324820a702dc6cd063effb9baab86533e8a78670689 numpy1.14.3cp27cp27mmanylinux1_i686.whl
f39afab5769b3aaa786634b94b4a23ef3c150bdda044e8a32a3fc16ddafe803b numpy1.14.3cp27cp27mmanylinux1_x86_64.whl
8670067685051b49d1f2f66e396488064299fefca199c7c80b6ba0c639fedc98 numpy1.14.3cp27cp27mumanylinux1_i686.whl
0db6301324d0568089663ef2701ad90ebac0e975742c97460e89366692bd0563 numpy1.14.3cp27cp27mumanylinux1_x86_64.whl
98ff275f1b5907490d26b30b6ff111ecf2de0254f0ab08833d8fe61aa2068a00 numpy1.14.3cp27nonewin32.whl
aaef1bea636b6e552bbc5dae0ada87d4f6046359daaa97a05a013b0169620f27 numpy1.14.3cp27nonewin_amd64.whl
760550fdf9d8ec7da9c4402a4afe6e25c0f184ae132011676298a6b636660b45 numpy1.14.3cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
e8578a62a8eaf552b95d62f630bb5dd071243ba1302bbff3e55ac48588508736 numpy1.14.3cp34cp34mmanylinux1_i686.whl
e33baf50f2f6b7153ddb973601a11df852697fba4c08b34a5e0f39f66f8120e1 numpy1.14.3cp34cp34mmanylinux1_x86_64.whl
0074d42e2cc333800bd09996223d40ec52e3b1ec0a5cab05dacc09b662c4c1ae numpy1.14.3cp34nonewin32.whl
c3fe23df6fe0898e788581753da453f877350058c5982e85a8972feeecb15309 numpy1.14.3cp34nonewin_amd64.whl
1864d005b2eb7598063e35c320787d87730d864f40d6410f768fe4ea20672016 numpy1.14.3cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
f22b3206f1c561dd9110b93d144c6aaa4a9a354e3b07ad36030df3ea92c5bb5b numpy1.14.3cp35cp35mmanylinux1_i686.whl
c80fcf9b38c7f4df666150069b04abbd2fe42ae640703a6e1f128cda83b552b7 numpy1.14.3cp35cp35mmanylinux1_x86_64.whl
510863d606c932b41d2209e4de6157ab3fdf52001d3e4ad351103176d33c4b8b numpy1.14.3cp35nonewin32.whl
c5eb7254cfc4bd7a4330ad7e1f65b98343836865338c57b0e25c661e41d5cfd9 numpy1.14.3cp35nonewin_amd64.whl
b8987e30d9a0eb6635df9705a75cf8c4a2835590244baecf210163343bc65176 numpy1.14.3cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
57dc6c22d59054542600fce6fae2d1189b9c50bafc1aab32e55f7efcc84a6c46 numpy1.14.3cp36cp36mmanylinux1_i686.whl
46ce8323ca9384814c7645298b8b627b7d04ce97d6948ef02da357b2389d6972 numpy1.14.3cp36cp36mmanylinux1_x86_64.whl
9ccf4d5c9139b1e985db915039baa0610a7e4a45090580065f8d8cb801b7422f numpy1.14.3cp36nonewin32.whl
560e23a12e7599be8e8b67621396c5bc687fd54b48b890adbc71bc5a67333f86 numpy1.14.3cp36nonewin_amd64.whl
cfcfc7a9a8ba4275c60a815c683d59ac5e7aa9362d76573b6cc4324ffb1235fa numpy1.14.3.tar.gz
9016692c7d390f9d378fc88b7a799dc9caa7eb938163dda5276d3f3d6f75debf numpy1.14.3.zip
v1.14.2
charris released this
Assets
==========================
NumPy 1.14.2 Release Notes
This is a bugfix release for some bugs reported following the 1.14.1 release. The major
problems dealt with are as follows.
 Residual bugs in the new array printing functionality.
 Regression resulting in a relocation problem with shared library.
 Improved PyPy compatibility.
The Python versions supported in this release are 2.7 and 3.4  3.6. The Python
3.6 wheels available from PIP are built with Python 3.6.2 and should be
compatible with all previous versions of Python 3.6. The source releases were
cythonized with Cython 0.26.1, which is known to not support the upcoming
Python 3.7 release. People who wish to run Python 3.7 should check out the
NumPy repo and try building with the, as yet, unreleased master branch of
Cython.
Contributors
A total of 4 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Allan Haldane
 Charles Harris
 Eric Wieser
 Pauli Virtanen
Pull requests merged
A total of 5 pull requests were merged for this release.
 #10674: BUG: Further backcompat fix for subclassed array repr
 #10725: BUG: dragon4 fractional output mode adds too many trailing zeros
 #10726: BUG: Fix f2py generated code to work on PyPy
 #10727: BUG: Fix missing NPY_VISIBILITY_HIDDEN on npy_longdouble_to_PyLong
 #10729: DOC: Create 1.14.2 notes and changelog.
Checksums
MD5
9bb06966218d0f3d0a25a6155c7d2439 numpy1.14.2cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
b8a260b915d44475f4385fed4c6a7ec8 numpy1.14.2cp27cp27mmanylinux1_i686.whl
7733aa702cebb5b0469b820ea9cfc293 numpy1.14.2cp27cp27mmanylinux1_x86_64.whl
ef1065f3ecd08054eca9c6c14a2e3518 numpy1.14.2cp27cp27mumanylinux1_i686.whl
1227a63fcc8ce91a75d2ab006d406df7 numpy1.14.2cp27cp27mumanylinux1_x86_64.whl
6ac633c46c13dd2af93761460d63436e numpy1.14.2cp27nonewin32.whl
187a94722b84d65cc3a9ecfce27ee3b2 numpy1.14.2cp27nonewin_amd64.whl
580340cfe4a14f8a9e1d781d7b42955b numpy1.14.2cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
7f38fb83008ed4bb8217840ac27aeba4 numpy1.14.2cp34cp34mmanylinux1_i686.whl
cbe383ad27db21767b6ffdd943e3df9c numpy1.14.2cp34cp34mmanylinux1_x86_64.whl
350a1e0f0c825ffa1de264108c648482 numpy1.14.2cp34nonewin32.whl
ececd9b8891d801d4a968c2ec5eac7bb numpy1.14.2cp34nonewin_amd64.whl
8a74bb1f94ad8c1ad8f37e73f967b850 numpy1.14.2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c1231d7e7fc52c09dff9a529ad228818 numpy1.14.2cp35cp35mmanylinux1_i686.whl
ef57856bf6dade82922ab58922756dd0 numpy1.14.2cp35cp35mmanylinux1_x86_64.whl
8c98ab081112832e3a7faca624598119 numpy1.14.2cp35nonewin32.whl
2652e9660be5d074224d14436504f008 numpy1.14.2cp35nonewin_amd64.whl
1cdb6cf8d60dfbe99f60639dac38471e numpy1.14.2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
b11c80344b84853b7a24acc51bbe4945 numpy1.14.2cp36cp36mmanylinux1_i686.whl
65c3802c0f25f2d26aa784433643f655 numpy1.14.2cp36cp36mmanylinux1_x86_64.whl
8f9986b323d4215925d6cfa1cd1bc14d numpy1.14.2cp36nonewin32.whl
9d78ceef101313f49fd0b8fed25d889c numpy1.14.2cp36nonewin_amd64.whl
e39878fafb11828983aeec583dda4a06 numpy1.14.2.tar.gz
080f01a19707cf467393e426382c7619 numpy1.14.2.zip
SHA256
719d914f564f35cce4dc103808f8297c807c9f0297ac183ed81ae8b5650e698e numpy1.14.2cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
0f6a5ed0cd7ab1da11f5c07a8ecada73fc55a70ef7bb6311a4109891341d7277 numpy1.14.2cp27cp27mmanylinux1_i686.whl
d0928076d9bd8a98de44e79b1abe50c1456e7abbb40af7ef58092086f1a6c729 numpy1.14.2cp27cp27mmanylinux1_x86_64.whl
d858423f5ed444d494b15c4cc90a206e1b8c31354c781ac7584da0d21c09c1c3 numpy1.14.2cp27cp27mumanylinux1_i686.whl
20cac3123d791e4bf8482a580d98d6b5969ba348b9d5364df791ba3a666b660d numpy1.14.2cp27cp27mumanylinux1_x86_64.whl
528ce59ded2008f9e8543e0146acb3a98a9890da00adf8904b1e18c82099418b numpy1.14.2cp27nonewin32.whl
56e392b7c738bd70e6f46cf48c8194d3d1dd4c5a59fae4b30c58bb6ef86e5233 numpy1.14.2cp27nonewin_amd64.whl
99051e03b445117b26028623f1a487112ddf61a09a27e2d25e6bc07d37d94f25 numpy1.14.2cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
768e777cc1ffdbf97c507f65975c8686ebafe0f3dc8925d02ac117acc4669ce9 numpy1.14.2cp34cp34mmanylinux1_i686.whl
675e0f23967ce71067d12b6944add505d5f0a251f819cfb44bdf8ee7072c090d numpy1.14.2cp34cp34mmanylinux1_x86_64.whl
a958bf9d4834c72dee4f91a0476e7837b8a2966dc6fcfc42c421405f98d0da51 numpy1.14.2cp34nonewin32.whl
bb370120de6d26004358611441e07acda26840e41dfedc259d7f8cc613f96495 numpy1.14.2cp34nonewin_amd64.whl
f2b1378b63bdb581d5d7af2ec0373c8d40d651941d283a2afd7fc71184b3f570 numpy1.14.2cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a1413d06abfa942ca0553bf3bccaff5fdb36d55b84f2248e36228db871147dab numpy1.14.2cp35cp35mmanylinux1_i686.whl
7f76d406c6b998d6410198dcb82688dcdaec7d846aa87e263ccf52efdcfeba30 numpy1.14.2cp35cp35mmanylinux1_x86_64.whl
a7157c9ac6bddd2908c35ef099e4b643bc0e0ebb4d653deb54891d29258dd329 numpy1.14.2cp35nonewin32.whl
0fd65cbbfdbf76bbf80c445d923b3accefea0fe2c2082049e0ce947c81fe1d3f numpy1.14.2cp35nonewin_amd64.whl
8c18ee4dddd5c6a811930c0a7c7947bf16387da3b394725f6063f1366311187d numpy1.14.2cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
0739146eaf4985962f07c62f7133aca89f3a600faac891ce6c7f3a1e2afe5272 numpy1.14.2cp36cp36mmanylinux1_i686.whl
07e21f14490324cc1160db101e9b6c1233c33985af4cb1d301dd02650fea1d7f numpy1.14.2cp36cp36mmanylinux1_x86_64.whl
e6120d63b50e2248219f53302af7ec6fa2a42ed1f37e9cda2c76dbaca65036a7 numpy1.14.2cp36nonewin32.whl
6be6b0ca705321c178c9858e5ad5611af664bbdfae1df1541f938a840a103888 numpy1.14.2cp36nonewin_amd64.whl
ddbcda194f49e0cf0663fa8131cb9d7a3b876d14dea0047d3c5fdfaf20adbb40 numpy1.14.2.tar.gz
facc6f925c3099ac01a1f03758100772560a0b020fb9d70f210404be08006bcb numpy1.14.2.zip
v1.14.1
charris released this
Assets
==========================
NumPy 1.14.1 Release Notes
This is a bugfix release for some problems reported following the 1.14.0 release. The major
problems fixed are the following.
 Problems with the new array printing, particularly the printing of complex
values, Please report any additional problems that may turn up.  Problems with
np.einsum
due to the newoptimized=True
default. Some
fixes for optimization have been applied andoptimize=False
is now the
default.  The sort order in
np.unique
whenaxis=<somenumber>
will now always
be lexicographic in the subarray elements. In previous NumPy versions there
was an optimization that could result in sorting the subarrays as unsigned
byte strings.  The change in 1.14.0 that multifield indexing of structured arrays returns a
view instead of a copy has been reverted but remains on track for NumPy 1.15.
Affected users should read the 1.14.1 Numpy User Guide section
"basics/structured arrays/accessing multiple fields" for advice on how to
manage this transition.
The Python versions supported in this release are 2.7 and 3.4  3.6. The Python
3.6 wheels available from PIP are built with Python 3.6.2 and should be
compatible with all previous versions of Python 3.6. The source releases were
cythonized with Cython 0.26.1, which is known to not support the upcoming
Python 3.7 release. People who wish to run Python 3.7 should check out the
NumPy repo and try building with the, as yet, unreleased master branch of
Cython.
Contributors
A total of 14 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
 Allan Haldane
 Charles Harris
 Daniel Smith
 Dennis Weyland +
 Eric Larson
 Eric Wieser
 Jarrod Millman
 Kenichi Maehashi +
 Marten van Kerkwijk
 Mathieu Lamarre
 Sebastian Berg
 Simon Conseil
 Simon Gibbons
 xoviat
Pull requests merged
A total of 36 pull requests were merged for this release.
 #10339: BUG: restrict the config modifications to win32
 #10368: MAINT: Adjust type promotion in linalg.norm
 #10375: BUG: add missing paren and remove quotes from repr of fieldless...
 #10395: MAINT: Update download URL in setup.py.
 #10396: BUG: fix einsum issue with unicode input and py2
 #10397: BUG: fix error message not formatted in einsum
 #10398: DOC: add documentation about how to handle new array printing
 #10403: BUG: Set einsum optimize parameter default to
False
.  #10424: ENH: Fix repr of np.record objects to match np.void types #10412
 #10425: MAINT: Update zesty to artful for i386 testing
 #10431: REL: Add 1.14.1 release notes template
 #10435: MAINT: Use ValueError for duplicate field names in lookup (backport)
 #10534: BUG: Provide a better error message for outoforder fields
 #10536: BUG: Resize bytes_ columns in genfromtxt (backport of #10401)
 #10537: BUG: multifieldindexing adds padding bytes: revert for 1.14.1
 #10539: BUG: fix np.save issue with python 2.7.5
 #10540: BUG: Add missing DECREF in Py2 int() cast
 #10541: TST: Add circleci document testing to maintenance/1.14.x
 #10542: BUG: complex repr has extra spaces, missing + (1.14 backport)
 #10550: BUG: Set missing exception after malloc
 #10557: BUG: In numpy.i, clear CARRAY flag if wrapped buffer is not C_CONTIGUOUS.
 #10558: DEP: Issue FutureWarning when malformed records detected.
 #10559: BUG: Fix einsum optimize logic for singleton dimensions
 #10560: BUG: Fix calling ufuncs with a positional output argument.
 #10561: BUG: Fix various BigEndian test failures (ppc64)
 #10562: BUG: Make dtype.descr error for outoforder fields.
 #10563: BUG: arrays not being flattened in
union1d
 #10607: MAINT: Update sphinxext submodule hash.
 #10608: BUG: Revert sort optimization in np.unique.
 #10609: BUG: infinite recursion in str of 0d subclasses
 #10610: BUG: Align type definition with generated lapack
 #10612: BUG/ENH: Improve output for structured nonvoid types
 #10622: BUG: deallocate recursive closure in arrayprint.py (1.14 backport)
 #10624: BUG: Correctly identify comma seperated dtype strings
 #10629: BUG: deallocate recursive closure in arrayprint.py (backport...
 #10630: REL: Prepare for 1.14.1 release.
Checksums
MD5
8a56c4b06e859ccad60a85d3486b214a numpy1.14.1cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
94189ecffbc1032df54f570bb6ff490d numpy1.14.1cp27cp27mmanylinux1_i686.whl
61473860888d024caa1261274620352e numpy1.14.1cp27cp27mmanylinux1_x86_64.whl
f9f6ada0f110230569cea9d8d2f5416a numpy1.14.1cp27cp27mumanylinux1_i686.whl
0c2c6637c5c8ca639e1b7b3fa4ac64cc numpy1.14.1cp27cp27mumanylinux1_x86_64.whl
dbae0fec3c033b42695d9df9636ba9a5 numpy1.14.1cp27nonewin32.whl
c7ee8517a1a52b90f08651c1f17b6e39 numpy1.14.1cp27nonewin_amd64.whl
bb051505823a3f990ea22750a08cd40b numpy1.14.1cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
655f4c67598dfe583fce3075e0152b06 numpy1.14.1cp34cp34mmanylinux1_i686.whl
94cdf22837fdec46d03709fe0338ee09 numpy1.14.1cp34cp34mmanylinux1_x86_64.whl
5b7fc9eb18463356ed8d018a3b486d53 numpy1.14.1cp34nonewin32.whl
b261be176aa57dce8a64f4fac169c74b numpy1.14.1cp34nonewin_amd64.whl
196639515a2084dc5b4b86a5ea0247ce numpy1.14.1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
d897ae36d1487a101714deeb8782b7c5 numpy1.14.1cp35cp35mmanylinux1_i686.whl
12f2c45cc7501dc5a5e670042300f1e6 numpy1.14.1cp35cp35mmanylinux1_x86_64.whl
e94355704fe2f6b3d1bcf6c8f6189df4 numpy1.14.1cp35nonewin32.whl
13b79737d10e857ee808a1dfdd2ff01e numpy1.14.1cp35nonewin_amd64.whl
8819860639f492ddf6045a95227624d0 numpy1.14.1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
2b3d5774779e808cef193872dd4f6dbe numpy1.14.1cp36cp36mmanylinux1_i686.whl
dd2321ea4590ec05d825d8c9a64fd64b numpy1.14.1cp36cp36mmanylinux1_x86_64.whl
a5803be2b83c1ec5f36ed9f58a0f848c numpy1.14.1cp36nonewin32.whl
299c92352d2c08baa6a8142971b39295 numpy1.14.1cp36nonewin_amd64.whl
0e09f20f62ab9f8a02cb7bd3fd023482 numpy1.14.1.tar.gz
b8324ef90ac9064cd0eac46b8b388674 numpy1.14.1.zip
SHA256
e2335d56d2fd9fc4e3a3f2d3148aafec4962682375f429f05c45a64dacf19436 numpy1.14.1cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
9b762e78739b6e021124adbea07611682db99cd3fca7f3c3a8b98b8f74ea5699 numpy1.14.1cp27cp27mmanylinux1_i686.whl
7d4c549e41507db4f04ec7cfab5597de8acf7871b16c9cf64cebcb9d39031ca6 numpy1.14.1cp27cp27mmanylinux1_x86_64.whl
b803306c4c201e7dcda0ce1b9a9c87f61a7c7ce43de2c60c8e56147b76849a1a numpy1.14.1cp27cp27mumanylinux1_i686.whl
2da8dff91d489fea3e20155d41f4cd680de7d01d9a89fdd0ebb1bee6e72d3800 numpy1.14.1cp27cp27mumanylinux1_x86_64.whl
6b8c2daacbbffc83b4a2ba83a61aa3ce60c66340b07b962bd27b6c6bb175bee1 numpy1.14.1cp27nonewin32.whl
89b9419019c47ec87cf4cfca77d85da4611cc0be636ec87b5290346490b98450 numpy1.14.1cp27nonewin_amd64.whl
49880b47d7272f902946dd995f346842c95fe275e2deb3082ef0495f0c718a69 numpy1.14.1cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
3d7ddd5bdfb12ec9668edf1aa49a4a3eddb0db4661b57ea431477eb9a2468894 numpy1.14.1cp34cp34mmanylinux1_i686.whl
788e1757f8e409cd805a7cd82993cd9252fa19e334758a4c6eb5a8b334abb084 numpy1.14.1cp34cp34mmanylinux1_x86_64.whl
377def0873bbb1fbdedb14b3275b10a29b1b55619a3f7f775c4e7f9ce2461b9c numpy1.14.1cp34nonewin32.whl
9501c9ccd081977ca5579a3ec4009d6baff6bacb04bf07214aade3324734195a numpy1.14.1cp34nonewin_amd64.whl
a1f5173df8190ef9c6235d260d70ca70c6fb029683ceb66e244c5cc6e335947a numpy1.14.1cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
12cf4b27039b88e407ad66894d99a957ef60fea0eeb442026af325add2ab264d numpy1.14.1cp35cp35mmanylinux1_i686.whl
4e2fc841c8c642f7fd44591ef856ca409cedba6aea27928df34004c533839eee numpy1.14.1cp35cp35mmanylinux1_x86_64.whl
e5ade7a69dccbd99c4fdbb95b6d091d941e62ffa588b0ed8fb0a2854118fef3f numpy1.14.1cp35nonewin32.whl
6b1011ffc87d7e2b1b7bcc6dc21bdf177163658746ef778dcd21bf0516b9126c numpy1.14.1cp35nonewin_amd64.whl
a8bc80f69570e11967763636db9b24c1e3e3689881d10ae793cec74cf7a627b6 numpy1.14.1cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
81b9d8f6450e752bd82e7d9618fa053df8db1725747880e76fb09710b57f78d0 numpy1.14.1cp36cp36mmanylinux1_i686.whl
e8522cad377cc2ef20fe13aae742cc265172910c98e8a0d6014b1a8d564019e2 numpy1.14.1cp36cp36mmanylinux1_x86_64.whl
a3d5dd437112292c707e54f47141be2f1100221242f07eda7bd8477f3ddc2252 numpy1.14.1cp36nonewin32.whl
c8000a6cbc5140629be8c038c9c9cdb3a1c85ff90bd4180ec99f0f0c73050b5e numpy1.14.1cp36nonewin_amd64.whl
8708a775be9a9a457b80a49193c57bd9d51a8a195ed1f1c4b8e89eaf3aa646ee numpy1.14.1.tar.gz
fa0944650d5d3fb95869eaacd8eedbd2d83610c85e271bd9d3495ffa9bc4dc9c numpy1.14.1.zip
v1.14.0
charris released this
Assets
==========================
NumPy 1.14.0 Release Notes
Numpy 1.14.0 is the result of seven months of work and contains a large number
of bug fixes and new features, along with several changes with potential
compatibility issues. The major change that users will notice are the
stylistic changes in the way numpy arrays and scalars are printed, a change
that will affect doctests. See below for details on how to preserve the
old style printing when needed.
A major decision affecting future development concerns the schedule for
dropping Python 2.7 support in the runup to 2020. The decision has been made to
support 2.7 for all releases made in 2018, with the last release being
designated a long term release with support for bug fixes extending through
2019. In 2019 support for 2.7 will be dropped in all new releases. More details
can be found in the relevant NEP_.
This release supports Python 2.7 and 3.4  3.6.
.. _NEP: https://github.com/numpy/numpy/blob/master/doc/neps/droppingpython2.7proposal.rst
Highlights

The
np.einsum
function uses BLAS when possible 
genfromtxt
,loadtxt
,fromregex
andsavetxt
can now handle
files with arbitrary Python supported encoding. 
Major improvements to printing of NumPy arrays and scalars.
New functions

parametrize
: decorator added to numpy.testing 
chebinterpolate
: Interpolate function at Chebyshev points. 
format_float_positional
andformat_float_scientific
: format
floatingpoint scalars unambiguously with control of rounding and padding. 
PyArray_ResolveWritebackIfCopy
andPyArray_SetWritebackIfCopyBase
,
new CAPI functions useful in achieving PyPy compatibity.
Deprecations

Using
np.bool_
objects in place of integers is deprecated. Previously
operator.index(np.bool_)
was legal and allowed constructs such as
[1, 2, 3][np.True_]
. That was misleading, as it behaved differently from
np.array([1, 2, 3])[np.True_]
. 
Truth testing of an empty array is deprecated. To check if an array is not
empty, usearray.size > 0
. 
Calling
np.bincount
withminlength=None
is deprecated.
minlength=0
should be used instead. 
Calling
np.fromstring
with the default value of thesep
argument is
deprecated. When that argument is not provided, a broken version of
np.frombuffer
is used that silently accepts unicode strings and  after
encoding them as either utf8 (python 3) or the default encoding
(python 2)  treats them as binary data. If reading binary data is
desired,np.frombuffer
should be used directly. 
The
style
option of array2string is deprecated in nonlegacy printing mode. 
PyArray_SetUpdateIfCopyBase
has been deprecated. For NumPy versions >= 1.14
usePyArray_SetWritebackIfCopyBase
instead, seeC API changes
below for
more details. 
The use of
UPDATEIFCOPY
arrays is deprecated, seeC API changes
below
for details. We will not be dropping support for those arrays, but they are
not compatible with PyPy.
Future Changes

np.issubdtype
will stop downcasting dtypelike arguments.
It might be expected thatissubdtype(np.float32, 'float64')
and
issubdtype(np.float32, np.float64)
mean the same thing  however, there
was an undocumented special case that translated the former into
issubdtype(np.float32, np.floating)
, giving the surprising result of True.This translation now gives a warning that explains what translation is
occurring. In the future, the translation will be disabled, and the first
example will be made equivalent to the second. 
np.linalg.lstsq
default forrcond
will be changed. Thercond
parameter tonp.linalg.lstsq
will change its default to machine precision
times the largest of the input array dimensions. A FutureWarning is issued
whenrcond
is not passed explicitly. 
a.flat.__array__()
will return a writeable copy ofa
whena
is
noncontiguous. Previously it returned an UPDATEIFCOPY array whena
was
writeable. Currently it returns a nonwriteable copy. See gh7054 for a
discussion of the issue. 
Unstructured void array's
.item
method will return a bytes object. In the
future, calling.item()
on arrays or scalars ofnp.void
datatype will
return abytes
object instead of a buffer or int array, the same as
returned bybytes(void_scalar)
. This may affect code which assumed the
return value was mutable, which will no longer be the case. A
FutureWarning
is now issued when this would occur.
Compatibility notes
The mask of a masked array view is also a view rather than a copy
There was a FutureWarning about this change in NumPy 1.11.x. In short, it is
now the case that, when changing a view of a masked array, changes to the mask
are propagated to the original. That was not previously the case. This change
affects slices in particular. Note that this does not yet work properly if the
mask of the original array is nomask
and the mask of the view is changed.
See gh5580 for an extended discussion. The original behavior of having a copy
of the mask can be obtained by calling the unshare_mask
method of the view.
np.ma.masked
is no longer writeable
Attempts to mutate the masked
constant now error, as the underlying arrays
are marked readonly. In the past, it was possible to get away with::
# emulating a function that sometimes returns np.ma.masked
val = random.choice([np.ma.masked, 10])
var_arr = np.asarray(val)
val_arr += 1 # now errors, previously changed np.ma.masked.data
np.ma
functions producing fill_value
s have changed
Previously, np.ma.default_fill_value
would return a 0d array, but
np.ma.minimum_fill_value
and np.ma.maximum_fill_value
would return a
tuple of the fields. Instead, all three methods return a structured np.void
object, which is what you would already find in the .fill_value
attribute.
Additionally, the dtype guessing now matches that of np.array
 so when
passing a python scalar x
, maximum_fill_value(x)
is always the same as
maximum_fill_value(np.array(x))
. Previously x = long(1)
on Python 2
violated this assumption.
a.flat.__array__()
returns nonwriteable arrays when a
is noncontiguous
The intent is that the UPDATEIFCOPY array previously returned when a
was
noncontiguous will be replaced by a writeable copy in the future. This
temporary measure is aimed to notify folks who expect the underlying array be
modified in this situation that that will no longer be the case. The most
likely places for this to be noticed is when expressions of the form
np.asarray(a.flat)
are used, or when a.flat
is passed as the out
parameter to a ufunc.
np.tensordot
now returns zero array when contracting over 0length dimension
Previously np.tensordot
raised a ValueError when contracting over 0length
dimension. Now it returns a zero array, which is consistent with the behaviour
of np.dot
and np.einsum
.
numpy.testing
reorganized
This is not expected to cause problems, but possibly something has been left
out. If you experience an unexpected import problem using numpy.testing
let us know.
np.asfarray
no longer accepts nondtypes through the dtype
argument
This previously would accept dtype=some_array
, with the implied semantics
of dtype=some_array.dtype
. This was undocumented, unique across the numpy
functions, and if used would likely correspond to a typo.
1D np.linalg.norm
preserves float input types, even for arbitrary orders
Previously, this would promote to float64
when arbitrary orders were
passed, despite not doing so under the simple cases::
>>> f32 = np.float32([1, 2])
>>> np.linalg.norm(f32, 2.0).dtype
dtype('float32')
>>> np.linalg.norm(f32, 2.0001).dtype
dtype('float64') # numpy 1.13
dtype('float32') # numpy 1.14
This change affects only float32
and float16
arrays.
count_nonzero(arr, axis=())
now counts over no axes, not all axes
Elsewhere, axis==()
is always understood as "no axes", but
count_nonzero
had a special case to treat this as "all axes". This was
inconsistent and surprising. The correct way to count over all axes has always
been to pass axis == None
.
__init__.py
files added to test directories
This is for pytest compatibility in the case of duplicate test file names in
the different directories. As a result, run_module_suite
no longer works,
i.e., python <pathtotestfile>
results in an error.
.astype(bool)
on unstructured void arrays now calls bool
on each element
On Python 2, void_array.astype(bool)
would always return an array of
True
, unless the dtype is V0
. On Python 3, this operation would usually
crash. Going forwards, astype
matches the behavior of bool(np.void)
,
considering a buffer of all zeros as false, and anything else as true.
Checks for V0
can still be done with arr.dtype.itemsize == 0
.
MaskedArray.squeeze
never returns np.ma.masked
np.squeeze
is documented as returning a view, but the masked variant would
sometimes return masked
, which is not a view. This has been fixed, so that
the result is always a view on the original masked array.
This breaks any code that used masked_arr.squeeze() is np.ma.masked
, but
fixes code that writes to the result of .squeeze()
.
Renamed first parameter of can_cast
from from
to from_
The previous parameter name from
is a reserved keyword in Python, which made
it difficult to pass the argument by name. This has been fixed by renaming
the parameter to from_
.
isnat
raises TypeError
when passed wrong type
The ufunc isnat
used to raise a ValueError
when it was not passed
variables of type datetime
or timedelta
. This has been changed to
raising a TypeError
.
dtype.__getitem__
raises TypeError
when passed wrong type
When indexed with a float, the dtype object used to raise ValueError
.
Userdefined types now need to implement __str__
and __repr__
Previously, userdefined types could fall back to a default implementation of
__str__
and __repr__
implemented in numpy, but this has now been
removed. Now userdefined types will fall back to the python default
object.__str__
and object.__repr__
.
Many changes to array printing, disableable with the new "legacy" printing mode
The str
and repr
of ndarrays and numpy scalars have been changed in
a variety of ways. These changes are likely to break downstream user's
doctests.
These new behaviors can be disabled to mostly reproduce numpy 1.13 behavior by
enabling the new 1.13 "legacy" printing mode. This is enabled by calling
np.set_printoptions(legacy="1.13")
, or using the new legacy
argument to
np.array2string
, as np.array2string(arr, legacy='1.13')
.
In summary, the major changes are:

For floatingpoint types:
 The
repr
of float arrays often omits a space previously printed
in the sign position. See the newsign
option tonp.set_printoptions
.  Floatingpoint arrays and scalars use a new algorithm for decimal
representations, giving the shortest unique representation. This will
usually shortenfloat16
fractional output, and sometimesfloat32
and
float128
output.float64
should be unaffected. See the new
floatmode
option tonp.set_printoptions
.  Float arrays printed in scientific notation no longer use fixedprecision,
and now instead show the shortest unique representation.  The
str
of floatingpoint scalars is no longer truncated in python2.
 The

For other data types:
 Nonfinite complex scalars print like
nanj
instead ofnan*j
. NaT
values in datetime arrays are now properly aligned. Arrays and scalars of
np.void
datatype are now printed using hex
notation.
 Nonfinite complex scalars print like

For linewrapping:
 The "dtype" part of ndarray reprs will now be printed on the next line
if there isn't space on the last line of array output.  The
linewidth
format option is now always respected.
Therepr
orstr
of an array will never exceed this, unless a single
element is too wide.  The last line of an array string will never have more elements than earlier
lines.  An extra space is no longer inserted on the first line if the elements are
too wide.
 The "dtype" part of ndarray reprs will now be printed on the next line

For summarization (the use of
...
to shorten long arrays): A trailing comma is no longer inserted for
str
.
Previously,str(np.arange(1001))
gave
'[ 0 1 2 ..., 998 999 1000]'
, which has an extra comma.  For arrays of 2D and beyond, when
...
is printed on its own line in
order to summarize any but the last axis, newlines are now appended to that
line to match its leading newlines and a trailing space character is
removed.
 A trailing comma is no longer inserted for

MaskedArray
arrays now separate printed elements with commas, always
print the dtype, and correctly wrap the elements of long arrays to multiple
lines. If there is more than 1 dimension, the array attributes are now
printed in a new "leftjustified" printing style. 
recarray
arrays no longer print a trailing space before their dtype, and
wrap to the right number of columns. 
0d arrays no longer have their own idiosyncratic implementations of
str
andrepr
. Thestyle
argument tonp.array2string
is deprecated. 
Arrays of
bool
datatype will omit the datatype in therepr
. 
Userdefined
dtypes
(subclasses ofnp.generic
) now need to
implement__str__
and__repr__
.
Some of these changes are described in more detail below. If you need to retain
the previous behavior for doctests or other reasons, you may want to do
something like::
# FIXME: We need the str/repr formatting used in Numpy < 1.14.
try:
np.set_printoptions(legacy='1.13')
except TypeError:
pass
C API changes
PyPy compatible alternative to UPDATEIFCOPY
arrays
UPDATEIFCOPY
arrays are contiguous copies of existing arrays, possibly with
different dimensions, whose contents are copied back to the original array when
their refcount goes to zero and they are deallocated. Because PyPy does not use
refcounts, they do not function correctly with PyPy. NumPy is in the process of
eliminating their use internally and two new CAPI functions,
PyArray_SetWritebackIfCopyBase
PyArray_ResolveWritebackIfCopy
,
have been added together with a complimentary flag,
NPY_ARRAY_WRITEBACKIFCOPY
. Using the new functionality also requires that
some flags be changed when new arrays are created, to wit:
NPY_ARRAY_INOUT_ARRAY
should be replaced by NPY_ARRAY_INOUT_ARRAY2
and
NPY_ARRAY_INOUT_FARRAY
should be replaced by NPY_ARRAY_INOUT_FARRAY2
.
Arrays created with these new flags will then have the WRITEBACKIFCOPY
semantics.
If PyPy compatibility is not a concern, these new functions can be ignored,
although there will be a DeprecationWarning
. If you do wish to pursue PyPy
compatibility, more information on these functions and their use may be found
in the capi_ documentation and the example in howtoextend_.
.. _capi: https://github.com/numpy/numpy/blob/master/doc/source/reference/capi.array.rst
.. _howtoextend: https://github.com/numpy/numpy/blob/master/doc/source/user/cinfo.howtoextend.rst
New Features
Encoding argument for text IO functions
genfromtxt
, loadtxt
, fromregex
and savetxt
can now handle files
with arbitrary encoding supported by Python via the encoding argument.
For backward compatibility the argument defaults to the special bytes
value
which continues to treat text as raw byte values and continues to pass latin1
encoded bytes to custom converters.
Using any other value (including None
for system default) will switch the
functions to real text IO so one receives unicode strings instead of bytes in
the resulting arrays.
External nose
plugins are usable by numpy.testing.Tester
numpy.testing.Tester
is now aware of nose
plugins that are outside the
nose
builtin ones. This allows using, for example, nosetimer
like
so: np.test(extra_argv=['withtimer', 'timertopn', '20'])
to
obtain the runtime of the 20 slowest tests. An extra keyword timer
was
also added to Tester.test
, so np.test(timer=20)
will also report the 20
slowest tests.
parametrize
decorator added to numpy.testing
A basic parametrize
decorator is now available in numpy.testing
. It is
intended to allow rewriting yield based tests that have been deprecated in
pytest so as to facilitate the transition to pytest in the future. The nose
testing framework has not been supported for several years and looks like
abandonware.
The new parametrize
decorator does not have the full functionality of the
one in pytest. It doesn't work for classes, doesn't support nesting, and does
not substitute variable names. Even so, it should be adequate to rewrite the
NumPy tests.
chebinterpolate
function added to numpy.polynomial.chebyshev
The new chebinterpolate
function interpolates a given function at the
Chebyshev points of the first kind. A new Chebyshev.interpolate
class
method adds support for interpolation over arbitrary intervals using the scaled
and shifted Chebyshev points of the first kind.
Support for reading lzma compressed text files in Python 3
With Python versions containing the lzma
module the text IO functions can
now transparently read from files with xz
or lzma
extension.
sign
option added to np.setprintoptions
and np.array2string
This option controls printing of the sign of floatingpoint types, and may be
one of the characters '', '+' or ' '. With '+' numpy always prints the sign of
positive values, with ' ' it always prints a space (whitespace character) in
the sign position of positive values, and with '' it will omit the sign
character for positive values. The new default is ''.
This new default changes the float output relative to numpy 1.13. The old
behavior can be obtained in 1.13 "legacy" printing mode, see compatibility
notes above.
hermitian
option added tonp.linalg.matrix_rank
The new hermitian
option allows choosing between standard SVD based matrix
rank calculation and the more efficient eigenvalue based method for
symmetric/hermitian matrices.
threshold
and edgeitems
options added to np.array2string
These options could previously be controlled using np.set_printoptions
, but
now can be changed on a percall basis as arguments to np.array2string
.
concatenate
and stack
gained an out
argument
A preallocated buffer of the desired dtype can now be used for the output of
these functions.
Support for PGI flang compiler on Windows
The PGI flang compiler is a Fortran front end for LLVM released by NVIDIA under
the Apache 2 license. It can be invoked by ::
python setup.py config compiler=clang fcompiler=flang install
There is little experience with this new compiler, so any feedback from people
using it will be appreciated.
Improvements
Numerator degrees of freedom in random.noncentral_f
need only be positive.
Prior to NumPy 1.14.0, the numerator degrees of freedom needed to be > 1, but
the distribution is valid for values > 0, which is the new requirement.
The GIL is released for all np.einsum
variations
Some specific loop structures which have an accelerated loop version
did not release the GIL prior to NumPy 1.14.0. This oversight has been
fixed.
The np.einsum
function will use BLAS when possible and optimize by default
The np.einsum
function will now call np.tensordot
when appropriate.
Because np.tensordot
uses BLAS when possible, that will speed up execution.
By default, np.einsum
will also attempt optimization as the overhead is
small relative to the potential improvement in speed.
f2py
now handles arrays of dimension 0
f2py
now allows for the allocation of arrays of dimension 0. This allows
for more consistent handling of corner cases downstream.
numpy.distutils
supports using MSVC and mingw64gfortran together
Numpy distutils now supports using Mingw64 gfortran and MSVC compilers
together. This enables the production of Python extension modules on Windows
containing Fortran code while retaining compatibility with the
binaries distributed by Python.org. Not all use cases are supported,
but most common ways to wrap Fortran for Python are functional.
Compilation in this mode is usually enabled automatically, and can be
selected via the fcompiler
and compiler
options to
setup.py
. Moreover, linking Fortran codes to static OpenBLAS is
supported; by default a gfortran compatible static archive
openblas.a
is looked for.
np.linalg.pinv
now works on stacked matrices
Previously it was limited to a single 2d array.
numpy.save
aligns data to 64 bytes instead of 16
Saving NumPy arrays in the npy
format with numpy.save
inserts
padding before the array data to align it at 64 bytes. Previously
this was only 16 bytes (and sometimes less due to a bug in the code
for version 2). Now the alignment is 64 bytes, which matches the
widest SIMD instruction set commonly available, and is also the most
common cache line size. This makes npy
files easier to use in
programs which open them with mmap
, especially on Linux where an
mmap
offset must be a multiple of the page size.
NPZ files now can be written without using temporary files
In Python 3.6+ numpy.savez
and numpy.savez_compressed
now write
directly to a ZIP file, without creating intermediate temporary files.
Better support for empty structured and string types
Structured types can contain zero fields, and string dtypes can contain zero
characters. Zerolength strings still cannot be created directly, and must be
constructed through structured dtypes::
str0 = np.empty(10, np.dtype([('v', str, N)]))['v']
void0 = np.empty(10, np.void)
It was always possible to work with these, but the following operations are
now supported for these arrays:
arr.sort()
arr.view(bytes)
arr.resize(...)
pickle.dumps(arr)
Support for decimal.Decimal
in np.lib.financial
Unless otherwise stated all functions within the financial
package now
support using the decimal.Decimal
builtin type.
Float printing now uses "dragon4" algorithm for shortest decimal representation
The str
and repr
of floatingpoint values (16, 32, 64 and 128 bit) are
now printed to give the shortest decimal representation which uniquely
identifies the value from others of the same type. Previously this was only
true for float64
values. The remaining float types will now often be shorter
than in numpy 1.13. Arrays printed in scientific notation now also use the
shortest scientific representation, instead of fixed precision as before.
Additionally, the str
of float scalars scalars will no longer be truncated
in python2, unlike python2 float
s. np.double
scalars now have a str
and repr
identical to that of a python3 float.
New functions np.format_float_scientific
and np.format_float_positional
are provided to generate these decimal representations.
A new option floatmode
has been added to np.set_printoptions
and
np.array2string
, which gives control over uniqueness and rounding of
printed elements in an array. The new default is floatmode='maxprec'
with
precision=8
, which will print at most 8 fractional digits, or fewer if an
element can be uniquely represented with fewer. A useful new mode is
floatmode="unique"
, which will output enough digits to specify the array
elements uniquely.
Numpy complexfloatingscalars with values like inf*j
or nan*j
now
print as infj
and nanj
, like the purepython complex
type.
The FloatFormat
and LongFloatFormat
classes are deprecated and should
both be replaced by FloatingFormat
. Similarly ComplexFormat
and
LongComplexFormat
should be replaced by ComplexFloatingFormat
.
void
datatype elements are now printed in hex notation
A hex representation compatible with the python bytes
type is now printed
for unstructured np.void
elements, e.g., V4
datatype. Previously, in
python2 the raw void data of the element was printed to stdout, or in python3
the integer byte values were shown.
printing style for void
datatypes is now independently customizable
The printing style of np.void
arrays is now independently customizable
using the formatter
argument to np.set_printoptions
, using the
'void'
key, instead of the catchall numpystr
key as before.
Reduced memory usage of np.loadtxt
np.loadtxt
now reads files in chunks instead of all at once which decreases
its memory usage significantly for large files.
Changes
Multiplefield indexing/assignment of structured arrays
The indexing and assignment of structured arrays with multiple fields has
changed in a number of ways, as warned about in previous releases.
First, indexing a structured array with multiple fields, e.g.,
arr[['f1', 'f3']]
, returns a view into the original array instead of a
copy. The returned view will have extra padding bytes corresponding to
intervening fields in the original array, unlike the copy in 1.13, which will
affect code such as arr[['f1', 'f3']].view(newdtype)
.
Second, assignment between structured arrays will now occur "by position"
instead of "by field name". The Nth field of the destination will be set to the
Nth field of the source regardless of field name, unlike in numpy versions 1.6
to 1.13 in which fields in the destination array were set to the
identicallynamed field in the source array or to 0 if the source did not have
a field.
Correspondingly, the order of fields in a structured dtypes now matters when
computing dtype equality. For example, with the dtypes ::
x = dtype({'names': ['A', 'B'], 'formats': ['i4', 'f4'], 'offsets': [0, 4]})
y = dtype({'names': ['B', 'A'], 'formats': ['f4', 'i4'], 'offsets': [4, 0]})
the expression x == y
will now return False
, unlike before.
This makes dictionary based dtype specifications like
dtype({'a': ('i4', 0), 'b': ('f4', 4)})
dangerous in python < 3.6
since dict key order is not preserved in those versions.
Assignment from a structured array to a boolean array now raises a ValueError,
unlike in 1.13, where it always set the destination elements to True
.
Assignment from structured array with more than one field to a nonstructured
array now raises a ValueError. In 1.13 this copied just the first field of the
source to the destination.
Using field "titles" in multiplefield indexing is now disallowed, as is
repeating a field name in a multiplefield index.
The documentation for structured arrays in the user guide has been
significantly updated to reflect these changes.
Integer and Void scalars are now unaffected by np.set_string_function
Previously, unlike most other numpy scalars, the str
and repr
of
integer and void scalars could be controlled by np.set_string_function
.
This is no longer possible.
0d array printing changed, style
arg of array2string deprecated
Previously the str
and repr
of 0d arrays had idiosyncratic
implementations which returned str(a.item())
and 'array(' + repr(a.item()) + ')'
respectively for 0d array a
, unlike both numpy
scalars and higher dimension ndarrays.
Now, the str
of a 0d array acts like a numpy scalar using str(a[()])
and the repr
acts like higher dimension arrays using formatter(a[()])
,
where formatter
can be specified using np.set_printoptions
. The
style
argument of np.array2string
is deprecated.
This new behavior is disabled in 1.13 legacy printing mode, see compatibility
notes above.
Seeding RandomState
using an array requires a 1d array
RandomState
previously would accept empty arrays or arrays with 2 or more
dimensions, which resulted in either a failure to seed (empty arrays) or for
some of the passed values to be ignored when setting the seed.
MaskedArray
objects show a more useful repr
The repr
of a MaskedArray
is now closer to the python code that would
produce it, with arrays now being shown with commas and dtypes. Like the other
formatting changes, this can be disabled with the 1.13 legacy printing mode in
order to help transition doctests.
The repr
of np.polynomial
classes is more explicit
It now shows the domain and window parameters as keyword arguments to make
them more clear::
>>> np.polynomial.Polynomial(range(4))
Polynomial([0., 1., 2., 3.], domain=[1, 1], window=[1, 1])
Checksums
MD5
dddfd1effddd4b73120bfa0f31a27f30 numpy1.14.0cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
ab7e3518c7fe2a0d8e3c1e90c32ab57b numpy1.14.0cp27cp27mmanylinux1_i686.whl
8ba61f88afea560cc93ffddc9ea717d8 numpy1.14.0cp27cp27mmanylinux1_x86_64.whl
edea7b57d4d924173c9c6d8125affe4e numpy1.14.0cp27cp27mumanylinux1_i686.whl
bb048ccc49572e5e661ec7ead183272d numpy1.14.0cp27cp27mumanylinux1_x86_64.whl
23248896d89fd09ef06aecbdc1e74eb7 numpy1.14.0cp27nonewin32.whl
09bef789f8d9352cafe98a6773c53f3a numpy1.14.0cp27nonewin_amd64.whl
8bc2cc282df9597fe4c5fda72d0ff851 numpy1.14.0cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
c9ce8e4de0293585ad8455a829cdbdff numpy1.14.0cp34cp34mmanylinux1_i686.whl
8179996e99adfbe7c66c5a9f7ad37139 numpy1.14.0cp34cp34mmanylinux1_x86_64.whl
bf839d99514ecc03da1a2dc42808c1c7 numpy1.14.0cp34nonewin32.whl
80ead56627e40a00d0832793f5798ce8 numpy1.14.0cp34nonewin_amd64.whl
1a58fbaea199e425b71b3bfb1276d957 numpy1.14.0cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
00cbdb6d9aa1eca97ecdb73a2705730b numpy1.14.0cp35cp35mmanylinux1_i686.whl
47de646ff0d4591431030ee93412f9f3 numpy1.14.0cp35cp35mmanylinux1_x86_64.whl
f42aab8c9d6a21f60b051d6ea0b33425 numpy1.14.0cp35nonewin32.whl
b6d917bb34760e0f659c671efc08c602 numpy1.14.0cp35nonewin_amd64.whl
5a6456f4471b2f7d03fec5759e929544 numpy1.14.0cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
3c72836ee01e7b88d7cebee0a1c94c6e numpy1.14.0cp36cp36mmanylinux1_i686.whl
34f763b99cc39ca3224c158ec82e2b39 numpy1.14.0cp36cp36mmanylinux1_x86_64.whl
3bee8e2e4414a9df909d6510bd803aa1 numpy1.14.0cp36nonewin32.whl
f3db47f66b406f2803b681051f452f6e numpy1.14.0cp36nonewin_amd64.whl
c573e2d2f26a5786d5198a660f87d8e4 numpy1.14.0.tar.gz
c12d4bf380ac925fcdc8a59ada6c3298 numpy1.14.0.zip
SHA256
428cd3c0b197cf857671353d8c85833193921af9fafcc169a1f29c7185833d50 numpy1.14.0cp27cp27mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
a476e437d73e5754aa66e1e75840d0163119c3911b7361f4cd06985212a3c3fb numpy1.14.0cp27cp27mmanylinux1_i686.whl
289ff717138cd9aa133adcbd3c3e284458b9c8230db4d42b39083a3407370317 numpy1.14.0cp27cp27mmanylinux1_x86_64.whl
c5eccb4bf96dbb2436c61bb3c2658139e779679b6ae0d04c5e268e6608b58053 numpy1.14.0cp27cp27mumanylinux1_i686.whl
75471acf298d455b035226cc609a92aee42c4bb6aa71def85f77fa2c2b646b61 numpy1.14.0cp27cp27mumanylinux1_x86_64.whl
5c54fb98ecf42da59ed93736d1c071842482b18657eb16ba6e466bd873e1b923 numpy1.14.0cp27nonewin32.whl
9ddf384ac3aacb72e122a8207775cc29727cbd9c531ee1a4b95754f24f42f7f3 numpy1.14.0cp27nonewin_amd64.whl
781d3197da49c421a07f250750de70a52c42af08ca02a2f7bdb571c0625ae7eb numpy1.14.0cp34cp34mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
93b26d6c06a22e64d56aaca32aaaffd27a4143db0ac2f21a048f0b571f2bfc55 numpy1.14.0cp34cp34mmanylinux1_i686.whl
b2547f57d05ba59df4289493254f29f4c9082d255f1f97b7e286f40f453e33a1 numpy1.14.0cp34cp34mmanylinux1_x86_64.whl
eef6af1c752eef538a96018ef9bdf8e37bbf28aab50a1436501a4aa47a6467df numpy1.14.0cp34nonewin32.whl
ff8a4b2c3ac831964f529a2da506c28d002562b230261ae5c16885f5f53d2e75 numpy1.14.0cp34nonewin_amd64.whl
194074058c22a4066e1b6a4ea432486ee468d24ab16f13630c1030409e6b8666 numpy1.14.0cp35cp35mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
4e13f1a848fde960dea33702770265837c72b796a6a3eaac7528cfe75ddefadd numpy1.14.0cp35cp35mmanylinux1_i686.whl
91101216d72749df63968d86611b549438fb18af2c63849c01f9a897516133c7 numpy1.14.0cp35cp35mmanylinux1_x86_64.whl
97507349abb7d1f6b76b877258defe8720833881dc7e7fd052bac90c88587387 numpy1.14.0cp35nonewin32.whl
1479b46b6040b5c689831496354c8859c456b152d37315673a0c18720b41223b numpy1.14.0cp35nonewin_amd64.whl
98b1ac79c160e36093d7914244e40ee1e7164223e795aa2c71dcce367554e646 numpy1.14.0cp36cp36mmacosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
24bbec9a199f938eab75de8390f410969bc33c218e5430fa1ae9401b00865255 numpy1.14.0cp36cp36mmanylinux1_i686.whl
7880f412543e96548374a4bb1d75e4cdb8cad80f3a101ed0f8d0e0428f719c1c numpy1.14.0cp36cp36mmanylinux1_x86_64.whl
6112f152b76a28c450bbf665da11757078a724a90330112f5b7ea2d6b6cefd67 numpy1.14.0cp36nonewin32.whl
7c5276763646480143d5f3a6c2acb2885460c765051a1baf4d5070f63d05010f numpy1.14.0cp36nonewin_amd64.whl
c45d99134bb07600e916537c51c22e87f9e0c44b05d71018ab4907e195f007ce numpy1.14.0.tar.gz
3de643935b212307b420248018323a44ec51987a336d1d747c1322afc3c099fb numpy1.14.0.zip
Watchers：486 
Star：12952 
Fork：4283 
创建时间： 20100914 07:02:39 
最后Commits： 7天前 
许可协议：BSD3Clause 
91118b3
Compare
Verified
charris released this
Jan 6, 2020
· 267 commits to master since this release
NumPy 1.18.1 Release Notes
This release contains fixes for bugs reported against NumPy 1.18.0. Two
bugs in particular that caused widespread problems downstream were:
for building, resulting in a permission violation. Fixed.
compiler runs, leading to changed behavior and compile problems
downstream. That flag is now only applied when building numpy C
code.
The Python versions supported in this release are 3.53.8. Downstream
developers should use Cython >= 0.29.14 for Python 3.8 support and
OpenBLAS >= 3.7 to avoid errors on the Skylake architecture.
Contributors
A total of 7 people contributed to this release. People with a "+" by
their names contributed a patch for the first time.
Pull requests merged
A total of 13 pull requests were merged for this release.
Checksums
MD5
SHA256