Fernando Perez wrote: > Now, I *suspect* (but don't remember for sure) that the option to have it > right-hand-open-ended was to match the mental model people have for range: > > In [5]: linspace(0, 10, 10, endpoint=False) > Out[5]: array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.]) > > In [6]: range(0, 10) > Out[6]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] My guess would be it's so that you can concatenate two sequences created with linspace covering adjacent ranges and get the same result as a single linspace call covering the whole range. > I do hope, though, that the chosen name is *not*: > > - 'interval' > > - 'interpolate' or similar Would 'subdivide' be acceptable? -- Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4