diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-01-14 06:03:37 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 06:03:37 +1100 |
commit | 266c588b393ea0d3b89d583e014e9befe654bed2 (patch) | |
tree | 12fece1eec66d5ba41fd403b6f5d5516d4d8f381 /numpy/core/fromnumeric.py | |
parent | 7f2fbed6c0cbccdb41eea3005d5af3445a3c9879 (diff) | |
parent | 09cd87ca17004651866fce1849357f15a7ac2230 (diff) | |
download | numpy-266c588b393ea0d3b89d583e014e9befe654bed2.tar.gz |
Merge pull request #15124 from Bharat123rox/clip
DOC: Update documentation of np.clip
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 51b143762..213a4438f 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -2031,7 +2031,8 @@ def clip(a, a_min, a_max, out=None, **kwargs): is specified, values smaller than 0 become 0, and values larger than 1 become 1. - Equivalent to but faster than ``np.maximum(a_min, np.minimum(a, a_max))``. + Equivalent to but faster than ``np.maximum(a_min, np.minimum(a, a_max))`` + assuming ``a_min < a_max``. No check is performed to ensure ``a_min < a_max``. Parameters |