3349 Commits
Author SHA1 Message Date
Abhinay Reddy Keesara c5cf6f3f95 DEP: Deprecate np.dot when a.ndim >= 2 and b.ndim > 2 (#32759)
When a.ndim >= 2 and b.ndim > 2, np.dot() and ndarray.dot() place b's leading dimensions in the middle of the result:

a = np.ones((2, 3))
b = np.ones((4, 3, 5))
np.dot(a, b).shape  # (2, 4, 5) - the 4 ends up in the middle

@/matmul gives (4, 2, 5). This PR deprecates the dot behavior for these inputs and suggests numpy.tensordot(a, b, axes=[-1, -2]) for the same result, or @/matmul for batched matrix multiplication.
2026-10-20 21:03:14 +02:00
pereradrianandAdrián Muñoz Perera 8ba30a04ad DOC: point to C-API include instructions at top of Array API page [sk… (#33094)
Co-authored-by: Adrián Muñoz Perera <10870103+pereradrian@users.noreply.github.com>
2026-10-19 21:23:12 +03:00
Inessa Pawson 3adadd9100 DOC: point non-security crash reports to the issue tracker in security.rst (#33077) 2026-10-18 15:15:55 -06:00
Matti Picus 7ed6cf76b2 MAINT: update scipy-openblas to 0.3.34.237.2 (#33074) 2026-10-17 14:57:46 -06:00
Inessa Pawson d65183b0f2 DOC: Unify and cross-link array subclassing documentation (#33067) 2026-10-17 21:41:53 +03:00
Sebastian Berg d96ccfed87 ENH: Expand abstract DType hierarchy (#31755) 2026-10-16 13:24:13 +03:00
Mohd Maaz Khan 8ecb569a88 DOC: Fix PR limit, test install commands and doctest package name in developer guide (#33044) 2026-10-15 10:29:00 -06:00
Inessa Pawson e7609a6703 DOC: Add link to the general index on the docs landing page (#33045) 2026-10-15 10:28:06 -06:00
Inessa Pawson 0820ec52ac DOC: Add guidance on version directive retention (#32892) 2026-10-15 08:41:26 +03:00
Mohd Maaz Khan adaff8f659 DOC: Fix filter and library path in ctypes example of Python as Glue (User Guide) (#32999) 2026-10-13 15:22:57 +03:00
Raghuveer Devulapalli 9c7415aff5 Merge pull request #32826 from berezucc/doc-cpu-baseline-none-dispatch
DOC: note that cpu-baseline=none does not disable CPU dispatch
2026-10-13 03:49:03 +00:00
Inessa Pawson db8bac3fa5 DOC: pin [source] links in dev docs to the build commit (#32975) 2026-10-12 08:52:50 +03:00
Andrew Nelson 31ed47f875 CI: add test related dependency groups and delete all requirements files (#32976) 2026-10-12 08:38:06 +03:00
Charles Harris bf710422b7 MAINT: Update GitHub release procedure. (#32831) 2026-10-12 07:19:34 +03:00
Charles Harris 4352421dd0 MAINT: Update main after 2.5.4 release. (#32972) 2026-10-11 11:22:07 -04:00
Andrew NelsonandMatti Picus e5122f5685 BLD: build and dev-cli dependency groups, remove assorted requirements files (#32966)
Co-authored-by: Matti Picus <matti.picus@gmail.com>
2026-10-11 17:26:19 +03:00
sukeyzhou 70fa99843c DOC: Document that ufuncs don't work on structured/record arrays (#32838)
The two CI failures (`custom_checks`) are unrelated to this PR. Merging.
2026-10-09 18:50:20 -04:00
Inessa Pawson dbfcf091a3 DOC: Link to Codespaces guide from related dev docs (#32918) 2026-10-08 18:32:34 +03:00
Dragos-Georgian IonandInessa Pawson 82b2cf5518 DOC: fixing `ndarray` declaration documentation (#32933)
Co-authored-by: Inessa Pawson <inessapawson@gmail.com>
2026-10-08 09:43:37 +02:00
Inessa Pawson 7d8442c700 DOC: expand license page with human-readable overview (#32896) 2026-10-08 09:06:29 +03:00
Inessa Pawson 73db6b5995 DOC: Update links in Codespaces guide (#32917) 2026-10-07 09:04:30 +03:00
Mohd Maaz Khan 6afb580a7b DOC: Fix code snippets in subclassing ndarray (User Guide docs) (#32855) 2026-10-06 07:44:12 +03:00
Inessa Pawson ed2be515b7 DOC: Remove outdated "Documentation team meetings" section from howto-docs.rst (#32893) 2026-10-05 16:00:50 -06:00
Nikita Berezyuk 9a51153879 DOC: note that cpu-baseline=none does not disable CPU dispatch 2026-09-29 15:40:14 -04:00
Nathan Goldbaum e0e69cd79a DOC: tweaks and fixes for string functionality docs (#32755) 2026-09-24 11:27:18 -06:00
Mohd Maaz Khan ac37da98cc DOC: Fix dtype mismatch in cython example and fix casting example snippet in User Guide to match the text (#32758) 2026-09-23 08:53:44 -05:00
Dragos-Georgian Ion 3b45d135f0 DOC: updating walkthrough, template and 2 releases (#32735) 2026-09-21 11:59:00 -06:00
Mohd Maaz Khan 4ac72345a0 DOC: Fix Typos in User Guide .rst files (#32717) 2026-09-20 17:44:27 -05:00
Nathan Goldbaum 039f74759c ENH: fixes for StringDType sorting and comparisons for missing data (#32564) 2026-09-17 14:42:52 -06:00
Anastasis Georgoulas 990458b9b3 DOC: avoid accidental external links.
The old references were no longer in this repo, and were being
resolved as links to the scikit-image docs. This replaces them
with an internal link which provides similar information.
See #32663 for more context.
2026-09-16 23:56:00 +01:00
Nathan Goldbaum b245332d3b BUG: apply the NEP 50 scalar rules in concatenate and choose, and make casting="no" match "equiv" (#32497) 2026-09-15 12:40:49 -06:00
Matti Picus 15a1636a6d Merge pull request #32596 from shbhmbnsl1/doc/cython-c-api
DOC: add details about Cython in NumPy C-API reference
2026-09-15 09:16:17 +03:00
Shubham Bansal 69ee088f80 DOC: update typed memoryview note 2026-09-14 14:55:08 -04:00
Shubham Bansal af30a26ca7 DOC: update with more realistic example 2026-09-14 14:14:02 -04:00
Shubham Bansal 8546890969 DOC: add hyperlinks to cython documentation and pxd file 2026-09-14 12:59:15 -04:00
Shubham Bansal 63d607c043 DOC: Update example based on the review comments 2026-09-14 11:01:15 -04:00
42-Slices-of-Cheese 293401e0bd DOC: Fix GitHub capitalization
Reason: "GitHub" was seen more often in documentation
2026-09-14 05:27:20 +00:00
Matti Picus a24a715500 Merge pull request #31002 from vishal-rk/issue-22635-remove-python2-docs
DOC: removed python2-specific include path from nditer cython example …
2026-09-14 07:26:50 +03:00
Shubham Bansal c4a22e4f10 DOC: add details about Cython in NumPy C-API reference 2026-09-11 13:32:23 -04:00
Iason Krommydas 7f16df0fa2 ENH: implement np.minmax (#32231)
Implements np.minmax using the new ability to register reduction loops to ufuncs implemented in #31816

The loops are implemented in the existing .c.src files with the np.minimun/maximum loops and using exactly the same optimizations and SIMD as them. Two new files minmax.cpp and minmax.h are created just to create the ufunc and initialize the array methods.
I found this to be by far the easiest setup to do now. The other option would be porting the whole loops_minmax.dispatch.c.src to highway and using only c++ but that is a more complicated change with a way more difficult review so I did not do that.

minmax is not a method on the ndarray like min and max are. The only thing exposed in the top-level API is the new np.minmax function. The minimummaximum ufunc is not exposed as np.minimummaximum like np.minimum and np.maximum are as I do not believe there's much use in that. If we ever need it, it's a very simple change.

We should also consider adding a nanminmax in a follow-up PR for completeness and also adding a masked array aware implementation (either by making minmax a method on the ndarray or only by a np.ma.minmax).

Signed-off-by: Iason Krommydas <iason.krom@gmail.com>
2026-09-10 12:33:39 +02:00
Inessa Pawson 4c3db03533 DOC: increase open PR limit to two (#32566)
At the August 12, 2026 community meeting, the decision was made to increase the limit on open non-draft PRs for non-maintainers from one to two. This PR updates the contributor documentation to reflect the decision.
2026-09-10 11:16:19 +02:00
Matti Picus d7a680a0a4 DOC: break long lines 2026-09-07 10:05:54 +03:00
Charles Harris 43a7a41747 MAINT: Update main after 2.5.3 release. (#32521) 2026-09-06 18:42:59 -06:00
Nathan Goldbaum 22c80bc405 DOC: fix scipy docs links in intersphinx mapping (#32507) 2026-09-04 20:38:26 -06:00
Nathan Goldbaum 45a69bf4e1 DOC: use static scipy doc site for intershpinx (#32503) 2026-09-04 10:25:33 -06:00
Nathan Goldbaum 6068016edd ENH: infer sizes when casting or creating arrays from StringDType arrays (#32097)
Adds a new helper stringdtype_find_fixed_width_descr and uses 
it in a new code path in find_descriptor_from_array that works
like the existing object string and datetime code paths in that
function that scan array values to infer the destination dtype.

Also adds tests for this new behavior.
2026-08-28 19:23:43 -04:00
Nathan Goldbaum 8a53c5b8cb ENH: mark fixed-width string to StringDType casts as safe (#32095) 2026-08-28 15:54:47 -06:00
Ganesh Kathiresan 871dd549e8 DOC: Added instructions for gcov (#32313) 2026-08-25 08:40:54 -06:00
Nathan Goldbaum 923f0dc672 BUG: validate UTF-8 and harden StringDType bounds handling (#32296) 2026-08-21 08:44:04 -06:00
Nathan Goldbaum 1785d72cac MAINT: soft-deprecate PyArray_malloc/realloc/free in favor of PyMem_Raw APIs 2026-08-18 10:38:51 -06:00