[SciPy-user] linspace

Alan G Isaac aisaac at american.edu
Tue Dec 6 09:10:32 EST 2005


On Mon, 05 Dec 2005, cookedm at physics.mcmaster.ca (David M. Cooke) apparently wrote: 
> Actually, thinking about it: for linspace(0,1,1), do you 
> want to return [0] or [1]? Every call to linspace returns 
> an array starting with stop (0 here) regardless of 
> endpoint, except for those that require 0 points, so this 
> could be thought of an invariant. 


I do not have a strong opinion.
I was just matching the documentation:
    If endpoint==True, then last sample is stop.
It seems right to keep this.

Cheers,
Alan Isaac







More information about the SciPy-User mailing list