Skip to content

Commit

Permalink
Fix xt::ellipsis() usage in numpy doc
Browse files Browse the repository at this point in the history
Add missing `()` after `ellipsis`
  • Loading branch information
FrancoisDn authored and tdegeus committed May 1, 2023
1 parent cccd757 commit 5f3f08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/numpy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ See :any:`numpy indexing <numpy:arrays.indexing>` page.
+-----------------------------------------+---------------------------------------------------------------------------+
| ``a[5:1:-1, :]`` | :cpp:func:`xt::view(a, xt::range(5, 1, -1), xt::all()) <xt::all>` |
+-----------------------------------------+---------------------------------------------------------------------------+
| ``a[..., 3]`` | :cpp:func:`xt::strided_view(a, {xt::ellipsis, 3}) <xt::ellipsis>` |
| ``a[..., 3]`` | :cpp:func:`xt::strided_view(a, {xt::ellipsis(), 3}) <xt::ellipsis>` |
+-----------------------------------------+---------------------------------------------------------------------------+
| :any:`a[:, np.newaxis] <numpy.newaxis>` | :cpp:func:`xt::view(a, xt::all(), xt::newaxis()) <xt::newaxis>` |
+-----------------------------------------+---------------------------------------------------------------------------+
Expand Down

0 comments on commit 5f3f08a

Please sign in to comment.