Skip to content
Snippets Groups Projects
Commit 611daf3f authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'improve-arange-docs' into 'master'

Improve arange docs

See merge request !76
parents 8a4ddc0a 83888226
No related branches found
No related tags found
No related merge requests found
......@@ -2002,15 +2002,16 @@ def _arange_knl(result, start, step):
def arange(queue, *args, **kwargs):
"""Create a :class:`Array` filled with numbers spaced `step` apart,
starting from `start` and ending at `stop`.
"""arange(queue, [start, ] stop [, step], **kwargs)
Create a :class:`Array` filled with numbers spaced `step` apart,
starting from `start` and ending at `stop`. If not given, *start*
defaults to 0, *step* defaults to 1.
For floating point arguments, the length of the result is
`ceil((stop - start)/step)`. This rule may result in the last
element of the result being greater than `stop`.
*dtype*, if not specified, is taken as the largest common type
of *start*, *stop* and *step*.
*dtype* is a required keyword argument.
.. versionchanged:: 2011.1
*context* argument was deprecated.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment