diff options
author | Bharat Raghunathan <bharatraghunthan9767@gmail.com> | 2019-12-18 08:31:21 +0530 |
---|---|---|
committer | Bharat Raghunathan <bharatraghunthan9767@gmail.com> | 2019-12-18 08:31:21 +0530 |
commit | e91f1441f69ea87bc64bec82cfac75eb06282ac3 (patch) | |
tree | 0695373afd59655d2b3137527148263ed020768a /numpy/core/fromnumeric.py | |
parent | 8a0858f3903e488495a56b4a6d19bbefabc97dca (diff) | |
download | numpy-e91f1441f69ea87bc64bec82cfac75eb06282ac3.tar.gz |
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 f09f2a465..9f55e104c 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -2033,7 +2033,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))`` + only if ``a_min < a_max`` else returns ``a_max``. No check is performed to ensure ``a_min < a_max``. Parameters |