| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | | |
Followup for gh-22533. Adds a missing return statement to get_overridable_numpy_ufuncs (oops!) and imports numpy.testing.overrides into numpy.testing so e.g. tab completion on numpy.testing works for overrides.
|
|\ \ \
| | | |
| | | | |
TST: Add linspace test case for any_step_zero and not _mult_inplace
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
whitespace (#22906)
Fix issue with `delimiter=None` and quote character not working properly (not using whitespace delimiter mode).
Closes gh-22899
|
|\ \ \ \
| |/ / /
|/| | | |
ENH: Properly support FreeBSD/powerpc64
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
1. FreeBSD uses elf_aux_info() instead of getauxval.
2. Switch to using compiler macros for detecting POWER platform
FreeBSD sets the machine name (what uname -m prints) on all powerpc* to
just powerpc. To identify actual architecture, uname -p should be used,
but this is not present in uname() function. Thus, the only way to
correctly detect platform is to use what uname prints and also check
compiler defines.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* DOC: Add a note to the documentation of the rot90
The note added indicates that rotation is counter clockwise with the default argumemnts.
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|\ \ \
| |_|/
|/| | |
TST: tests/core/test_multiarray:TestArg{Min,Max}: stray `np.repeat `
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The test does `a.repeat(129)` and discards the result:
>>> a.repeat(129)
>>> np.argmin(a)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
(#22872)
* BUG: Use whole file for encoding checks [f2py]
* DOC: Add a code comment
Co-authored-by: melissawm <melissawm@gmail.com>
* TST: Add a conditional unicode f2py test
* MAINT: Add chardet as a test requirement
* ENH: Cleanup and switch f2py to charset_normalizer
* MAINT: Remove chardet for charset_normalizer
* TST: Simplify UTF-8 encoding [f2py]
Co-authored-by: melissawm <melissawm@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* TST: Mixed integer types for in1d
* BUG: Fix mixed dtype overflows for in1d (#22877)
* BUG: Type conversion for integer overflow check
* MAINT: Fix linting issues in in1d
* MAINT: ar1 overflow check only for non-empty array
* MAINT: Expand bounds of overflow check
* TST: Fix integer overflow in mixed boolean test
* TST: Include test for overflow on mixed dtypes
* MAINT: Less conservative overflow checks
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Developer-Ecosystem-Engineering/convert_non_bool_to_bool
BUG, SIMD: Restore behavior converting non bool input to 0x00/0xff
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This resolves https://github.com/numpy/numpy/issues/22845 by restoring prior behavior to convert non bool input
|
|\ \ \ \
| | | | |
| | | | | |
TST: Ignore nan-warnings in randomized nanfunction `out=` tests
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The tests randomize the nan pattern and thus can run into these
(additional) warnings, so ignore them.
(Could also fix the random seed, but this should do)
Closes gh-22835
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
There is not much value in these values anyway probably, but tiny
isn't reliably for double-double (maybe it should be, but that is
a different issue).
Fixup for gh-22855 and gh-22868
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG, SIMD: Fix memory overlap in ufunc comparison loops
|
| | | | | | |
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: enhance show_runtime
|
| |/ / / / |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
BUG: Fortify string casts against floating point warnings
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This removes the check for floating point warnings, which is enough
in practice. (In principle ufuncs or structured dtypes can chain
casts in a way that causes us to check anyway.)
It also checks for isfinite in the scalar repr code so the warnings
shouldn't be set to begin with.
Closes gh-22843
|
|\ \ \ \
| | | | |
| | | | | |
API: Ensure a full mask is returned for masked_invalid
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Matplotlib relies on this, so we don't seem to have much of a choice.
I am surprised that we were not notified of the issue before release
time.
Closes gh-22720, gh-22720
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
It seems on raspian arm with clang 13 `__builtin_mul_overflow` is
defined for `int` but doesn't work for `ptrdiff_t` (and maybe others).
This checks for `ptrdiff_t` instead of int, which was reported to
work-around the issue.
Closes gh-22811
|
|\ \ \
| | | |
| | | | |
BUG, SIMD: Fix the bitmask of the boolean comparison
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is the minimal solution to fix gh-22826 with as little change
as possible.
We should fix `getdata()` but I don't want to do that in a bug-fix
release really.
IMO the alternative is to revert gh-22046 which would also revert
the behavior noticed in gh-22720 (which seems less harmful though).
Closes gh-22826
|
|\ \ \
| | | |
| | | | |
TST: ignore more np.distutils.log imports
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
Ignore two more modules from np.distutils.log found by
test_public_api.py::test_all_modules_are_expected_2
Closes #22827
|
|/ /
| |
| |
| |
| |
| |
| | |
If a row ends in a delimiter, `add_fields` can be called twice without
any field actually being parsed. This causes issues with the field
buffer setup.
closes gh-22833
|
|\ \
| | |
| | | |
BUG, SIMD: Fix invalid value encountered in several ufuncs
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Providing non-signaling comparison intrinsics that guarantee
no FP invalid exception in case of qNaN sounds great but it
cost unacceptable extra intrinsics on ppc64le(VSX) and x86(SSE).
Therefore, an integer definition #NPY_SIMD_CMPSIGNAL has been
provided instead to differenate between SIMD extensions
that support only supports signaling comparison.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Reverts gh-22614, and adds more detail about why that code is needed and
when it can be removed.
Closes gh-22796
[skip cirrus]
[skip circle]
|
|\ \ \
| | | |
| | | | |
DOC: Fix legend placement in `numpy.percentile()` docs
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
A plot is meant to demonstrate the different methods of estimating the
percentile that `numpy.percentile()` supports, but previously the legend
covered a large fraction of it. Now the legend is drawn next to the
plot.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Developer-Ecosystem-Engineering/add_simd_bool_logical_andornot_absolute
ENH: Add SIMD versions of bool logical_&&,||,! and absolute
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Following functions are defined by umath generator
to enable runtime dispatching without the need
to redefine them within dsipatch-able sources:
BOOL_invert, BOOL_add, BOOL_bitwise_and
BOOL_bitwise_or, BOOL_logical_xor
BOOL_bitwise_xor, BOOL_multiply
BOOL_maximum, BOOL_minimum, BOOL_fmax,
BOOL_fmin
|