diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2020-08-23 15:41:11 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2020-08-23 15:41:11 +0200 |
commit | cf1845f9d328bf2f3ab1d29b1892ad6eb69255a2 (patch) | |
tree | 4b28b6b77749b4af72794508501a642b22b1b678 /numpy/core/function_base.py | |
parent | d7e2003def0923bfce0f5339a571cffe90736252 (diff) | |
download | numpy-cf1845f9d328bf2f3ab1d29b1892ad6eb69255a2.tar.gz |
DOC: Clarify that the `base` parameter in `logspace` can be array_like
Diffstat (limited to 'numpy/core/function_base.py')
-rw-r--r-- | numpy/core/function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py index b2f17cfeb..8a1fee99b 100644 --- a/numpy/core/function_base.py +++ b/numpy/core/function_base.py @@ -165,7 +165,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, if axis != 0: y = _nx.moveaxis(y, 0, axis) - + if _nx.issubdtype(dtype, _nx.integer): _nx.floor(y, out=y) @@ -207,7 +207,7 @@ def logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None, endpoint : boolean, optional If true, `stop` is the last sample. Otherwise, it is not included. Default is True. - base : float, optional + base : array_like, optional The base of the log space. The step size between the elements in ``ln(samples) / ln(base)`` (or ``log_base(samples)``) is uniform. Default is 10.0. |