|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 2.6 (2026-07-09) |
| 4 | + |
| 5 | +- `__setitem__` method of array objects got stricter: |
| 6 | + |
| 7 | + - `__setitem__` method now disallows device transfers: if the right-hand side |
| 8 | + argument is an array on a device which differs from the device of the left-hand |
| 9 | + argument, an error is raised. Note that this change follows |
| 10 | + the draft of a future Array API standard revision, see |
| 11 | + [gh-1005](https://github.com/data-apis/array-api/pull/1005) for discussion. |
| 12 | + - `None` is no longer allowed as an indexing key. |
| 13 | + |
| 14 | +- Array objects expose a DLPack device number, via their `__dlpack_device__` method. |
| 15 | +- `from_dlpack` function now supports `copy=` argument. |
| 16 | + |
| 17 | +- `Device` objects are now allowed to only support a subset of data types, and can |
| 18 | + have a device-dependent default data types. Note that this enhancement follows |
| 19 | + the draft of a future Array API standard revision, see |
| 20 | + [gh-1005](https://github.com/data-apis/array-api/pull/1005) for discussion. |
| 21 | + - A new device object, `Device("no_float64")` was added which only supports |
| 22 | + single-precision float and complex data types; this device mimics the behavior |
| 23 | + of a "metal"/MPS device which does not support double precision floats. |
| 24 | + Attempting to create an array with float64 or complex128 data type on this device |
| 25 | + raises an error. |
| 26 | + - The existing `Device("device2")` object has been modified: it supports float64 data |
| 27 | + type but defaults to float32 and complex64: |
| 28 | + `asarray([1.0], device=Device("device2")).dtype` is `float32`. |
| 29 | + |
| 30 | + |
| 31 | +### Contributors |
| 32 | + |
| 33 | +The following users contributed to this release: |
| 34 | + |
| 35 | +Evgeni Burovski, |
| 36 | +Lucas Colley, |
| 37 | +Ralf Gommers, |
| 38 | +Tim Head. |
| 39 | + |
| 40 | + |
3 | 41 | ## 2.5 (2026-02-23) |
4 | 42 |
|
5 | 43 | This release targets the 2025.12 revision of the Array API standard, and supports |
|
0 commit comments