From a6694870220b8b4ab18796b6c19e1dc45d0805cc Mon Sep 17 00:00:00 2001 From: Anner Date: Thu, 5 Jul 2018 10:48:22 +0900 Subject: Update resize notes according to mattip's comments removed 'simple' altered sentence describing which items are taken from `old` into `new` therefor -> therefore --- numpy/core/fromnumeric.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index a87437a47..57410d194 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -1201,11 +1201,11 @@ def resize(a, new_shape): Notes ----- Warning: This functionality does **not** consider axes separately, - i.e. it does not apply interpolation/extrapolation of some sort. - It simply takes the first `np.prod(new_shape)` elements of `a`, - disregarding axes, and fills the returned array with these elements. + i.e. it does not apply interpolation/extrapolation. + It fills the return array with the required number of elements, + taken from `a` as they are laid out in memory, disregarding strides and axes. (This is in case the new shape is smaller. For larger, see above.) - This functionality is therefor not suitable to resize images, + This functionality is therefore not suitable to resize images, or data where each axis represents a separate and distinct entity. Examples -- cgit v1.2.1