diff --git a/pytools/__init__.py b/pytools/__init__.py index eea0576a8a532c03957a0ca714cad55e7eca4bc8..45dbe8a3bd979f29f1757f1f4662b259ccaed30b 100644 --- a/pytools/__init__.py +++ b/pytools/__init__.py @@ -129,6 +129,12 @@ Functions for dealing with (large) auxiliary files -------------------------------------------------- .. autofunction:: download_from_web_if_not_present + +Helpers for :mod:`numpy` +------------------------ + +.. autofunction:: reshaped_view + """ @@ -2042,6 +2048,8 @@ def reshaped_view(a, newshape): :arg a: a :class:`numpy.ndarray` object. :arg newshape: an ``int`` object or a tuple of ``int`` objects. + + .. versionadded:: 2018.4 """ newview = a.view()