Skip to content

Commit 41b241b

Browse files
committed
changelog updates
1 parent 8f602e1 commit 41b241b

File tree

2 files changed

+27
-13
lines changed

2 files changed

+27
-13
lines changed

docs/changelog.rst

+25-11
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,31 @@ below inherit that of the preceding release.
1818
Version 1.6.0 (TBA)
1919
-------------------
2020

21-
* Two small :cpp:class:`nb::ndarray\<..\> <ndarray>` improvements. (commit
22-
`7abcdd
23-
<https://github.com/wjakob/nanobind/commit/7abcdd3cdf51bbc60984d48b3a4e82ce96f30500>`__).
24-
25-
1. Added the ability to impose additional ndarray constraints following
26-
runtime checks via the :cpp:func:`.impose() <ndarray::impose>` method.
27-
See the :ref:`ndarray documentation <ndarray-runtime-specialization>` for
28-
an example.
29-
30-
2. Shape constraints like ``nb::shape<nb::any, nb::any, nb::any>``
31-
are tedious to write. Now, there is a shorter form: ``nb::ndim<3>``.
21+
* Several :cpp:class:`nb::ndarray\<..\> <ndarray>` improvements:
22+
23+
1. CPU loops involving nanobind ndarrays weren't getting properly vectorized.
24+
This release of nanobind adds *views*, which provide an efficient
25+
abstraction that enables better code generation. See the documentation
26+
section on :ref:`array views <ndarray-views>` for details.
27+
(commit `8f602e
28+
<https://github.com/wjakob/nanobind/commit/8f602e187b0634e1df13ba370352cf092e9042c0>`__).
29+
30+
2. Added support for nonstandard arithmetic types (e.g., ``__int128`` or
31+
``__fp16``) in ndarrays. See the :ref:`documentation section
32+
<ndarray-nonstandard>` for details. (commit `49eab2
33+
<https://github.com/wjakob/nanobind/commit/49eab2845530f84a1f029c5c1c5541ab3c1f9adc>`__).
34+
35+
3. Shape constraints like :py:class:`nb::shape\<nb::any, nb::any, nb::any\>
36+
<shape>` are tedious to write. Now, there is a shorter form:
37+
:py:class:`nb::ndim\<3\> <ndim>`. (commit `1350a5
38+
<https://github.com/wjakob/nanobind/commit/1350a5e15b28e80ffc2130a779f3b8c559ddb620>`__).
39+
40+
4. Added an explicit constructor that can be used to add or remove ndarray
41+
constraints. (commit `a1ac207
42+
<https://github.com/wjakob/nanobind/commit/a1ac207ab82206b8e50fe456f577c02270014fb3>`__).
43+
44+
* Added the wrapper class :cpp:class:`nb::weakref <weakref>`. (commit `78887f
45+
<https://github.com/wjakob/nanobind/commit/78887fc167196a7568a5cef8f8dfbbee09aa7dc4>`__).
3246

3347
* Added the methods :cpp:func:`nb::dict::contains() <dict::contains>` and
3448
:cpp:func:`nb::mapping::contains() <mapping::contains>` to the Python type

docs/ndarray.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ interpreted as follows:
452452
- :cpp:enumerator:`rv_policy::move` is unsupported and demoted to
453453
:cpp:enumerator:`rv_policy::copy`.
454454

455-
.. _ndarray_nonstandard_arithmetic:
455+
.. _ndarray-nonstandard:
456456

457457
Nonstandard arithmetic types
458458
----------------------------
@@ -496,7 +496,7 @@ nanobind's :cpp:class:`nb::ndarray\<...\> <ndarray>` is based on the `DLPack
496496
<https://github.com/dmlc/dlpack>`__ array exchange protocol, which causes it to
497497
be more restrictive. Presently supported dtypes include signed/unsigned
498498
integers, floating point values, and boolean values. Some :ref:`nonstandard
499-
arithmetic types <ndarray_nonstandard_arithmetic>` can be supported as well.
499+
arithmetic types <ndarray-nonstandard>` can be supported as well.
500500

501501
Nanobind can receive and return read-only arrays via the buffer protocol used
502502
to exchange data with NumPy. The DLPack interface currently ignores this

0 commit comments

Comments
 (0)