diff options
| author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-10-07 12:54:15 +0200 |
|---|---|---|
| committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-10-07 12:57:15 +0200 |
| commit | 5dc744e3adba84a9da1efd66cd9403cb03202d49 (patch) | |
| tree | 77d43737672360eac259c9c6072beca45a9e691f | |
| parent | e4d1c7781fcd762646c77449690491597c2be82f (diff) | |
| download | numpy-5dc744e3adba84a9da1efd66cd9403cb03202d49.tar.gz | |
DOC: adapt division documentation, in par with Python 3
| -rw-r--r-- | numpy/core/code_generators/ufunc_docstrings.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py index 14d4fd5ca..9ae9a24c0 100644 --- a/numpy/core/code_generators/ufunc_docstrings.py +++ b/numpy/core/code_generators/ufunc_docstrings.py @@ -1091,8 +1091,7 @@ add_newdoc('numpy.core.umath', 'divide', Behavior on division by zero can be changed using ``seterr``. - When both ``x1`` and ``x2`` are of an integer type, equivalent - to `numpy.true_divide`. + Behaves like ``true_divide``. Examples -------- @@ -4016,9 +4015,8 @@ add_newdoc('numpy.core.umath', 'true_divide', """ Returns a true division of the inputs, element-wise. - Instead of the Python traditional 'floor division', this returns a true - division. True division adjusts the output type to present the best - answer, regardless of input types. + Unlike 'floor division', true division adjusts the output type + to present the best answer, regardless of input types. Parameters ---------- |
