Overview

NumPy 2.2, released on February 1, 2025, continues the 2.x series with performance improvements and new functions.

Main Features

Performance improvements

Array operations are faster thanks to extended SIMD optimizations and better memory management.

python
import numpy as np

print(f'NumPy {np.__version__}')  # 2.2.x

# Optimized operations
a = np.random.randn(1_000_000)
b = np.random.randn(1_000_000)
c = np.add(a, b)  # SIMD accelerated
print(f'Mean: {c.mean():.4f}')

New utility functions

New utility functions simplify common array operations and strengthen compatibility with the standard Array API.

python
import numpy as np

# Better defaults for array creation
x = np.asarray([1, 2, 3], dtype=np.float64)
print(x.dtype)  # float64

# Array API compatibility
xp = np  # Array API namespace
y = xp.linspace(0, 1, 5)
print(y)

Sources