summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorAnner <anner.de.jong@outlook.com>2018-07-05 10:48:22 +0900
committerGitHub <noreply@github.com>2018-07-05 10:48:22 +0900
commita6694870220b8b4ab18796b6c19e1dc45d0805cc (patch)
tree29a319ce6918919719e2994221393da14791b7bc /numpy/core/fromnumeric.py
parent000e7d4edae1fa2257f72e889e22f0f2942f8f33 (diff)
downloadnumpy-a6694870220b8b4ab18796b6c19e1dc45d0805cc.tar.gz
Update resize notes according to mattip's comments
removed 'simple' altered sentence describing which items are taken from `old` into `new` therefor -> therefore
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py8
1 files changed, 4 insertions, 4 deletions
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