From cf1845f9d328bf2f3ab1d29b1892ad6eb69255a2 Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Sun, 23 Aug 2020 15:41:11 +0200 Subject: DOC: Clarify that the `base` parameter in `logspace` can be array_like --- numpy/core/function_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/function_base.py') 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. -- cgit v1.2.1