NumPy 2.3.1 Release Notes#

The NumPy 2.3.1 release is a patch release with several bug fixes, annotation improvements, and better support for OpenBSD. Highlights are:

  • Fix bug in matmul for non-contiguous out kwarg parameter

  • Fix for Accelerate runtime warnings on M4 hardware

  • Fix new in NumPy 2.3.0 np.vectorize casting errors

  • Improved support of cpu features for FreeBSD and OpenBSD

This release supports Python versions 3.11-3.13, Python 3.14 will be supported when it is released.

Contributors#

A total of 9 people contributed to this release. People with a “+” by their names contributed a patch for the first time.

  • Brad Smith +

  • Charles Harris

  • Developer-Ecosystem-Engineering

  • François Rozet

  • Joren Hammudoglu

  • Matti Picus

  • Mugundan Selvanayagam

  • Nathan Goldbaum

  • Sebastian Berg

Pull requests merged#

A total of 12 pull requests were merged for this release.

  • #29140: MAINT: Prepare 2.3.x for further development

  • #29191: BUG: fix matmul with transposed out arg (#29179)

  • #29192: TYP: Backport typing fixes and improvements.

  • #29205: BUG: Revert np.vectorize casting to legacy behavior (#29196)

  • #29222: TYP: Backport typing fixes

  • #29233: BUG: avoid negating unsigned integers in resize implementation…

  • #29234: TST: Fix test that uses uninitialized memory (#29232)

  • #29235: BUG: Address interaction between SME and FPSR (#29223)

  • #29237: BUG: Enforce integer limitation in concatenate (#29231)

  • #29238: CI: Add support for building NumPy with LLVM for Win-ARM64

  • #29241: ENH: Detect CPU features on OpenBSD ARM and PowerPC64

  • #29242: ENH: Detect CPU features on FreeBSD / OpenBSD RISC-V64.