diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2017-08-27 13:05:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-27 13:05:08 -0500 |
| commit | b57f9ec246b78b75a70d3bb35a4c17b787cd63c2 (patch) | |
| tree | 10cd55da9411514947ce38fd2886973ba941c0b4 /numpy | |
| parent | ed805307a3a30e9990dca0a7cac73618fc6c3f21 (diff) | |
| parent | 45c5a2bcbf5c37ea1155b17ce43547cea1289686 (diff) | |
| download | numpy-b57f9ec246b78b75a70d3bb35a4c17b787cd63c2.tar.gz | |
Merge pull request #9614 from MSeifert04/correct_comment_formula
MAINT: Fix a comment regarding the formula for arange length
Diffstat (limited to 'numpy')
| -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) |
