forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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.
TEST: pin mingw version
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]
DOC: Prepare for 1.16.1 release.
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
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)
Backport of numpy#14693. Fixes numpy#14692 on Power 9 and z/Linux
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
REL: Prepare for 1.16.6 release.
Be 2669 CVE 2021 41495 disputed
BE-2147-numpy-1-16-6-1
…Windows Caused by there being a variable definition after the function start. As an example: libgit2/pygit2#53
icanhasmath
force-pushed
the
BE-3296-py-set-type
branch
from
April 3, 2024 23:39
20cc5c9
to
aa2085d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.