Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<!-- Please be sure you are following the instructions in the dev guidelines http://www.numpy.org/devdocs/dev/gitwash/development_workflow.html --> #5

Closed
wants to merge 377 commits into from

Conversation

icanhasmath
Copy link

No description provided.

pitrou and others added 30 commits January 24, 2019 10:32
…py#12748)

* BUG: Fix SystemError when pickling datetime64 array with pickle5

Fixes numpygh-12745

* Fix reference and error handling

* Add a test for the fixed reference leak

* Fix for PyPy + simplify #if condition

* Fix comment
…umpy#12722)

* BUG: Fix rounding of denormals in double and float to half casts

Previously the significand was shifted right to align denormals of
different magnitude. This loses some bits that can make a difference
for rounding. This is fixed:
 1. For floats, by inspecting the original last bits when this may
    make a difference (should happen rarely)
 2. For doubles by shifting the bits left to align the denromals and
    thus not lose the lowest orginal bits.

* TST: Test half denormal rounding

The test assumes that half to even is active, if this is ever
changed or allowed to change, the test will fail.

* Fixup: Fixup for halffloat.c

The one code path cannot be used. The other must have been a typo, but
is a valid bug, a new test for it in the next commit.

* TST: half casting lower bits are not lost for denormal results

The first test only tested the off by one, this one specifically tests
that all bits are used to decide if "round to nearest even" should
be used, in the example of rounding towards 0.

* TST: Test not just denormals but all positive finite float16s

* DOC: Add lots of comments and add a short release note.
BUG: fix to check before apply `shlex.split`
BUG: Fix SystemError when pickling datetime64 array with pickle5
BUG: Fix rounding of denormals in double and float to half casts.
BUG: ndarrays pickled by 1.16 cannot be loaded by 1.15.4 and lower
BUG: do not Py_DECREF NULL pointer
ENH: add _dtype_ctype to namespace for freeze analysis
BUG: fail if old multiarray module detected
BUG: Do not double-quote arguments passed on to the linker
…s-again

BUG: Do not insert extra double quote into preprocessor macros
- Create 1.16.1-notes.rst
- Create 1.16.1-changelog.rst
- Update mailmap

[ci skip]
TST: fix vmImage dispatch in Azure
MAINT: remove complicated test of multiarray import failure mode
Previously when doing floor division numpy would sometimes return an incorrect
signed zero. For example:

>>> np.zeros(10)//1
array([-0., -0., -0., -0., -0., -0., -0., -0., -0., -0.])

>>> np.remainder(-1.0,1.0)
-0.0

The reason for this is that whenever div or mod were zero the code was using
the following to pick the sign of zero:

floordiv = (a / b > 0) ? 0.0@c@ : -0.0@c@;

This commit updates these lines to instead use the copysign function which is
how cpython does floor division.

Fixes numpy#12841.
BUG: fix signed zero behavior in npy_divmod
MAINT: Add functions to parse shell-strings in the platform-native way
Fixes numpygh-12979

Among other things, this means setting the `F90` environment variable to `"path to/f90" --coverage` works again.
BUG: Fix regression in parsing of F90 and F77 environment variables
charris and others added 28 commits November 7, 2019 15:08
numpygh-14841 failed to pass shippable tests, the CI could not install
gfortran. We may need to add apt update before apt install.
BLD: add 'apt update' to shippable
In _ctypes class, ctypes.cast() was called twice. It causes circular reference
for _ctypes._data due to the CPython bug https://bugs.python.org/issue12836.
BUG: Fix _ctypes class circular reference. (numpy#13808)
BUG: Fix `np.einsum` errors on Power9 Linux and z/Linux
An input such as

    np.histogram(np.array([-2, 0, 127], dtype=np.int8), bins="auto")

would raise the exception

    ValueError: Number of samples, -1, must be non-negative.

The problem was that the peak-to-peak value for the input array was
computed with the `ptp` method, which returned negative values for
signed integer arrays when the actual value was more than the
maximum signed value of the array's data type.

The fix is to use a peak-to-peak function that returns an
unsigned value for signed integer arrays.

Closes numpygh-14379.
BLD: Prevent -flto from optimising long double representation check away
BUG: lib: Fix histogram problem with signed integer arrays.
This improves the documentation and error messages of the testing
functions and extends `numpy.testing.assert_array_compare` to
more data types.
ENH: Backport improvements to testing functions.
- Update 1.16.6-notes.rst
- Create 1.16.6-changelog.rst
…Windows

Caused by there being a variable definition after the function start.

As an example:
libgit2/pygit2#53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.