Skip to content

Rint hwy #10

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

Open
wants to merge 1,037 commits into
base: highway
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1037 commits
Select commit Hold shift + click to select a range
04c951d
DOC: AI generated examples for ma.left_shift.
otieno-juma Jun 17, 2024
61a84f0
Merge pull request #26829 from otieno-juma/ai-examples-ma-put
charris Jul 22, 2024
ff9017b
Merge pull request #26828 from otieno-juma/ai-examples-ma-left_shift
charris Jul 22, 2024
28505a9
Merge pull request #26830 from otieno-juma/ai-examples-ma-reshape
charris Jul 22, 2024
be86376
TST, MAINT: Loosen required test precision
charris Jul 22, 2024
9f5d358
TST: move new strip tests to test_strings.py
ngoldbaum Jul 22, 2024
a8db7a8
Merge pull request #27009 from charris/loosen-test-precision
mattip Jul 22, 2024
909aeff
Merge pull request #26969 from inakleinbottle/fix-unicode-strip
ngoldbaum Jul 22, 2024
69c73f9
Apply suggestions from code review
seberg Jul 22, 2024
3af87c4
TST,MAINT: Remane scalar operator list for clarity
seberg Jul 22, 2024
d43d677
DOC: Clarify inline docs slightly and add link
seberg Jul 22, 2024
db93110
ENH: Provide a hook for gufuncs to process core dimensions. (#26908)
WarrenWeckesser Jul 22, 2024
39ef0a8
MAINT: apply rohit's refactoring
ngoldbaum Jul 22, 2024
9f66869
DOC: update tutorials link (#27010)
guan404ming Jul 22, 2024
b3feb3c
MAINT: back printoptions with a true context variable (#26846)
ngoldbaum Jul 22, 2024
3887aaf
cfuncs.py: fix crash when sys.stderr is not available
nicoddemus Jul 22, 2024
0d57708
Merge pull request #27013 from nicoddemus/issue-26862-freeze-stderr
mattip Jul 23, 2024
5cf7883
Merge pull request #26766 from mtsokol/rounding-dtypes
mattip Jul 23, 2024
a83d530
MAINT: fix _gcd()
guan404ming Jul 23, 2024
f9d08a6
TST: test for gcd inf
guan404ming Jul 23, 2024
d3d7b55
DOC: Fix migration note for `alltrue` and `sometrue` (#27015)
mtsokol Jul 23, 2024
7a044b2
DOC: Release note for feature added in gh-26908.
WarrenWeckesser Jul 23, 2024
3d876fd
Merge pull request #26984 from jorenham/typing/median-percentile
rgommers Jul 23, 2024
22ca58a
Merge pull request #26992 from jorenham/typing/ndenumerate
rgommers Jul 23, 2024
1148073
Merge pull request #26942 from jorenham/improved-comparison-op-typing
rgommers Jul 23, 2024
97bbe73
Merge pull request #27017 from WarrenWeckesser/gh-26908-rel-note
mattip Jul 23, 2024
8be0e74
Merge pull request #26897 from jorenham/polynomial-typing
rgommers Jul 23, 2024
9a8b760
TYP: adopt `typing.LiteralString` and use more of `typing.Literal`
jorenham Jul 5, 2024
24fddc7
TYP,BUG: FIx ``numpy.ndenumerate`` annotations for ``object_`` sctype
jorenham Jul 19, 2024
69516b9
TYP: Fix ``Any`` annotation typo in ``numpy.lib._function_base_impl``
jorenham Jul 23, 2024
90c75fa
Merge pull request #26871 from jorenham/literalstring-and-more-literal
rgommers Jul 23, 2024
8c3fda2
Merge pull request #26993 from jorenham/typing/ndenumerate-object_
rgommers Jul 23, 2024
f89de87
TYP,BUG: Replace ``numpy._typing._UnknownType`` with ``typing.Never``
jorenham Jul 23, 2024
7da7f9c
TYPE: fix `ufunc` method type annotations
jorenham Jul 4, 2024
b2ba7af
Merge pull request #26983 from jorenham/typing/trapezoid
rgommers Jul 23, 2024
5f66b95
Merge pull request #26875 from jorenham/better-_UnknownType
rgommers Jul 23, 2024
db2baa7
Merge pull request #26847 from jorenham/fix-26839
rgommers Jul 23, 2024
a968ea8
MAINT: replace PyThread_type_lock with PyMutex in lapack_lite
ngoldbaum Jul 22, 2024
352760e
MAINT: refactor the import cache to use PyMutex
ngoldbaum Jul 22, 2024
571b60d
MAINT: refactor the identity hash table to use PyMutex
ngoldbaum Jul 22, 2024
d7713e6
MAINT: refactor StringDType to use PyMutex
ngoldbaum Jul 22, 2024
dec1f8d
MAINT: use PyMutex in the argparse cache
ngoldbaum Jul 22, 2024
f92009f
MAINT: simplify identify hash by dropping support for 3.13.0b2 and older
ngoldbaum Jul 24, 2024
582d566
MAINT: only fill resized array with zeros for legacy dtypes
ngoldbaum Jul 13, 2024
79d6256
TST: fix resize test on pypy
ngoldbaum Jul 13, 2024
fe2b69b
MAINT: add PyArray_ZeroBuffer and use it in PyArray_Resize
ngoldbaum Jul 23, 2024
4211e7d
BUG: fix stringdtype resizing by defining a zero loop
ngoldbaum Jul 23, 2024
9715a8d
MAINT: refactor so zero-filling defaults to a memset
ngoldbaum Jul 24, 2024
c4770b7
BUG: properly zero-fill the buffer
ngoldbaum Jul 24, 2024
5f2dd35
MAINT: update test and description
guan404ming Jul 24, 2024
cbb14a4
Merge pull request #26981 from ngoldbaum/free-threading-f2py
mattip Jul 24, 2024
872cb66
Merge pull request #27011 from ngoldbaum/pymutex
mattip Jul 24, 2024
b985b15
TST: update test name
guan404ming Jul 24, 2024
c64d775
MAINT: update error message
guan404ming Jul 24, 2024
84ccac8
DOC: Replace np.matrix in view docstring example.
rossbar Jul 24, 2024
1c9746b
MAINT: update description
guan404ming Jul 24, 2024
a69b7e6
Tiny typo in docs
gabrielfougeron Jul 24, 2024
619b07c
Merge pull request #27025 from rossbar/doc/rm-matrix-from-view-docs
charris Jul 24, 2024
94854db
BUG: Fix simd loadable stride logic
seberg Jul 24, 2024
9fc6a96
TST: Add test to partially cover SIMD alignment issues
seberg Jul 24, 2024
a0c9247
MAINT: Move `len` placement to avoid warning
seberg Jul 24, 2024
fc82b55
Merge pull request #27014 from guan404ming/gcd-inf
ngoldbaum Jul 24, 2024
935ef6f
MAINT: Use stdalign.h `alignof` to be compatible with C++/C
seberg Jul 24, 2024
e8f9f54
TST: Fixup test (need to use alignment in stride not offset)
seberg Jul 24, 2024
b43e62a
BUG: Fix definition, one more incorrect check and remove incorrect as…
seberg Jul 24, 2024
e27f419
TST: Test fixup (seems I ran the wrong one locally...)
seberg Jul 24, 2024
a277f9f
Merge branch 'main' into add-import-numpy-as-np-statement
agriyakhetarpal Jul 24, 2024
7967371
Merge pull request #27026 from gabrielfougeron/main
mattip Jul 24, 2024
128490c
Merge pull request #26814 from agriyakhetarpal/add-import-numpy-as-np…
mattip Jul 24, 2024
5b1444f
DOC: document 'floatmode' and 'legacy' keys from np.get_printoptions'…
neutrinoceros Jul 24, 2024
7d6973a
Merge pull request #26904 from seberg/scalar-recursion-fix
ngoldbaum Jul 24, 2024
f3b669d
API: Do not consider subclasses for NEP 50 weak promotion
seberg Jul 10, 2024
c118629
Merge pull request #27031 from neutrinoceros/doc/get_printoptions_mis…
seberg Jul 24, 2024
51a06ef
MAINT: remove unnecessary overflow checking
ngoldbaum Jul 25, 2024
38ed53f
Update numpy/_core/src/multiarray/refcount.c
ngoldbaum Jul 25, 2024
a87fb26
Merge pull request #26934 from ngoldbaum/fix-stringdtype-resize
ngoldbaum Jul 25, 2024
1e92917
MAINT: Move assignment to (hopefully) avoid warning
seberg Jul 25, 2024
0819378
Merge pull request #26905 from seberg/strict-typing-nep50
mattip Jul 25, 2024
0db1a86
MAINT: Bump github/codeql-action from 3.25.12 to 3.25.14
dependabot[bot] Jul 25, 2024
17f529a
TST: mark f2py test as linux-only
ngoldbaum Jul 25, 2024
2d7ede4
CI: unify free-threaded builds with other builds [wheel build]
ngoldbaum Jul 25, 2024
98d19bb
Merge pull request #27041 from numpy/dependabot/github_actions/github…
charris Jul 26, 2024
339c927
BUG: random: prevent zipf from hanging when parameter is large.
WarrenWeckesser Jul 26, 2024
85071d9
BUG: use proper input and output descriptor in array_assign_subscript…
ngoldbaum Jul 26, 2024
e214a12
Merge pull request #27046 from WarrenWeckesser/zipf-large-param
charris Jul 26, 2024
48f03da
TYP,BUG: Complete type stubs for ``numpy.dtypes``
jorenham Jul 26, 2024
f5a5e04
BUG: random: Fix long delays/hangs with zipf(a) when a near 1.
WarrenWeckesser Jul 26, 2024
65d23d0
Merge pull request #27047 from ngoldbaum/fix-array-assign-subscript
mattip Jul 26, 2024
4606b13
Mirror VQSORT_ENABLED logic in Quicksort
Mousius Jul 26, 2024
0a576b5
MAINT: Restore legacy zipf implementation.
WarrenWeckesser Jul 26, 2024
87614eb
Merge pull request #27043 from ngoldbaum/free-threaded-pypi-upload
rgommers Jul 26, 2024
5aeafac
TST: Refactor to consistently use CompilerChecker
HaoZeke Jul 26, 2024
67b3ac3
TST: Add a wrapper for f2py compiler cli tests
HaoZeke Jul 26, 2024
cca4a6b
MAINT: Move checker up in f2py test utils
HaoZeke Jul 26, 2024
0aba26e
TST: Skip compiled tests if meson is missing
HaoZeke Jul 26, 2024
24fa175
DOC: Add no compiler compliance details
HaoZeke Jul 26, 2024
115c8c6
TST: Skip fortran tests for now on Windows
HaoZeke Jul 26, 2024
2459d80
Merge pull request #27048 from WarrenWeckesser/zipf-fix-a-near-1
charris Jul 26, 2024
af6dade
TYP: Apply review suggestions in ``numpy.dtypes``
jorenham Jul 26, 2024
a0bd202
TST: fix issues with tests that use numpy.testing.extbuild
ngoldbaum Jul 26, 2024
6af7bf2
Merge pull request #27052 from ngoldbaum/fix-extbuild-tests
rgommers Jul 26, 2024
8f2e57b
MAINT: Bump ossf/scorecard-action from 2.3.3 to 2.4.0
dependabot[bot] Jul 26, 2024
f1264b2
MAINT: Bump github/codeql-action from 3.25.14 to 3.25.15
dependabot[bot] Jul 26, 2024
dfc5909
BUG: random: In Johnk's algorithm, use logarithms if either X or Y is 0.
WarrenWeckesser Jul 24, 2024
9f25263
MAINT: random: Refine logarithm-based calculation in Johnk's algorithm.
WarrenWeckesser Jul 24, 2024
d2c2837
TST: random: Add regression test for gh-24475.
WarrenWeckesser Jul 24, 2024
39df35a
Merge pull request #27055 from numpy/dependabot/github_actions/ossf/s…
charris Jul 26, 2024
3f70f78
DOC: Minor typo fix [wheel build]
HaoZeke Jul 26, 2024
e5a3743
Replicate correct sequence of checks for VQSort
Mousius Jul 26, 2024
4fdf6eb
Move guard so as not to impact x86-simd-sort
Mousius Jul 26, 2024
80627e0
Merge pull request #27056 from numpy/dependabot/github_actions/github…
charris Jul 26, 2024
ade6d5e
Merge pull request #27050 from Mousius/highway-asan-check
ngoldbaum Jul 26, 2024
d5f3776
Merge pull request #27051 from HaoZeke/fixCompilerAvail
rgommers Jul 26, 2024
fc84300
DOC: Add examples for ufunc `np.strings.isalpha()`
agriyakhetarpal Jul 26, 2024
78a9810
DOC: Add examples for `np.strings.mod()`
agriyakhetarpal Jul 26, 2024
be75bec
DOC: Add examples for `np.strings.rfind()`
agriyakhetarpal Jul 26, 2024
b2b0338
DOC: Add examples for `np.strings.startswith()`
agriyakhetarpal Jul 26, 2024
b61e079
disable name suggestions on some AttributeErrors
arnaud-ma Jul 26, 2024
08d6004
Merge pull request #27034 from WarrenWeckesser/fix-beta-small-params
charris Jul 26, 2024
755e959
MAINT: linalg: Simplify some linalg gufuncs.
WarrenWeckesser Jul 27, 2024
22d34e9
Merge pull request #27060 from WarrenWeckesser/coalesce-linalg-gufuncs
mattip Jul 27, 2024
fdcbd0e
Merge pull request #27059 from arnaud-ma/attribute-error-no-name-sugg…
mattip Jul 28, 2024
50bd355
BUG: Bump Highway to latest master (#27070)
Mousius Jul 29, 2024
e0b1c55
MAINT: 3.9/10 cleanups
tylerjereddy Jul 30, 2024
e23826e
Merge pull request #27079 from tylerjereddy/treddy_py39_cleanups
mattip Jul 30, 2024
893215a
Merge pull request #27058 from agriyakhetarpal/docs/add-missing-np-st…
mattip Jul 30, 2024
84ca719
CI: Upgrade `array-api-tests` hash
mtsokol Jul 30, 2024
89fd51c
BUG: don't use alpha version in meson version compare
ngoldbaum Jul 30, 2024
23680c9
TST: skip test that uses fork if there are running threads
ngoldbaum Jul 30, 2024
38e81bb
TST: delete tests that assume warings.catch_warnings is thread-safe
ngoldbaum Jul 30, 2024
36b7ff9
Merge pull request #27085 from ngoldbaum/misc-free-threading-fixes
seberg Jul 31, 2024
a975551
CI: Increase `max-examples` to 100
mtsokol Jul 31, 2024
3662311
ENH: mark the dragon4 scratch space as thread-local
ngoldbaum Jul 31, 2024
f5e479a
TYP: enhance array type
guan404ming Aug 1, 2024
8a7e0e0
Merge pull request #27019 from guan404ming/array-builtin-type
jorenham Aug 1, 2024
bdd3e92
CI: Add xfail for `clip`
mtsokol Aug 1, 2024
f3337a3
MAINT: remove indirection and use thread-local _bigint_static directly
ngoldbaum Aug 1, 2024
8351d3f
Merge pull request #27081 from mtsokol/array-api-ci-update
ngoldbaum Aug 1, 2024
1082661
Merge pull request #27027 from seberg/sane-simd-steps
charris Aug 1, 2024
1cb4044
API,BUG: Fix copyto (and ufunc) handling of scalar cast safety
seberg Aug 1, 2024
bb391b5
Merge pull request #27087 from ngoldbaum/fix-dragon4
rgommers Aug 1, 2024
7eb4050
MAINT: Remove value-based check (should be unused now)
seberg Aug 2, 2024
97f6177
BUG: Fix windows default integer for resolver workaround
seberg Aug 2, 2024
9ced09e
DOC: Add release note to change
seberg Aug 2, 2024
4a1ca7d
DEP: lib: Deprecate acceptance of float (and more) in bincount. (#27076)
WarrenWeckesser Aug 2, 2024
ff2088b
DOC: Add release note about deprecation introduced in gh-27076.
WarrenWeckesser Aug 2, 2024
a3dd0f5
Merge pull request #26848 from jorenham/char-codes-|-prefix
seberg Aug 2, 2024
890a494
Merge pull request #27094 from WarrenWeckesser/gh27076-dep-note
charris Aug 2, 2024
8864650
DOC: Fix indentation of a few release notes.
WarrenWeckesser Aug 2, 2024
f433d61
Merge pull request #27095 from WarrenWeckesser/relnote-indentation
seberg Aug 2, 2024
c56a453
BUG: Complex printing tests fail on Windows ARM64
SlobodanMiletic Aug 2, 2024
80edbd1
MAINT: Bump actions/upload-artifact from 4.3.4 to 4.3.5
dependabot[bot] Aug 2, 2024
f4f82e9
BUG: add missing error handling in public_dtype_api.c
ngoldbaum Aug 2, 2024
886d361
DOC: update np.shares_memory() docs (#27090)
guan404ming Aug 2, 2024
a07c90c
DOC: Add documentation explaining our promotion rules (#25705)
seberg Aug 2, 2024
0469e1d
Merge pull request #27097 from numpy/dependabot/github_actions/action…
charris Aug 2, 2024
8f03248
Apply suggestions from code review
seberg Aug 2, 2024
c5e3766
MAINt: Rename variables and at least only duplicate cleanup
seberg Aug 2, 2024
da370ad
DOC: Fixup promotion doc
seberg Aug 3, 2024
42b58e3
Add an `n_cleanup` as requested in review
seberg Aug 3, 2024
e093c7e
TYP: Make array shape type variable covariant and bound
Jacob-Stevens-Haas Aug 3, 2024
538de74
Merge pull request #27102 from seberg/fixup-promotion-docs
mattip Aug 4, 2024
972c16d
Merge pull request #27098 from ngoldbaum/fix-error-handling
mattip Aug 4, 2024
818515b
Fix building NumPy in FIPS mode
tiran Aug 4, 2024
cf2d77a
Merge pull request #27104 from tiran/genapi-fips-md5
mattip Aug 4, 2024
8cec566
DOC: remove incorrect docstring comment
ngoldbaum Aug 4, 2024
e151e44
Merge pull request #27108 from ngoldbaum/fix-docstring
seberg Aug 4, 2024
86e3933
BLD: cp313 cp313t linux_aarch64 [wheel build]
andyfaff Aug 4, 2024
78c7fb8
BLD: cp313t for macos<14 (openblas) [wheel build]
andyfaff Aug 4, 2024
d382583
BLD: CIBW_FREE_THREADED_SUPPORT [wheel build]
andyfaff Aug 5, 2024
41cc67a
Merge pull request #27096 from SlobodanMiletic/fix_complex_imag_zero
seberg Aug 5, 2024
b9d07ab
Merge pull request #27091 from seberg/copyto-safety
seberg Aug 5, 2024
bf822ea
Merge pull request #27008 from jorenham/typing/numpy_dtypes
seberg Aug 5, 2024
f636dfd
BUG: Fix repr for integer scalar subclasses
seberg Aug 5, 2024
b2d9165
Merge pull request #27112 from seberg/issue-27106
ngoldbaum Aug 5, 2024
4d8c5e0
DEV: make linter.py runnable from outside the root of the repo
rgommers Aug 5, 2024
595cd30
Merge pull request #27113 from rgommers/linter-minor-fix
seberg Aug 5, 2024
4910621
MAINT: Bump pypa/cibuildwheel from 2.19.2 to 2.20.0
dependabot[bot] Aug 5, 2024
f9dcb45
Merge pull request #27114 from numpy/dependabot/github_actions/pypa/c…
charris Aug 5, 2024
40ad3e0
Use the new npyv_loadable_stride_ functions for ldexp and frexp
r-devulap Aug 5, 2024
6e03b4f
BUG: fix another cast setup in array_assign_subscript
ngoldbaum Jul 26, 2024
6a0d05c
DOC: add todo
ngoldbaum Aug 5, 2024
bbcedfc
Add MAXSTORE and MAXLOAD for f64 data
r-devulap Aug 5, 2024
a35a5f0
WHL: pip isolation for cp313t [wheel build]
andyfaff Aug 5, 2024
f3254a4
WHL: macos cp313t [wheel build]
andyfaff Aug 5, 2024
6ed4500
Merge pull request #27057 from ngoldbaum/fix-array-assign-subscript
ngoldbaum Aug 6, 2024
7533a4c
Merge pull request #27110 from andyfaff/cp313
charris Aug 6, 2024
e4a495d
Merge pull request #27115 from r-devulap/ldexp
seberg Aug 6, 2024
a0a7fc1
BUG: Ensure that scalar binops prioritize __array_ufunc__
seberg Aug 6, 2024
ccf67e3
BLD: update vendored Meson for cross-compilation patches
rgommers Aug 6, 2024
75f25b2
BUG: Bump Highway to latest
Mousius Aug 6, 2024
476bc6b
TYP: Force matrix shape type to be 2D
Jacob-Stevens-Haas Aug 5, 2024
bb8cc14
Merge pull request #27118 from rgommers/meson-cross-patch
rgommers Aug 6, 2024
bb3a2b1
MAINT: Bump github/codeql-action from 3.25.15 to 3.26.0
dependabot[bot] Aug 6, 2024
3767c75
MAINT: Bump actions/upload-artifact from 4.3.5 to 4.3.6
dependabot[bot] Aug 6, 2024
4a7b41f
Merge pull request #27123 from Mousius/highway-bump-again
seberg Aug 6, 2024
d0703ab
Merge pull request #27125 from numpy/dependabot/github_actions/action…
charris Aug 6, 2024
7578274
Merge pull request #27124 from numpy/dependabot/github_actions/github…
charris Aug 6, 2024
3e4cb2a
BUG: Fix missing error return in copyto
seberg Aug 6, 2024
c258f83
Merge pull request #26081 from Jacob-Stevens-Haas/covariant-shapetype
jorenham Aug 7, 2024
97562c3
Update numpy/_core/tests/test_multiarray.py
seberg Aug 7, 2024
1b671c1
Merge pull request #27127 from seberg/missing-return-copyto
mattip Aug 7, 2024
d602196
Merge pull request #27117 from seberg/binop-fixup
charris Aug 7, 2024
e7d3776
MAINT: Bump pythoncapi-compat version
seberg Aug 6, 2024
cc61e95
ENH: Use `PyObject_GetOptionalAttr`
seberg Aug 6, 2024
fbd9a3b
DOC: Add release note snippet for attribute lookup improvement
seberg Aug 6, 2024
e1b6cb4
BEG: Prepare main for 2.2.0 development
charris Aug 7, 2024
5cec054
Merge pull request #27134 from charris/begin-2.2-dev
charris Aug 7, 2024
73a1e4d
TST, DOC: add doc and test for transpose axes with negative indices (…
guan404ming Aug 7, 2024
96479d3
bump scipy-openblas version
mattip Aug 8, 2024
e125e3c
update bundled licenses: reflect scipy-openblas, remove libquadmath f…
mattip Aug 8, 2024
eec44a2
add test for issue 27036
mattip Aug 8, 2024
69e2845
Merge pull request #27140 from mattip/scipy-openblas-0.3.27.44.4
Mousius Aug 8, 2024
37eb75a
DOC: Update comment to mention new function name
seberg Aug 8, 2024
b9bcca0
BUG: Do not accidentally store dtype metadata in ``np.save``
seberg Aug 8, 2024
11eb606
Merge pull request #27119 from seberg/use-optional-attr
seberg Aug 8, 2024
9526007
BLD: use smaller scipy-openblas builds
mattip Aug 8, 2024
75ffe91
add release note
mattip Aug 8, 2024
7e5dc82
Merge pull request #27143 from seberg/issue-14142
charris Aug 8, 2024
49a9b20
BUG: Raise if histogram cannot create finite bin sizes
timhoffm Aug 8, 2024
251f7e1
Merge pull request #27148 from timhoffm/histogram-small-range
ngoldbaum Aug 9, 2024
f628ce1
TYP: add td64 overload for `mean`
guan404ming Aug 9, 2024
807cd74
Merge pull request #27147 from mattip/scipy-openblas-0.3.27.44.5
charris Aug 9, 2024
09fef0b
CI: Re-enable nightly OpenBLAS test runs
seberg Aug 9, 2024
5a81fef
Merge pull request #27158 from seberg/issue-26824
seberg Aug 9, 2024
fc8a569
Merge pull request #27157 from guan404ming/mean-type-overload
jorenham Aug 9, 2024
bbf0ff4
MAINT: use npy_argparse for einsum
seberg Aug 9, 2024
0273e05
ENH: fix thread-unsafe C API usages (#27145)
ngoldbaum Aug 9, 2024
f2587fd
DOC: add td64 example in `np.mean`
guan404ming Aug 10, 2024
ce850cd
DOC: update numpy/_core/fromnumeric.py
guan404ming Aug 10, 2024
d86b502
DOC: update numpy/_core/fromnumeric.py
guan404ming Aug 10, 2024
6d6445e
MAINT: Bump mypy to 1.11.1
jorenham Aug 10, 2024
fd6fa45
TST, TYP: Remove false-positive test that got fixed in ``mypy>=1.11``
jorenham Aug 10, 2024
be116b0
TST, TYP: Workaround a mypy 1.11 bug with ``functools.partial`` in th…
jorenham Aug 10, 2024
03460b1
DOC: update numpy/_core/fromnumeric.py
guan404ming Aug 11, 2024
32a2304
Merge pull request #27168 from guan404ming/mean-td64-doc
jorenham Aug 11, 2024
9312d5e
Merge pull request #27164 from seberg/einsum-argparse
mattip Aug 11, 2024
9b965d8
BUILD: update to OpenBLAS 0.3.28
mattip Aug 11, 2024
4964280
REV: Revert undef I and document it
seberg Aug 11, 2024
aae64d8
Merge pull request #27182 from seberg/revert-I
charris Aug 11, 2024
d70fe30
MAINT: update default NPY_FEATURE_VERSION after dropping py39
h-vetinari Aug 11, 2024
cd87c5c
BUILD: improve download script
mattip Aug 12, 2024
a65a28c
Merge pull request #27187 from h-vetinari/feature_default
seberg Aug 12, 2024
c45906f
Merge pull request #27189 from mattip/download2
charris Aug 12, 2024
64f0b15
BUILD: update to shrunk wheels
mattip Aug 12, 2024
c15e5f3
Merge pull request #27184 from mattip/openblas-v0.3.28
charris Aug 12, 2024
be296e2
Merge pull request #27178 from jorenham/typing/mypy-1.11.1
charris Aug 12, 2024
7e88f59
BUG: Fix NPY_RAVEL_AXIS on backwards compatible NumPy 2 builds
seberg Aug 13, 2024
ab2f5e9
Merge pull request #27202 from seberg/issue-27194
charris Aug 13, 2024
cf49113
Convert loop unary fp into highway
luyahan Aug 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 3 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
. venv/bin/activate
cd doc
# Don't use -q, show warning summary"
SPHINXOPTS="-n" make -e html
SPHINXOPTS="-W -n" make -e html
if [[ $(find build/html -type f | wc -l) -lt 1000 ]]; then
echo "doc build failed: build/html is empty"
exit -1
Expand All @@ -95,14 +95,10 @@ jobs:
# destination: neps

- run:
name: run doctests on documentation
name: run refguide-check
command: |
. venv/bin/activate
# Note: keep these two checks separate, because they seem to
# influence each other through changing global state (e.g., via
# `np.polynomial.set_default_printstyle`)
python tools/refguide_check.py --rst
python tools/refguide_check.py --doctests
python tools/refguide_check.py -v

- persist_to_workspace:
root: ~/repo
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ body:
label: "Runtime Environment:"
description: |
1. Install `threadpoolctl` (e.g. with `pip` or `conda`)
2. Paste the output of `import numpy; print(numpy.show_runtime())`.
2. Paste the output of `import numpy; numpy.show_runtime()`.

Note: Only valid for NumPy 1.24 or newer.
validations:
Expand Down
68 changes: 68 additions & 0 deletions .github/ISSUE_TEMPLATE/typing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Static Typing
description: Report an issue with the NumPy typing hints.
title: "TYP: <Please write a comprehensive title after the 'TYP: ' prefix>"
labels: [Static typing]

body:
- type: markdown
attributes:
value: >
Thank you for taking the time to report this issue.
Please make sure that this issue hasn't already been reported before.

- type: textarea
attributes:
label: "Describe the issue:"
validations:
required: true

- type: textarea
attributes:
label: "Reproduce the code example:"
description: >
A short code example that reproduces the error in your type-checker. It
should be self-contained, i.e., can be run as-is via e.g.
`mypy myproblem.py` or `pyright myproblem.py`.
placeholder: |
import numpy as np
import numpy.typing as npt
<< your code here >>
render: python
validations:
required: true

- type: textarea
attributes:
label: "Error message:"
description: >
Please include all relevant error messages from your type-checker or IDE.
render: shell

- type: textarea
attributes:
label: "Python and NumPy Versions:"
description: >
Output from `import sys, numpy; print(numpy.__version__); print(sys.version)`.
validations:
required: true

- type: textarea
attributes:
label: "Type-checker version and settings:"
description: >
Please include the exact version of the type-checker you are using.
Popular (static) type checkers include Mypy, Pyright / Pylance, Pytype,
Pyre, PyCharm, etc.
Also include the full CLI command used to run the type-checker, and
all of the relevant configuration options.
validations:
required: true

- type: textarea
attributes:
label: "Additional typing packages."
description: |
If you are using `typing-extensions` or typing-stub packages, please
list their versions here.
validations:
required: false
7 changes: 4 additions & 3 deletions .github/pr-prefix-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
"API": "30 - API"
"BENCH": "28 - Benchmark"
"BUG": "00 - Bug"
"BLD": "36 - Build"
"BUG": "00 - Bug"
"DEP": "07 - Deprecation"
"DEV": "16 - Development"
"DOC": "04 - Documentation"
"ENH": "01 - Enhancement"
"MAINT": "03 - Maintenance"
"MNT": "03 - Maintenance"
"REL": "14 - Release"
"REV": "34 - Reversion"
"STY": "03 - Maintenance"
"TST": "05 - Testing"
"REL": "14 - Release"
"WIP": "25 - WIP"
"TYP": "static typing"
"WIP": "25 - WIP"
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
uses: github/codeql-action/init@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -55,7 +55,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
uses: github/codeql-action/autobuild@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -68,6 +68,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
uses: github/codeql-action/analyze@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
cd tools
/usr/bin/python3.9 -m pytest --pyargs numpy -n2 -m "not slow"
- name: Upload wheel if tests fail
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
if: failure()
with:
name: numpy-cygwin-wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- name: 'Checkout Repository'
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: 'Dependency Review'
uses: actions/dependency-review-action@0c155c5e8556a497adf53f2c18edabf945ed8e70 # v4.3.2
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4
18 changes: 11 additions & 7 deletions .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
env:
PYODIDE_VERSION: 0.25.1
PYODIDE_VERSION: 0.26.0
# PYTHON_VERSION and EMSCRIPTEN_VERSION are determined by PYODIDE_VERSION.
# The appropriate versions can be found in the Pyodide repodata.json
# "info" field, or in Makefile.envs:
# https://github.com/pyodide/pyodide/blob/main/Makefile.envs#L2
PYTHON_VERSION: 3.11.3
EMSCRIPTEN_VERSION: 3.1.46
PYTHON_VERSION: 3.12.1
EMSCRIPTEN_VERSION: 3.1.58
NODE_VERSION: 18
steps:
- name: Checkout NumPy
Expand All @@ -64,7 +64,7 @@ jobs:

- name: Set up Python ${{ env.PYTHON_VERSION }}
id: setup-python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand All @@ -75,7 +75,7 @@ jobs:
actions-cache-folder: emsdk-cache

- name: Install pyodide-build
run: pip install "pydantic<2" pyodide-build==${{ env.PYODIDE_VERSION }}
run: pip install pyodide-build==${{ env.PYODIDE_VERSION }}

- name: Find installation for pyodide-build
shell: python
Expand All @@ -93,10 +93,14 @@ jobs:

- name: Build NumPy for Pyodide
run: |
pyodide build -Cbuild-dir=build -Csetup-args="--cross-file=$PWD/tools/ci/emscripten/emscripten.meson.cross" -Csetup-args="-Dblas=none" -Csetup-args="-Dlapack=none"
pyodide build \
-Cbuild-dir=build \
-Csetup-args="--cross-file=$PWD/tools/ci/emscripten/emscripten.meson.cross" \
-Csetup-args="-Dblas=none" \
-Csetup-args="-Dlapack=none"

- name: Set up Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ env.NODE_VERSION }}

Expand Down
58 changes: 41 additions & 17 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.10'
- name: Install linter requirements
Expand All @@ -61,7 +61,7 @@ jobs:
with:
submodules: recursive
fetch-tags: true
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: ${{ matrix.version }}
- uses: ./.github/meson_actions
Expand All @@ -75,7 +75,7 @@ jobs:
with:
submodules: recursive
fetch-tags: true
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: 'pypy3.10-v7.3.15'
- name: Setup using scipy-openblas
Expand Down Expand Up @@ -114,15 +114,15 @@ jobs:
pytest --pyargs numpy -m "not slow"

full:
# Build a wheel, install it, then run the full test suite with code coverage
# Install as editable, then run the full test suite with code coverage
needs: [smoke_test]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-tags: true
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.10'
- name: Install build and test dependencies from PyPI
Expand All @@ -138,16 +138,14 @@ jobs:
mkdir -p ./.openblas
python -c"import scipy_openblas32 as ob32; print(ob32.get_pkg_config())" > ./.openblas/scipy-openblas.pc

- name: Build a wheel
- name: Install as editable
env:
PKG_CONFIG_PATH: ${{ github.workspace }}/.openblas
run: |
python -m build --wheel --no-isolation --skip-dependency-check
pip install dist/numpy*.whl
pip install -e . --no-build-isolation
- name: Run full test suite
run: |
cd tools
pytest --pyargs numpy --cov-report=html:build/coverage
pytest numpy --cov-report=html:build/coverage
# TODO: gcov

benchmark:
Expand All @@ -159,14 +157,14 @@ jobs:
with:
submodules: recursive
fetch-tags: true
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.10'
- name: Install build and benchmarking dependencies
run: |
sudo apt-get update
sudo apt-get install libopenblas-dev ninja-build
pip install spin cython asv virtualenv packaging
pip install asv virtualenv packaging -r requirements/build_requirements.txt
- name: Install NumPy
run: |
spin build -- -Dcpu-dispatch=none
Expand All @@ -180,6 +178,12 @@ jobs:
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: |
spin bench --quick
- name: Check docstests
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: |
pip install scipy-doctest hypothesis matplotlib scipy pytz pandas
spin check-docs -v
spin check-tutorials -v

sdist:
needs: [smoke_test]
Expand All @@ -190,7 +194,7 @@ jobs:
with:
submodules: recursive
fetch-tags: true
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.11'
- name: Install gfortran and setup OpenBLAS (sdist build)
Expand Down Expand Up @@ -228,11 +232,11 @@ jobs:
uses: actions/checkout@v4
with:
repository: data-apis/array-api-tests
ref: '3cf8ef654c456d9fd1633d64e67b4470465940e9' # Latest commit as of 2024-04-09
ref: '827edd804bcace9d64176b8115138d29ae3e8dec' # Latest commit as of 2024-07-30
submodules: 'true'
path: 'array-api-tests'
- name: Set up Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.11'
- name: Install build and test dependencies from PyPI
Expand All @@ -249,7 +253,7 @@ jobs:
PYTHONWARNINGS: 'ignore::UserWarning::,ignore::DeprecationWarning::,ignore::RuntimeWarning::'
run: |
cd ${GITHUB_WORKSPACE}/array-api-tests
pytest array_api_tests -v -c pytest.ini --ci --max-examples=2 --derandomize --disable-deadline --skips-file ${GITHUB_WORKSPACE}/tools/ci/array-api-skips.txt
pytest array_api_tests -v -c pytest.ini --ci --max-examples=100 --derandomize --disable-deadline --xfails-file ${GITHUB_WORKSPACE}/tools/ci/array-api-xfails.txt

custom_checks:
needs: [smoke_test]
Expand All @@ -260,7 +264,7 @@ jobs:
with:
submodules: recursive
fetch-tags: true
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.11'
- name: Install build and test dependencies from PyPI
Expand All @@ -287,3 +291,23 @@ jobs:
rm -rf build-install
./vendored-meson/meson/meson.py install -C build --destdir ../build-install --tags=runtime,python-runtime,devel
python tools/check_installed_files.py $(find ./build-install -path '*/site-packages/numpy') --no-tests

free-threaded:
needs: [smoke_test]
runs-on: ubuntu-latest
if: github.event_name != 'push'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-tags: true
# TODO: replace with setup-python when there is support
- uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
with:
python-version: '3.13-dev'
nogil: true
# TODO: remove cython nightly install when cython does a release
- name: Install nightly Cython
run: |
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython
- uses: ./.github/meson_actions
Loading