diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-12-06 13:09:33 -0500 |
---|---|---|
committer | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-12-06 13:09:33 -0500 |
commit | abf62624f7e2ea41029c0dbaeef9c2851429a07a (patch) | |
tree | d89276a9648d9c1797d3a0347e7f0f4f83cd5818 /numpy/core/function_base.py | |
parent | d338490271238c78683640943a11f9e4e53e62fb (diff) | |
download | numpy-abf62624f7e2ea41029c0dbaeef9c2851429a07a.tar.gz |
DOC: Note the version in which we start supporting array_like start, stop
Diffstat (limited to 'numpy/core/function_base.py')
-rw-r--r-- | numpy/core/function_base.py | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py index 4c9de52bb..b68fd4068 100644 --- a/numpy/core/function_base.py +++ b/numpy/core/function_base.py @@ -45,11 +45,14 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, The endpoint of the interval can optionally be excluded. + .. versionchanged:: 1.16.0 + Non-scalar `start` and `stop` are now supported. + Parameters ---------- - start : scalar or array_like + start : array_like The starting value of the sequence. - stop : scalar or array_like + stop : array_like The end value of the sequence, unless `endpoint` is set to False. In that case, the sequence consists of all but the last of ``num + 1`` evenly spaced samples, so that `stop` is excluded. Note that the step @@ -191,11 +194,14 @@ def logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None, (`base` to the power of `start`) and ends with ``base ** stop`` (see `endpoint` below). + .. versionchanged:: 1.16.0 + Non-scalar `start` and `stop` are now supported. + Parameters ---------- - start : float or array_like + start : array_like ``base ** start`` is the starting value of the sequence. - stop : float or array_like + stop : array_like ``base ** stop`` is the final value of the sequence, unless `endpoint` is False. In that case, ``num + 1`` values are spaced over the interval in log-space, of which all but the last (a sequence of @@ -287,11 +293,14 @@ def geomspace(start, stop, num=50, endpoint=True, dtype=None, axis=0): This is similar to `logspace`, but with endpoints specified directly. Each output sample is a constant multiple of the previous. + .. versionchanged:: 1.16.0 + Non-scalar `start` and `stop` are now supported. + Parameters ---------- - start : scalar or array_like + start : array_like The starting value of the sequence. - stop : scalar or array_like + stop : array_like The final value of the sequence, unless `endpoint` is False. In that case, ``num + 1`` values are spaced over the interval in log-space, of which all but the last (a sequence of |