From 5909adb273f560c0b894d41ddd8a5c2f0c016bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kl=C3=B6ckner?= Date: Tue, 27 Mar 2018 15:46:51 -0400 Subject: [PATCH] Doc fixes for reshaped_view --- pytools/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pytools/__init__.py b/pytools/__init__.py index eea0576..45dbe8a 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() -- GitLab