[Numpy-discussion] step paramter for linspace

Henry Gomersall heng at cantab.net
Fri Mar 1 10:07:46 EST 2013


On Fri, 2013-03-01 at 10:01 -0500, Alan G Isaac wrote:
> On 3/1/2013 9:32 AM, Henry Gomersall wrote:
> > there should be an equivalent for floats that
> > unambiguously returns a range for the half open interval
> 
> 
> If I've understood you:
> start + stepsize*np.arange(nsteps)

yes, except that nsteps is computed for you, otherwise you could just
use linspace ;)

hen





More information about the NumPy-Discussion mailing list