summaryrefslogtreecommitdiff
path: root/numpy/core/function_base.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-12-10 19:55:59 +0100
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-12-10 19:55:59 +0100
commitc5808d11299d6866886dd5fc89d8d522dc06617d (patch)
tree3f3936672e7daf3f19bc2e76df7853e43dbbe93c /numpy/core/function_base.py
parentb8a5da49675009165326ec2e7aa6968cf6e15782 (diff)
parent14a3dca63e7fac58a1311acf3e01ab548a2e7ea2 (diff)
downloadnumpy-c5808d11299d6866886dd5fc89d8d522dc06617d.tar.gz
Merge pull request #5359 from tacaswell/linspace_doc
DOC : minor changes to linspace docstring
Diffstat (limited to 'numpy/core/function_base.py')
-rw-r--r--numpy/core/function_base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py
index 0bf93390e..7e52276ea 100644
--- a/numpy/core/function_base.py
+++ b/numpy/core/function_base.py
@@ -32,7 +32,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
retstep : bool, optional
If True, return (`samples`, `step`), where `step` is the spacing
between samples.
- dtype : dtype
+ dtype : dtype, optional
The type of the output array. If `dtype` is not given, infer the data
type from the other input arguments.
@@ -44,7 +44,9 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
There are `num` equally spaced samples in the closed interval
``[start, stop]`` or the half-open interval ``[start, stop)``
(depending on whether `endpoint` is True or False).
- step : float (only if `retstep` is True)
+ step : float
+ Only returned if `retstep` is True
+
Size of spacing between samples.