diff options
author | Michael Seifert <michaelseifert04@yahoo.de> | 2017-08-27 19:46:36 +0200 |
---|---|---|
committer | Michael Seifert <michaelseifert04@yahoo.de> | 2017-08-27 19:46:36 +0200 |
commit | 45c5a2bcbf5c37ea1155b17ce43547cea1289686 (patch) | |
tree | 3b7f797603f69ce14b2f326aec11b025dfeb4860 | |
parent | 67f27be82600e31472927fa30dd71de5320d9a45 (diff) | |
download | numpy-45c5a2bcbf5c37ea1155b17ce43547cea1289686.tar.gz |
MAINT: Fix a comment regarding the formula for arange length [skip ci]
-rw-r--r-- | numpy/core/src/multiarray/ctors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c index de1648230..c9b3125ae 100644 --- a/numpy/core/src/multiarray/ctors.c +++ b/numpy/core/src/multiarray/ctors.c @@ -3004,7 +3004,7 @@ PyArray_Arange(double start, double stop, double step, int type_num) } /* - * the formula is len = (intp) ceil((start - stop) / step); + * the formula is len = (intp) ceil((stop - start) / step); */ static npy_intp _calc_length(PyObject *start, PyObject *stop, PyObject *step, PyObject **next, int cmplx) |